cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Midgett" <>
Subject RE: Status of Root Disk Resize for XenServer
Date Sun, 14 Dec 2014 02:02:56 GMT
For anyone who can expand on this here is what I did to get the disk added to my root volume
disk .  There is two return lines between the w and the pvecreate command. Do not remove them
as it takes the double enter to use the first bit of the drive to the last bit of the drive.
Run on first boot and have it remove the script. I'd have to say that if the customer didn't
ask for a data disk it would just error and quit. Someone with some better scripting skills
could possible make it look for a un-partitioned drive and the only run the scrip if it found
one. Also it could use some variables but this will work for me until official support for
single disk and resize on XenServer.

# Short script to add the unpartitioned disk to the current root volume.
fdisk -u -p /dev/xvdb <<EOF

pvcreate /dev/xvdb1
vgextend vg_centos6 /dev/xvdb1
lvextend -l 100%FREE /dev/vg_centos6/lv_root
resize2fs /dev/mapper/vg_centos6-lv_root

-----Original Message-----
From: Matthew Midgett [] 
Sent: Saturday, December 13, 2014 7:49 PM
Subject: RE: Status of Root Disk Resize for XenServer

I've done that with LVM on a physical hd, so I guess that I just need to script it and make
it first boot and leave the issue alone. Thanks

-----Original Message-----
From: Erdősi Péter [] 
Sent: Saturday, December 13, 2014 6:33 PM
Subject: Re: Status of Root Disk Resize for XenServer

2014.12.13. 21:50 keltezéssel, Matthew Midgett írta:
> Will someone direct me on to the correct path?
It's just workaround, but if it's unix system, lvm can solve the problem, if you add the datadisk
to a same volume group.
Another method, - which can be risky and you need write permission to CS database - is: you
just extend the xen LV size, and update the new in CS db. the last step needed to CS, to calculate
remaining space on a storage.


View raw message