柔中带刚,刚中带柔,淫荡中富含柔和,刚猛中荡漾风骚,无坚不摧,无孔不入!
全部博文(1669)
分类:
2012-11-26 08:50:50
2012-11-23 12:10:05| 分类: linux下Oracle 10 | 标签: |字号大中小
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:
2. Repair fails with “No such device” error:
3. Identify what is the current SCSI ID on the LUN containing your Storage Repository:
# xe sr-probe type=lvmoiscsi device-config:target=
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=
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=
# xe pbd-destroy uuid=
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=
# xe pbd-plug uuid=
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.
More Information
Additional background and/or reference information can be obtained from the XenServer Administrators guide.