Mudtoe,
the best way to go would have been to simply resize /dev/md2
After some further testing I've found out that the metadevice can be resized using the following:
#mdadm --grow --size=max /dev/md2
So the more elegant way of doing it would have been:
Resize the vm (already done)
Boot from the Finnix CD or sme rescue but don't mount the filesystem, delete partition sda2 and recreate using free space (this doesn't destroy the data, it just updates the partition table with info about the new free space)
Reboot into smeserver
Resize the metadevice
#mdadm -G -z max /dev/md2
#pvresize -v /dev/md2
#vgdisplay (to find free space)
#lvresize -L +80GB /dev/main/root (where 80GB is the free space listed above)
#ext2online -d -v /dev/main/root
Note, I've only partially tested this. I'll fully test this soon and report back.
Regards, Lloyd
I've tested this, since I wanted to place a larger harddisk instead of the old one.
I use a single disk.
I did:
Boot from SME server CD, skip media test, leave it there, do nothing else here.
Goto other console using: CTRL ALT F2
#fdisk /dev/hda
d to delete partition, then 2 for /dev/hda2
n for new partition, 1 for primary partition (not sure of number), partition number 2.
c to change partition type to fd for linux raid.
Then reboot into SME server.
#pvresize -v /dev/hda2
#vgdisplay (to find free space)
#lvresize -L +80GB /dev/main/root (where 80GB is the free space listed above)
#ext2online -d -v /dev/main/root
This worked fine on my machine, thanks everyone for the help this topic provided for me, it solved my problem I was trying to solve for a couple of days.
