I've extended my hardware RAID device on LSI MegaRAID controller by adding disks to the array. While making Linux notice the block device size change was not straight forward, I've found that one can rescan the device (using
echo y > /sys/devices/pci0000:00/0000:00:02.2/0000:03:00.0/host0/target0:2:0/0:2:0:0/rescan in my case, for first logical drive) to fix that.
Unfortunately, I'm stuck at this point.
XenServer 6.0 by default uses GPT not MBR partitions and as such, using
fdisk to modify partition table is impossible (the usual tool I've used to extend physical partitions). GPT labels save not only the position of partitions but also size of the disk (by saving the secondary GPT header at last 34, or so, sectors). Probably because of that, the
sgdisk utilities can't resize the last partition above the old drive limit.
fdisk (does not work with GPT),
sfdisk (does not work with GPT),
parted (not installed),
cfdisk (not installed).
What tool and commands should I use to extend GPT partitions on system without