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 luns的NAS卷导致数据变得无法容纳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