HP BL680c XenServer Administrator's Guide 4.1.0 - Page 32

Introducing a SR, 4.3. Converting local Fibre Channel SRs to shared SRs

Page 32 highlights

Storage 2. To destroy the SR, which deletes both the SR and corresponding PBD from the XenServer Host database and deletes the SR contents from the physical media: xe sr-destroy uuid= 3. Or, to forget the SR, which removes the SR and corresponding PBD from the XenServer Host database but leaves the actual SR contents intact on the physical media: xe sr-forget uuid= 3.4.2. Introducing a SR Introducing an SR that has been forgotten requires introducing an SR, creating a PBD, and manually plugging the PBD to the appropriate XenServer Host in order to activate the SR. The following example introduces a SR of type lvmoiscsi. 1. Probe the existing SR to determine its UUID: xe sr-probe type=lvmoiscsi device-config:target=192.168.1.10 \ device-config:targetIQN=192.168.1.10:filer1 \ device-config:SCSIid=149455400000000000000000002000000b70200000f000000 2. Introduce the existing SR UUID returned from sr-probe. The UUID for the new SR will be returned: xe sr-introduce content-type=user name-label="Example Shared LVM over iSCSI SR" shared=true uuid= type=lvmoiscsi 3. Create a PBD to accompany the SR. The UUID of the new PBD will be returned: xe pbd-create type=lvmoiscsi host-uuid= sr-uuid= \ device-config:target=192.168.0.1 \ device-config:targetIQN=192.168.1.10:filer1 \ device-config:SCSIid=149455400000000000000000002000000b70200000f000000 4. Plug the PBD to attach the SR: xe pbd-plug uuid= 5. Verify the status of the PBD plug. If successful the currently-attached property will be true: xe pbd-list sr-uuid= Note Steps 3 through 5 must be performed for each host in the resource pool, and can also be performed using the Repair Storage Repository function in XenCenter. 3.4.3. Converting local Fibre Channel SRs to shared SRs Previous XenServer releases supported only local (non-shared) Fibre Channel (FC) SRs. In cases where a local FC SR is actually accessible by other hosts in a pool the SR can be converted to shared, allowing VMs with VDIs on the SR to be started on and migrated between hosts within the pool. Converting a local FC SR to a shared FC SR requires using the xe CLI and the XenCenter Repair Storage Repository feature: 26

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108

Storage
26
2.
To destroy the SR, which deletes both the SR and corresponding PBD from the XenServer Host database
and deletes the SR contents from the physical media:
xe sr-destroy uuid=<SR_UUID>
3.
Or, to forget the SR, which removes the SR and corresponding PBD from the XenServer Host database
but leaves the actual SR contents intact on the physical media:
xe sr-forget uuid=<SR_UUID>
3.4.2. Introducing a SR
Introducing an SR that has been forgotten requires introducing an SR, creating a PBD, and manually plug-
ging the PBD to the appropriate XenServer Host in order to activate the SR.
The following example introduces a SR of type lvmoiscsi.
1.
Probe the existing SR to determine its UUID:
xe sr-probe type=lvmoiscsi device-config:target=192.168.1.10
\
device-config:targetIQN=192.168.1.10:filer1 \
device-config:SCSIid=149455400000000000000000002000000b70200000f000000
2.
Introduce the existing SR UUID returned from sr-probe. The UUID for the new SR will be returned:
xe sr-introduce content-type=user name-label="Example Shared LVM over iSCSI SR"
shared=true uuid=<VALID_SR_UUID> type=lvmoiscsi
3.
Create a PBD to accompany the SR. The UUID of the new PBD will be returned:
xe pbd-create type=lvmoiscsi host-uuid=<VALID_UUID> sr-uuid=<VALID_SR_UUID> \
device-config:target=192.168.0.1 \
device-config:targetIQN=192.168.1.10:filer1 \
device-config:SCSIid=149455400000000000000000002000000b70200000f000000
4.
Plug the PBD to attach the SR:
xe pbd-plug uuid=<PBD_UUID>
5.
Verify the status of the PBD plug. If successful the
currently-attached
property will be true:
xe pbd-list sr-uuid=<SR_UUID>
Note
Steps 3 through 5 must be performed for each host in the resource pool, and can also be performed
using the Repair Storage Repository function in XenCenter.
3.4.3. Converting local Fibre Channel SRs to shared SRs
Previous XenServer releases supported only local (non-shared) Fibre Channel (FC) SRs. In cases where
a local FC SR is actually accessible by other hosts in a pool the SR can be converted to shared, allowing
VMs with VDIs on the SR to be started on and migrated between hosts within the pool.
Converting a local FC SR to a shared FC SR requires using the xe CLI and the XenCenter Repair Storage
Repository feature: