服务器光纤卡故障更换后, 需更新存储节点的WWN对应关系, 由于ServerRAID Manager应用程序连接DS400存储出错, 于是通过Telnet工具完成此工作.
DS400的默认IP为192.168.70.123, 登录后可在任何时候使用tab 键可以查看命令的相关参数, help可以查看命令详细用法及解释.
# Telnet 192.168.70.123
—-[ IBM DS400: Command Line Interface ]————————————————
Copyright: IBM (c)2003-2005
Firmware: IBM TotalStorage DS Series (Build 0836)
[10/10/2005][7.00]
Typing ‘help’: provides an overview of the commands available to
configure the controller.
TAB key: use the TAB key as a means of getting assistance
in completing any commands that you issue.
DS400>
//进入管理员模式
DS400> administrator
Administrator level password: ********
DS400#
//查询原有节点
DS400# initiator list
Fiber Channel Initiators
210000e88b0be378 [hba_b270]
210000e88b0bd681 [HBA_B266]
DS400# port discover
Port Discovery List
Port Initiator WWN Name
0 210000e88b0bd681 HBA_B266
1 210000e08b1810d5
//删除原节点影射
DS400 (initiator)# manage hba_b270
DS400 (initiator-HBA_B270)#
? add allow deny end help info move quit remove rename
DS400 (initiator-HBA_B270)# help
manage an individual initiator
add add a new logical drive/LUN mapping for this initiator
allow allow access for this initiator on one or both FC ports
deny deny access for this initiator on one or both FC ports
info show information for this initiator
move change a logical drive/LUN mapping for this initiator
remove remove a logical drive/LUN mapping for this initiator
rename create a new alias for this initiator
end leave this context and return to main mode
quit leave the CLI
help/? display this output
DS400 (initiator-HBA_B270)# info
—-[ Initiators ]———————————————————————————
—-[ Initiator 'HBA_B270' ]——————————————————————-
WWN: 210000e88b0be378
Name: HBA_B270
ID: 0
Port access:
Port A0 Port A1 Port B0 Port B1
—————————————————————————————————
YES YES YES YES
LUN Mappings:
LUN logical [Capacity]
—————————————————————————————————
0 Device-1 [136.69GB]
1 Device-2 [136.69GB]
DS400 (initiator-HBA_B270)# remove 0
Remove the selected LUN mappings from initiator ? [Yes]: yes
LUNs removed from initiator HBA_B270
DS400 (initiator-HBA_B270)# remove 1
Remove the selected LUN mappings from initiator ? [Yes]: yes
LUNs removed from initiator HBA_B270
DS400 (initiator-HBA_B270)# end
DS400# initiator
DS400 (initiator)# help
manage Fiber Channel initiators
create create a new initiator
destroy destroy an initiator
info show information about some or all initiators
list list the known initiators
manage manage
end leave this context and return to main mode
quit leave the CLI
help/? display this output
DS400 (initiator)# destroy hba_b270
Destroy the selected initiators? [Yes]: yes
HBA_B270 destroyed
DS400 (initiator)# create hba_b270 210000e08b1810d5
Initiator hba_b270 created with WWN 210000e08b1810d5
DS400 (initiator)# manage hba_b270
DS400 (initiator-hba_b270)# add Device-1 0
Mapped logical drive Device-1 to initiator hba_b270 as LUN 0
DS400 (initiator-hba_b270)# add Device-2 1
Mapped logical drive Device-2 to initiator hba_b270 as LUN 1
DS400 (initiator-hba_b270)# info
—-[ Initiators ]———————————————————————————
—-[ Initiator 'hba_b270' ]——————————————————————–
WWN: 210000e08b1810d5
Name: hba_b270
ID: 0
Port access:
Port A0 Port A1 Port B0 Port B1
—————————————————————————————————
60; YES YES YES YES
LUN Mappings:
LUN logical [Capacity]
—————————————————————————————————
0 Device-1 [136.69GB]
1 Device-2 [136.69GB]
至此, 服务器正常访问存储.