• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

How to replace CAS host’s network card

2020-09-26 Published
  • 0关注
  • 0收藏 1862浏览
粉丝:23人 关注:4人

Network Topology

Normal topology

Problem Description

Replacing network card, board network card on motherboard and motherboard are the routine operation of server hardware maintenance.

Process Analysis

Generally, the MAC address of the new (on board) network card will change, and some servers will change the motherboard, which will also cause the MAC address change of the onboard network card. Since CAS  system will treat the network card with new MAC address as a new device, it will add new device name in the original network card configuration file (70 persistent- net.rules .So network failure may occur after replacing network card and motherboard. I will introduce the method of recovering network after the hardware operation and maintenance of server network card.

Solution

1. Environmental inspection

Do environmental inspection and preparation. Make sure the network environment is health before replacing the network card / motherboard (on-board network card). If the network card can work normally, it is recommended to use Ping to check the network connectivity. Record the corresponding relationship between each network cable, optical fiber and network card interface.

Check whether the host system and hardware time are correct and recorded, and whether the NTP server service is normal.

 

2. CVM stateful failover

If it is a CVM stateful failover system environment, you can switch between the master and the standby, and replace them one by one.

If it is a CVM server only for management, it can be shut down directly to replace the network card. If it is used for cvk, the method is the same as that for cvk host.

 

3. License change and activation

If you want to replace the CVM node network card, the original license cannot be used in the new CVM directly due to the change of hardware information.Please contact the H3C office engineer or call H3C hotline to obtain the "H3C CAS cloud computing management platform license exception application and letter of commitment" to go through the H3C license change / unbind process, and obtain a new activation code file according to the process.

Note: the application process will involve the collection host.id information, if it is a CVM stateful failover system environment, two host.id information needs to be collected.

 

4.Back up the network card configuration file

Backup the network card configuration file (70-persistent-net.rules) on the host computer.

root@cvk01:~# cd /etc/udev/rules.d/

root@cvk01:/etc/udev/rules.d# cp 70-persistent-net.rules 70-persistent-net.rules.bak

root@cvk01:/etc/udev/rules.d# ll

total 32

drwxr-xr-x 2 root root 4096 May  9 15:17 ./

drwxr-xr-x 3 root root 4096 Apr 30 17:34 ../

-rw-r--r-- 1 root root  541 Apr 30 17:37 70-custom-net.rules

-rw-r--r-- 1 root root  536 Apr 30 17:33 70-persistent-cd.rules

-rw-r--r-- 1 root root  683 May  9 01:46 70-persistent-net.rules

-rw-r--r-- 1 root root  683 May  9 15:35 70-persistent-net.rules.bak

-rw-r--r-- 1 root root  496 Oct 24  2018 71-persistent-fcoe.rules

-rw-r--r-- 1 root root 1157 Apr  6  2012 README

 

5. Replace network card

If there is a virtual machine running on this host, first migrate the virtual machine to other hosts, and then put the host into maintenance mode.

Turn off the host and replace the network card / motherboard (on-board network card). After hardware replacement, the physical link is restored according to the corresponding relationship between network cable, optical fiber and network card interface recorded during environmental inspection.

 

Tips:

After the physical host carries out hardware maintenance, it is necessary to ensure that the server hardware clock is synchronized with that before the maintenance, otherwise the CAS system business function will be abnormal.

Please contact the server hardware service provider for server hardware clock synchronization method.

 

6. Restore network card number

After replacing (on board) network card, motherboard or network card, the network card configuration file (70 persistent- net.rules will be updated, so the network will be blocked. You need to manually modify the network card configuration file to restore the network.


After the network card is replaced, CAS xconsole prompts to check the uplink link of vswitch0

 

After the network card is replaced, the operating system will automatically update the network card configuration file (70 persistent- net.rules , the eth number of the new network card will be assigned continuously with the original eth number. To recover the network , the eth number entry in the network card configuration file needs to be updated to the new MAC address.

First, we need to find out the MAC address after the network port is changed. Suppose that the physical state of the link is up after the mainboard and network card are replaced, the following provides a physical judgment method (if you need to disconnect the network of the host network card, please operate without affecting the service)

a) Open the xconsole console of the server and enter the local command shell, execute IP a | grep down and record the results. As shown in the figure below:


b) After the mainboard and physical network card are replaced, route the physical link of the original eth0 network port to down (you can pull the network cable or shut down the network port corresponding to the switch). Execute IP a | grep down and record the results.


c) Comparing the results of the above two steps, we can know that after the MAC address of the original eth0 network port is changed, it is regarded as a new network card by the system and numbered as eth4. Record the corresponding relationship of eth number to table 1

d) Repeat steps a,b,c until you find and record the relationship between the old and new eth numbers of all the network cards replaced. Execute / opt / bin / OVS_ dbg_ List ports to view the MAC address of eth4-eth7 (as shown in the figure below). Record the MAC address corresponding to the new eth number into the column of "new MAC address" in Table 1 (pay attention to supplement the semicolon ":").

 

Table 1

 

Original eth number

New eth number

New MAC address

NIC1

eth0

eth4

0c:da:41:1d:2c:23

NIC2

eth1

eth5

0c:da:41:1d:9c:fa

NIC3

eth2

eth6

0c:da:41:1d:b2:6e

NIC4

eth3

eth7

0c:da:41:1d:ad:a8

 

Modified 70 persistent- net.rules File, the value of ATTR {address} in the original eth number entry is modified to the new MAC address.

In this operation guide, it is necessary to update the replaced network card NIC1 to eth0, the replaced network card NIC2 to eth1, the replaced network card NIC3 to eth2, and the replaced network card NIC4 to eth3.

After backup new 70-persistent-net.rules file, use vim command to modify the 70 persistent- net.rules document:

root@cvk01:~# cd /etc/udev/rules.d/

root@cvk01:/etc/udev/rules.d# cp 70-persistent-net.rules 70-persistent-net.rules.bak.nwe

root@cvk01:/etc/udev/rules.d# vim 70-persistent-net.rules

 

Update MAC address corresponding to eth number:

According to the relationship between the old eth number and the new MAC address recorded in Table 1, update the content.

Locate the line name = eth0, and update the corresponding MAC address, such as: ATTR{address}==“0c:da:41:1d:2c:23

Locate the line name = eth1, and update the corresponding MAC address, such as attr {address} = = 0C: Da: 41:1d: 9C: Fa "

Locate the line name = eth2, and update the corresponding MAC address, such as attr {address} = = 0C: Da: 41:1d: b2:6e "

Locate the line name = eth3, and update the corresponding MAC address, such as attr {address} = = 0C: Da: 41:1d: AD: A8 "

At the beginning of each line, annotate the entry corresponding to eth4-eth7 with #.

After updating the content, confirm that the configuration is correct, then press ESC, enter: WQ to save and exit the VIM editor.

 

7. Configuration verification and operation completion

After the modification, execute the reboot command to restart the host. Log in to the background of the host and check the relationship between eth number and MAC address with IP a command.


Use Ping to verify that the network connectivity after the replacement of the maintenance network card is correct.

If the corresponding relationship between eth number and MAC address is correct, but Ping verification fails, please check the corresponding relationship of network cable, optical fiber and network card interface, and check whether the corresponding relationship between network card port and MAC address is correct.

If there is no problem, exit the host from maintenance mode in CVM interface.

 

该案例对您是否有帮助:

您的评价:1

若您有关于案例的建议,请反馈:

0 comments

No comments

Add Comments:

举报

×

侵犯我的权益 >
对根叔知了社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔知了社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作