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 5.6.

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.

6.Click Repair to create and plug a PBD for each host in the pool.

Moving Virtual Disk Images (VDIs) between SRs

The set of VDIs associated with a VM can be copied from one SR to another to accommodate maintenance requirements or tiered storage configurations. XenCenter provides the ability to copy a VM and all of its VDIs to the same or a different SR, and a combination of XenCenter and the xe CLI can be used to copy individual VDIs.

Copying all of a VM's VDIs to a different SR

The XenCenter Copy VM function creates copies of all VDIs for a selected VM on the same or a different SR. The source VM and VDIs are not affected by default. To move the VM to the selected SR rather than creating a copy, select the Remove original VM option in the Copy Virtual Machine dialog box.

1.Shutdown the VM.

2.Within XenCenter select the VM and then select the VM > Copy VM menu option.

3.Select the desired target SR.

Copying individual VDIs to a different SR

A combination of the xe CLI and XenCenter can be used to copy individual VDIs between SRs.

60

Page 80
Image 80
Citrix Systems 5.6 manual Resizing an SR, Converting local Fibre Channel SRs to shared SRs