> The story before (over 5 years ago) was that you couldn't resize root
> basically.  Now with great stuff like LVM, it seems you can do some resizing
> from a boot CD and not have to tar/untar and hope for the best...
> 
> Well, for whatever reason, I have a brand new RHEL5 machine, and they did
> *not* use LVM.  So I guess I'm out of luck with doing a *simple* and "very
> likely to work" resize of root?

Marco, I've used this process with ext3 file systems when we need to extend a 
partition (usually on a SAN drive or a VM server where you add additional space 
via the host)  Note, this process ONLY works on the last partition of a drive, 
if it's not the last one, don't do this!  I have successfully resized a couple 
ext3 root partitions with this process:

1. boot into single user (or if it's the root partition you're working with, 
boot off your RHEL install CD into rescue shell - don't mount the partition)
2. use fdisk to delete the last partition on the drive in question
3. create a new partition - use all available space - hopefully fdisk will have 
additional space for you to use, if not quit without writing.
4. exit/write in fdisk (don't do this between steps 2 and 3 or you're hosed!)
5. run resize2fs /dev/sdXX (whatever dev corresponds to your new partition)
6. resize2fs will ask you to run fsck - so do what it wants.
7. re-run the resize2fs command (this can take a while depending on size, # of 
files)
8. test mount the partition to verify the size and existence of files.  
9. reboot and have a beer.

Of course you'll wanna do this on a test system first to verify it works for 
you and also take a backup of the partition in question first.  :)

Good luck,

Josh

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to