I’ve been setting up a new XenServer with a Mirrored 250GB volume, and a RAID 5 volume with three 2TB disks. The mirror is holding the virtual servers, and the Raid5 is to be used for snapshots and the file storage. I’ve looked for a few days now trying to find a solution to exceed the 2TB limit in the new XenServer and I finally found it here.
Credit to Scott Bigliardi for this:
- Begin by finding the uuid of the SR:
- Get the volume group device name:
- Create the new logical volume, with a proper name:
- Tell XenServer to scan the SR:
1 2 3 4 5 6 7 | root@xen1~]# <strong><span style="color: #0000ff;">xe sr-list</span></strong> uuid ( RO) : b55e5f09-8fef-4b5d-8dae-9410d630f205 name-label ( RW): SATA_7.2K 20T name-description ( RW): Hardware HBA SR host ( RO): type ( RO): lvmohba content-type ( RO): |
1 2 | root@xen1 ~]# <strong><span style="color: #0000ff;">vgs | awk '{print $1}' | grep b55e5f09-8fef-4b5d-8dae-9410d630f205</span></strong> VG_XenStorage-b55e5f09-8fef-4b5d-8dae-9410d630f205 |
Change 3T to 4T or 5T (etc) to specify the size of your giant VDI
1 2 | root@xen1 ~]# <strong><span style="color: #0000ff;">lvcreate -L3T -n"LV-"$(uuidgen) VG_XenStorage-b55e5f09-8fef-4b5d-8dae-9410d630f205</span></strong> Logical volume "LV-4e3da1e4-9e1a-4e12-96a1-d3c233efc0d5" created |
1 | root@xen1 ~]# <span style="color: #0000ff;"><strong>xe sr-scan uuid=b55e5f09-8fef-4b5d-8dae-9410d630f205</strong></span> |
After scanning the SR, the new VDI magically appeared under the Storage tab for this SR in XenCenter.
I then gave it a name and description, and assigned it to a VM just like any other VDI.