准备工作
a) 列出VNX Storage Processsor和Control Station的新的IP地址清单。
b) 用串口线连接CS0,并通过putty登陆。注:从Control Station的背面看,串口位于最右边。
c) 登陆Putty,配置参数如下:
- bits per second: 19200
- data bits: 8
- parity: None
- stop bit: 1
- flow control: None
- Telnet terminal ID: ANSI
d) 作为用户nasadmin登陆,进入根目录$ su root
情景一:新的IP地址和原地址在不同网段
1. 用下列命令暂停SP的Proxy ARP。这时原IP地址将不再回应任何ARP请求,即原地址失效。恢复到出厂的管理地址128.221.252.200和128.221.252.201。
# /nas/sbin/clariion_mgmt -stop
# ping 128.221.252.200 [SPA]
# ping 128.221.253.201 [SPB]
2. 更改CS0的IP地址,并验证:
a) 更改CS0的IP地址,并验证:
# nas_cs -set -ip4address 10.240.210.110 -ip4netmask 255.255.255.0 -ip4gateway 10.240.210.1
OK
# nas_cel -list
id name owner mount_dev channel net_path CMU
0 c250 0 10.240.210.110 FNM001046001132007
# grep /etc/hosts
10.240.210.110 c250.emc.com c250
b) 等待5-15分钟,CS0的新IP地址将被更新到管理域domain中。
# /nas/sbin/navicli -h 128.221.252.200 domain -list
# /nas/sbin/navicli -h 128.221.253.201 domain -list
注:在两个SP上最终的结果会显示CS0的新IP地址。
c) 如果有必要,插拔管理端口的端口到另一台交换机。
d) 如果只有单个Control Station,直接进入步骤5。如果有两个Control Station,继续下一步。
3. 从CS0切换至CS1,修改CS1的IP地址并更新至管理域domain。
a) 从CS0切换至CS1:
# /nas/sbin/cs_standby -failover
The system will reboot, do you wish to continue? [yes or no]: yes
Failing over from Primary Control Station...
b) 用串口线连接CS1,并通过putty登陆。确认CS1是当前的Primary control station。
# /nas/sbin/getreason
11 - slot_0 secondary control station
10 - slot_1 primary control station -->这里显示"Primary"
5 - slot_2 contacted
5 - slot_3 contacted
# ps -ef |grep boxm
# ps -ef |grep nas_m
c) 更改CS1的IP地址,并等待5-15分钟,确认CS0的新IP地址将被更新到管理域domain中。
# nas_cs -set -ip4address 10.240.210.111 -ip4netmask 255.255.255.0 -ip4gateway 10.240.210.1
OK
# nas_cel -list
# /nas/sbin/navicli -h 128.221.252.200 domain -list
# /nas/sbin/navicli -h 128.221.253.201 domain -list
# grep /etc/hosts
10.240.210.111 cs1_250.localdomain cs1_250
d) 如果有必要,插拔管理端口的端口到另一台交换机。
4. 从CS1切换回CS0,等待CS0的IP地址再次更新至Domain。
a) 从CS1切换回CS0。
# /nas/sbin/cs_standby -failover
The system will reboot, do you wish to continue? [yes or no]: yes
Failing over from Primary Control Station...
b) 用串口线连接CS0,并通过putty登陆。确认CS0当前是primary control station。
# ps -ef |grep boxm
# ps -ef |grep nas_m
# /nas/sbin/getreason
10 - slot_0 primary control station
11 - slot_1 secondary control station
c) 等待几分钟再次更新CS0 IP到domain中。
# /nas/sbin/navicli -h 128.221.252.200 domain -list
# /nas/sbin/navicli -h 128.221.253.201 domain –list
5. 在SPA和SPB上启用Proxy ARP、配置新的IP地址并确认新地址生效,整个过程大概需要15分钟。
# /nas/sbin/clariion_mgmt -start -spa_ip 10.240.210.112 -spb_ip 10.240.210.113
# /nas/sbin/getreason
# nas_storage -c -a
# ping 10.240.210.112
# ping 10.240.210.113
# /nas/sbin/navicli -h 10.240.210.112 domain -list
# /nas/sbin/navicli -h 10.240.210.113 domain –list
6. 登陆Unisphere,确认IP地址是否修改成功。
http://
http://
http://
情景二:新的IP地址和原地址在同一网段
1. 用下列命令更改两个SP的IP地址,确认新地址生效。
# /nas/sbin/clariion_mgmt -modify -spa_ip 10.240.200.52 -spb_ip 10.240.200.53
# ping 10.240.200.52
# ping 10.240.200.53
# tail /etc/hosts
10.240.200.52 A_FNM00104600113 SPA # CLARiiON SP
10.240.200.53 B_FNM00104600113 SPB # CLARiiON SP
# nas_storage -c -a
Discovering storage on c250 (may take several minutes)
done
# /nas/sbin/navicli -h 10.240.200.52 domain -list
# /nas/sbin/navicli -h 10.240.200.53 domain –list
2. 更改CS0的IP地址,并确认新地址更新至Domain中。
# nas_cs -set -ip4address 10.240.200.50 -ip4netmask 255.255.255.0 -ip4gateway 10.240.200.1
OK
# nas_cel -list
id name owner mount_dev channel net_path CMU
0 c250 0 10.240.200.50 FNM001046001132007
# /nas/sbin/navicli -h 10.240.200.52 domain -list
# /nas/sbin/navicli -h 10.240.200.53 domain -list
# grep /etc/hosts
10.240.200.50 c250.emc.com c250
3. 对于有两个Control Station的VNX设备,需要从CS0切换至CS1,更改CS1的IP地址,等待CS1新地址更新至Domain。
a) 从CS0切换至CS1
# /nas/sbin/cs_standby -failover
b) 登陆CS1,并确认CS1是当前的primary control station。
# /nas/sbin/getreason
11 - slot_0 secondary control station
10 - slot_1 primary control station
5 - slot_2 contacted
5 - slot_3 contacted
c) 更改CS1的IP地址,并确认新地址更新到Domain中。
# nas_cs -set -ip4address 10.240.200.51 -ip4netmask 255.255.255.0 -ip4gateway 10.240.200.1
OK
# nas_cel -list
# grep /etc/hosts
10.240.200.51 cs1_250.localdomain cs1_250
# /nas/sbin/navicli -h 10.240.200.52 domain -list
# /nas/sbin/navicli -h 10.240.200.53 domain –list
4. 从CS1切换回CS0,等待CS0的IP地址再次更新至Domain。
a) 从CS1切换回CS0
# /nas/sbin/cs_standby -failover
b) 登陆CS0,并确认CS0是当前的primary control
# /nas/sbin/getreason
11 - slot_0 primary control station
10 - slot_1 secondary control station
5 - slot_2 contacted
5 - slot_3 contacted
c) 确认CS0地址更新至Domain
# /nas/sbin/navicli -h 10.240.200.52 domain -list
# /nas/sbin/navicli -h 10.240.200.53 domain -list
5. 登陆Unisphere,确认IP地址是否修改成功。
http://
http://
http://