[分享]重命名包含ISCSI luns的NAS卷导致数据变得无法容纳iSCSI luns_Hadoop,ERP及大数据讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  Hadoop,ERP及大数据讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 4291 | 回复: 0   主题: [分享]重命名包含ISCSI luns的NAS卷导致数据变得无法容纳iSCSI luns        下一篇 
shunzi
注册用户
等级:上尉
经验:782
发帖:133
精华:0
注册:2011-10-10
状态:离线
发送短消息息给shunzi 加好友    发送短消息息给shunzi 发消息
发表于: IP:您无权察看 2012-1-4 11:38:11 | [全部帖] [楼主帖] 楼主

Renaming NAS volume containing iSCSI luns causes data contained on the iSCSI luns to become inaccessible
Symptoms
When Renaming a volume that contains iSCSI luns, the NAS head fails to update the environment variables associated with any of the iSCSI luns created on the volume.
This causes the iSCSI luns to become inaccessible on any of the clients accessing these luns.
Resolution
The resolution to this problem was to have the NAS head properly update the iSCSI related environment variables upon a volume rename.
This has been reported in CR 6442222 (or 6377759) and fixed in 4.20 B31.
Relief/Workaround
1. Make note of the ORIGINAL and NEW volume names.
New volume name can be seen in the lefthand window pane under "System Manager"
Original volume name will be listed in the "Configure iSCSI LUN for MS-Exchange" screen found under iSCSI Configuration ->Configure iSCSI LUN
2. List the environment variables:
Telnet to the NAS head, log in as administrator
5210> show iscsi.node*.targetdevice
iscsi.node.0.targetdevice=/TESTVOL/iqn.1986-03.com.sun:01:000e0c317c74.44926AF8.LUN1
In the above, note that the volume is still TESTVOL
3. Set target device variables that reflect the "OLD" vol name to the new vol name
5210> set iscsi.node.0.targetdevice /NEWVOL1/iqn.1986-03.com.sun:01:000e0c317c74.44926AF8.LUN1
Note that the environment variable was changed from TESTVOL to NEWVOL1, also note
that similar changes will have to be made for all target devices reflecting the
wrong path.
4. Save the updated environment variables
5210> savevars
5. Load the changed variables so the changes become active
5210> loadvars
6. Return to the NAS GUI,
Expand "iSCSI Configuration" in the left window pane,
Choose "Configure iSCSI LUN" from the list
In the righthand window pane, select ANY iSCSI lun
that is on the renamed volume and push the 'Edit'
button.
In the resulting pop-up, clic, the 'Apply' button
At this point you should be able to regain access to the iscsi luns at the pc.
You may have to manually re-login the luns using the iSCSI initiator software at the pc but it should be successful.
Product
Sun StorageTek 5310 NAS Gateway System
Sun StorageTek 5310 NAS Appliance
Sun StorageTek 5210 NAS Appliance
Sun StorageTek 5320 NAS Gateway/Cluster System
Sun StorageTek 5320 NAS Appliance
Sun StorageTek 5310 NAS Gateway/Cluster System
Sun StorageTek 5220 NAS Appliance


重命名包含ISCSI lunsNAS卷导致数据变得无法容纳iSCSI luns

症状

当重命名一个包含ISCSI LUNS的卷,NAS头无法更新在卷上创建iscsi luns的任何相关的环境变量。这将导致iscsi luns成为任何客户端无法访问这些LUNS

解决

解决这个问题是正确的NAS头更新卷重命名后的iSCSI 相关的环境变量。

这已经被报道在CR 6442222(6377759)和被固定在4.20 B31

解除/解决方法

1.请注意原始和新的卷名。

新卷的名称可以再左边窗口里面的系统管理器看出,原始卷的名称将在"Configure iSCSI LUN for MS-Exchange" 屏幕上发现iSCSI配置下列出。

->Configure iSCSI LUN


2.列出环境变量

远程用管理员登陆到NAS头。

5210> show iscsi.node*.targetdevice
iscsi.node.0.targetdevice=/TESTVOL/iqn.1986-03.com.sun:01:000e0c317c74.44926AF8.LU
N1


在上面,需要注意的是任然是TESTVOL的环境变量。

3.设置目标设备的变量,反映出从的卷名到新的卷名称

5210> set iscsi.node.0.targetdevice /NEWVOL1/iqn.1986-03.com.sun:01:000e0c317c74.44926AF8.LUN1


需要注意的是环境变量要从TESTVOL变到NEWVOL1,还要注意的是,类似的变化将成功的为所有目标设备反映了错误的路径。

4.保存更新好的环境变量

5210> savevars


5.加载改变的变量,使这些改变生效。

5210> loadvars


6.返回NAS GUI.

在左边窗口展开"iSCSI Configuration",选择列表中的"Configure iSCSI LUN"

再在右手窗口里重命名的卷上选择任何iSCSI lun点击编辑按钮。

在弹出的窗口中点应用按钮

此时,你应该能够重新访问PC机上的iscsi luns.

你可能必须手动在PC机上使用iSCSI initiator软件重新登录luns,但它应该是成功的了。

产品

Sun StorageTek 5310 NAS Gateway System
Sun StorageTek 5310 NAS Appliance
Sun StorageTek 5210 NAS Appliance
Sun StorageTek 5210 NAS Appliance
Sun StorageTek 5320 NAS Appliance
Sun StorageTek 5310 NAS Gateway/Cluster System
Sun StorageTek 5220 NAS Appliance




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论