By default, XenServer create LVM-type local storage repository (SR). The LVM-type local SR does not support VHD-formatted virtual hard disks, and hence may not be an ideal option when you are using XenServer along with OpenStack which requires access to individual VHD files for VM snapshot and migration. With EXT-type local SR, you can get direct access to VHD files.
If you want to change local storage repository from LVM to EXT, you can follow the steps below.
First, find out the partition for XenServer's local SR from /etc/xensource-inventory.
. . . .
. . . .
Like above, the default XenServer installation with a single hard disk creates local SR in /dev/sda3. Make the note of this information as it's needed when you create an EXT-type SR.
Now go ahead and remove the existing LVM-type local SR as follows.
Find out the UUID of the existing local SR:
Find out the UUID of physical block device associated with the local SR:
Remove the physical block device and purge the local SR:
$ xe pbd-destroy uuid=[pbd_uuid]
$ xe sr-forget uuid=[local_storage_uuid]
Finally, create a new EXT-type local SR as follows.
In the above command, replace "/dev/sda3" with the information you find out from /dev/xensource-inventory. This command will take a few minutes to run, depending on the size of the partition. If successfully completed, it will print out the UUID of the new EXT-type local SR created.
Subscribe to Xmodulo
Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!
Latest posts by Dan Nanni (see all)
- How to back up a WordPress website to remote cloud storage from the Linux command line - November 24, 2015
- How to access Dropbox from the command line in Linux - November 22, 2015
- How to send email notifications using Gmail SMTP server on Linux - November 9, 2015