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 the sr-probecommand. The UUID of the new SR is 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 is 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-attachedproperty 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.

Resizing an SR

If you have resized the LUN on which a iSCSI or HBA SR is based, use the following procedures to reflect the size change in XenServer:

1.iSCSI SRs - unplug all PBDs on the host that reference LUNs on the same target. This is required to reset the iSCSI connection to the target, which in turn will allow the change in LUN size to be recognized when the PBDs are replugged.

2.HBA SRs - reboot the host.

Note:

In previous versions of XenServer explicit commands were required to resize the physical volume group of iSCSI and HBA SRs. These commands are now issued as part of the PBD plug operation and are no longer required.

Converting Local Fibre Channel SRs to Shared SRs

Use the xe CLI and the XenCenter Repair Storage Repository feature to convert a local FC SR to a shared FC SR:

1.Upgrade all hosts in the resource pool to XenServer 6.0.

2.Ensure all hosts in the pool have the SR's LUN zoned appropriately. See the section called “Probing an SR” for details on using the sr-probecommand to verify the LUN is present on each host.

3.Convert the SR to shared:

xe sr-param-set shared=true uuid=<local_fc_sr>

4.Within XenCenter the SR is moved from the host level to the pool level, indicating that it is now shared. The SR will be marked with a red exclamation mark to show that it is not currently plugged on all hosts in the pool.

5.Select the SR and then select the Storage > Repair Storage Repository menu option.

56

Page 74
Image 74
Citrix Systems 6 manual Resizing an SR, Converting Local Fibre Channel SRs to Shared SRs