Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10202672
  • 博文数量: 1669
  • 博客积分: 16831
  • 博客等级: 上将
  • 技术积分: 12594
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 07:23
个人简介

柔中带刚,刚中带柔,淫荡中富含柔和,刚猛中荡漾风骚,无坚不摧,无孔不入!

文章分类

全部博文(1669)

文章存档

2023年(4)

2022年(1)

2021年(10)

2020年(24)

2019年(4)

2018年(19)

2017年(66)

2016年(60)

2015年(49)

2014年(201)

2013年(221)

2012年(638)

2011年(372)

分类:

2012-11-26 08:50:50

How to Identify if your iSCSI Storage Repository has Changed SCSI IDs  

2012-11-23 12:10:05|  分类: linux下Oracle 10 |  标签: |字号 

Document ID: CTX118641 / Created On: 2009-1-6 / Updated On: 2009-8-26
Average Rating: 5 (2 ratings)

Summary

The SCSI ID of the logical unit number (LUN) changed. When this happened, the iSCSI storage repository became unplugged after a XenServer reboot. This article will help you identify if your iSCSI Storage Repository (SR) has changed SCSI IDs and provide steps to repair it.

Note: This procedure requires Advance Level Xen Administration Skills. It is advisable to contact Citrix Technical support before you continue recovery.

Requirements

Administrative Access to XenCenter/XenServer

XenServer Certified

Procedure

Two procedures are detailed below that describe how to identify and correct the problem with SCSI ID mappings in XenServer.

Identify that the SCSI ID mapping is the issue

1. In XenCenter, iSCSI SR General Tab indicates that the Storage Repository is unplugged:

How to Identify if your iSCSI Storage Repository has Changed SCSI IDs - zhuzhu - 五事九思 (大连Linux主机维护)

2. Repair fails with “No such device” error:

How to Identify if your iSCSI Storage Repository has Changed SCSI IDs - zhuzhu - 五事九思 (大连Linux主机维护)

3. Identify what is the current SCSI ID on the LUN containing your Storage Repository:

# xe sr-probe type=lvmoiscsi device-config:target= device- \
config:targetIQN=

Example:

# xe sr-probe type=lvmoiscsi device-config:target=10.12.45.10 device-config:targetIQN=iqn.1992-08.com.netapp:sn.135027806
Error code: SR_BACKEND_FAILURE_107
Error parameters: , The SCSIid parameter is missing or incorrect,



NETAPP


P3LfCZIcoVML


150


23622320128


360a9800050334c66435a49636f564d4c



4. Identify what SCSI ID the XenServer expects to be on the LUN containing your Storage Repository by running the following commands:

# xe sr-list type=lvmoiscsi - Identify UUID of the SR that is unplugged.

# xe pbd-list sr-uuid= - Identify expected SCSI ID of the LUN containing SR that is unplugged.

Example:

# xe sr-list type=lvmoiscsi

uuid ( RO) : f6a7d8be-cd21-d9b2-1864-9c67d7ed1724

name-label ( RW): iSCSI virtual disk storage

name-description ( RW): iSCSI SR [10.12.45.10 (iqn.1992-08.com.netapp:sn.135027806)]

host ( RO): xenserver-dellAMDR131

type ( RO): lvmoiscsi

content-type ( RO):

# xe pbd-list sr-uuid=f6a7d8be-cd21-d9b2-1864-9c67d7ed1724

uuid ( RO) : 9cd47f3e-944d-0ea2-522c-5c7e399543ab

host-uuid ( RO): ac3e1d25-c12e-4588-bc35-857ad1fa7e43

sr-uuid ( RO): f6a7d8be-cd21-d9b2-1864-9c67d7ed1724

device-config (MRO): port: 3260; target: 10.12.45.10; SCSIid:\ 360a9800050334c66435a49636f545143; targetIQN: iqn.1992-08.com.netapp:sn.135027806

currently-attached ( RO): false

Note: this SCSI ID should match the entry under the XenCenter iSCSI SR General Tab.

SCSI ID collected from steps 3 and 4 must match. If they do not your LUN SCSI ID has been changed.

Correct SCSI ID mappings

To correct the issue you must recreate a PBD with the entry to reflect the right SCSI ID.

1. Destroy the existing PBD by running the following commands:

# xe pbd-unplug uuid= - PBD of the iSCSI Storage Repository with mismatched SCSI ID collected from the output of the pbd-list command during your investigation.

# xe pbd-destroy uuid= - PBD of the iSCSI SR with mismatched SCSI ID collected from the output of the pbd-list command during your investigation.

Example:

# xe pbd-unplug uuid=9cd47f3e-944d-0ea2-522c-5c7e399543ab

# xe pbd-destroy uuid=9cd47f3e-944d-0ea2-522c-5c7e399543ab

2. Create new PBD and activate Storage Repository by running the following commands:

# xe pbd-create sr-uuid= host-uuid= device-\ config:target= device-config:targetIQN= \ device-config:SCSIid= - SCSI ID collected from the output of the pbd-list command during your investigation.

# xe pbd-plug uuid= > - Activate SR by plugging in newly created PBD.

Example:

# xe pbd-create sr-uuid=f6a7d8be-cd21-d9b2-1864-9c67d7ed1724 host \ -uuid=ac3e1d25-c12e-4588-bc35-857ad1fa7e43 device-config:target=10.12.45.10 device-config:targetIQN=iqn.1992 \ -08.com.netapp:sn.135027806 device-config:SCSIid=360a9800050334c66435a49636f564d4c

2cb5ead5-0184-e5ec-e25d-2897ce402a81 <- Will return UUID of the created PBD.

# xe pbd-plug uuid=2cb5ead5-0184-e5ec-e25d-2897ce402a81

3. Confirm that the Storage Repository is active in XenCenter iSCSI SR General Tab.

Note: XenCenter may have to be restarted.

How to Identify if your iSCSI Storage Repository has Changed SCSI IDs - zhuzhu - 五事九思 (大连Linux主机维护)

More Information

Additional background and/or reference information can be obtained from the XenServer Administrators guide.

阅读(1196) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~