Resizing initially installed logical volume?
Hi,
Back in the day, I foolishly installed my Fedora server with the default logical volume layout on one physical volume. Knowing now that this is a huge waste of space (partition is large) I'd like to reduce the logical volume and somehow detach this now unused space and mount as a normal partition. Is this possible? Only 20GB of the 160GB has been used for the OS. Home partition is on a secondary disk. |
Use resize2fs & lvreduce.
Make sure you read the man-pages of both tools carefully, and that you have a current backup ;} Cheers, Tink |
Then of course you'll have to reduce the pv. This was discussed here recently, a quick search should find it.
|
Thanks :)
|
use this method for reducing logical volume
1.First unmount that partition by "umount /dev/vol0/root" whatever it is, check in "/etc/fstab" 2.then run "fsck -f /dev/vol0/root" 3.resize2fs /dev/vol0/root 5G" if wan to reduce to 5GB 4.run lvreduce -L 5G /dev/vol0/root" 5.mount -a That's it. This is the normal operation. I do in this way, use this method! |
Quote:
|
Quote:
Honestly, the best (and safest) way to do this, would be to back your data up, and do a fresh install. If you're not already at Fedora 13, it's a perfect opportunity to not only resize/repartition your disks, but upgrade your OS as well. But before you do ANYTHING, make very, VERY sure you have good backups!!! Anytime you mess with volume sizes, partitons, etc., there's always a chance things can go bad. |
Cool, thanks. I'm not *too* worried about hosing the drive....I have two nightly backups to different drives via a bash script/cronjob :D
|
Quote:
What version of Fedora are you running? |
Quote:
|
All times are GMT -5. The time now is 11:02 AM. |