Koozali.org: home of the SME Server

How to extend the root partition on SME running in a VM

Offline edb

  • *
  • 548
  • +0/-0
How to extend the root partition on SME running in a VM
« on: February 27, 2011, 03:46:39 AM »
Can anyone tell me how to go about extending my root partition as I am running SME Server8 on VMware VSphere4.1 and I had a bit of a pain converting the VM to extend the IDE drive to a new larger size and I tried but couldn't convert the drive to SCSI-LSI due to a kernel panic after the conversion but that is at least behind me now and I have the IDE drive done and running now with a much larger capacity.

So my next step is to use the additional IDE HD space and extend the root partition to capacity but I am not sure how to go about this since it is a VM with only one IDE drive. I did do a search but many of the situations were different than mine so I thought I would throw it out here to the gurus.

I read that
Code: [Select]
ext2online -C0 /dev/main/root would also extend the partition but I cannot find that command and didn't want to try it without getting some advise first. I also seen that there was a resize2fs command that sounded like it replaces the ext2online command but appears to be just for extending the file system not a partition. So it sounds like one must use fdisk to resize the partition first and then use resize2fs later to extend the file system.

All I know is that this process is a hell of a lot easier on a Windows server.

Here is a print out of the fdisk -l command from my server console.

Code: [Select]
[root@~]# fdisk -l

Disk /dev/hda: 51.5 GB, 51539607552 bytes
255 heads, 63 sectors/track, 6266 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   fd  Linux raid autodetect
/dev/hda2              14        2088    16667437+  fd  Linux raid autodetect

Disk /dev/md2: 17.0 GB, 17067343872 bytes
2 heads, 4 sectors/track, 4166832 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/md1: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md1 doesn't contain a valid partition table
[root@~]#

No rush but any help with this would be greatly appreciated.

-edb

......