There are two methods to go about doing this - one is command line driven, the other is done though Xen Center. I'm not much on command lines, so I'll start with the latter.
Make sure you read all instructions before starting.
Expand Using Xen Center 5.x
- Identify the iSCSI SR to adjust. Document all settings.
- Shut down all guests using this iSCSI SR.
- Make sure you have all iSCSI settings documented.
- Right click on the iSCSI SR, select Detach.
- Right click on the iSCSI SR, select Reattach.
- Depending on your configuration, you may need to reenter some settings.
Expand using the Xen console
1. Shutdown all virtual machines on the SR.
2. Note the Universally Unique Identifier (UUID) of the Storage Repository. Use the xe sr-list command on the XenServer host and identify the SR by its name label.
3. Identify the Physical Block Device (PBD) UUID corresponding to the SR. Use the following command on XenServer:
# xe sr-param-list uuid=
|grep PBD
whereis the UUID of the SR noted in step 2. 4. Unplug the Physical Block Device (PBD) corresponding to the Storage Repository.
# xe pbd-unplug uuid=
whereis the UUID of PBD noted in step 3. 5. Plug the PBD.
# xe pbd-plug uuid=
6. Find the physical volume device SCSI device mapping name on which the SR exists.
Identify the Volume Group (VG) corresponding to the SR.
Issue the following command on XenServer host:
# pvs
The output of this command should be similar to one below:
PV VG
Fmt Attr PSize PFree
/dev/sdd VG_XenStorage-058e9a1d-9b7e-71bc-7a4c-5b78d6e30bcb lvm2 a- 80.00G 38.00G
/dev/sde VG_XenStorage-4684b6c6-be6d-6267-b7b5-834a1fd30f65 lvm2 a- 59.99G 45.99G
The volume groups (VG) are named as VS_XenStorage-
. Using the SR UUID noted in step 2, identify the correct volume group and the corresponding Physical Volume (PV) from the output of the above command. 7. Resize the Physical Volume:
# pvresize /dev/sd
8. Scan the Storage Repository:
# xe sr-scan uuid=