How to extend root partition ??

HI All
I install senitnel on a VM , because root partition seem use full, so I extend HD size.
Although HD size extend, but root size still keep original size.
it seem need extend on offline mode(resecue mode or DVD boot), but then I have no idea…
Anyone could help me a simple procedure let me extend my root partition ?

thanks!!

wyldkao

Hi wyldkao,

so I extend HD size

assuming you’re not using LVM, what exactly did you do - extend the disk or the partition your root FS resides in? Once you’re resized the “container” (i.e. the partition), you’ll have to tell the file system that it should make use of the extra space. How that’s done depends on the actual file system used, i.e. for Ext3/4 file systems you can use “resize2fs /dev/” to resize - which would even work “live”.

Resizing the partition will likely need a reboot of the server before resizing the file system - have you done that already? (Which is one of the reasons that I prefer using LVM - you can do all that and more live.)

Regards,
J

Also keep in mind that if you defined /boot and / at the start of the
drive, then had a swap partition for some reason after that, you could not
extend / without using something like LVM.

Probably better, with something like Sentinel, is to have a dedicated
/var/opt/novell/sentinel partition, and maybe an /opt partition, since
/var is where the bulk of the raw data will be stored by default. You
could add that now; create new partition, format it (XFS is best for most
things these days holding data rather than the ext family of filesystems),
mount it somewhere temporarily (/mnt), stop Sentinel and copy over all
data from /var/opt/novell/sentinel to /mnt (new partition), then unmount
that and remount it against /var/opt/novell/sentinel and fire up the
application. If everything works properly, then make sure that’s done
persistently (modify /etc/fstab) and, when you have a moment, clean out
the old /var/opt/novell/sentinel directory, which would require first
unmounting the new one. BE SURE you do this correctly by verifying the
new partition is unmounted before cleaning it out or you’ll clean out the
new stuff and that would be wrong and bad.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…