Adding Local Storage to XenServer 6.2 Post-Installation
If you’re like me and needed to add an extra disk (local disk) to the XenServer host, then you’ve probably realized that it’s not as simple as just adding the disk and re-scanning for storage. In fact, we have to make some modifications in the Xen Shell in order to add the extra disk.
Within the virtual machine (Nested XenServer host) we can easily add another disk by opening the settings of the virtual machine and adding another disk
As you can see in the image above, I’ve decided to add a 100GB disk to the virtual machine. I then went a head and rebooted the virtual machine and quickly realized that the local disk was not added to the XenServer yet. It did however get detected by the XenServer host by running fdisk -l within the shell
Since we now see the newly added disk, we need to create a new physical volume by running pvcreate /dev/sdb. (dev/sdb is how the disk is labled on my end, for you it could be different so please make the necessary adjustments.)
We now need to create a storage repository before it is presented to the XenServer for usage. We will need to run the following command, xe sr-create type=lvm content-type=user device-config:device=/dev/sdb name-label=LD2 (again, make sure to replace /dev/sdb with your info)