|
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*
|