Resizing / with LVM
When I installed OS I used LVM and default partitioning scheme
Now I added more memory and want to make swap bigger. Only way to do it is to reduce / and then after add that free space to swap. How do I resize /? Can I use LVM somehow?
OS - Centos 4.3
if / and swap are both logical volumes then firstly you'd need to resize the filesystem, using something like resize2fs. once that's smaller you can then easily use lvresize to shrink to the filesystem inside it. once that's done, just use lvresize again to use the spare PE's for the swap partition. as far as the swap filesystem goes, it barely exists. i'd suggest taking the swap off the live environment with swapoff and then just use mkswap on the newly expanded lv. to be honest though i don't think you even need to do that, swapoff then swapon and it'd be bigger i *think*
I qustion before I start.
I guess I have to umount / before I use resize2fs, correct? If so do I have to boot into single user mode or ... not sure?
|All times are GMT -5. The time now is 02:27 AM.|