Resizing the root physical volume in an encrypted LVM

James Michael Fultz croooow at gmail.com
Tue Oct 20 22:54:45 UTC 2009


* Ioannis Vranos <cppdeveloper at ontelecoms.gr> [2009-10-21 00:29 +0300]:
> I have installed Ubuntu 9.04 x64 via alternate installation CD, as an
> encrypted volume group with the root partition (/) and the swap taking
> over the 50% of the volume group, the rest being free space.
> 
> I want to either resize the root partition to take over the rest of the
> free space, or create a new unencrypted LVM with this free space.
> 
> I installed system-config-lvm, but it looks like impossible to resize /
> as it is mounted, and can't be unmounted to do this.

You should be able to resize the logical volume for '/' using lvextend.
ext3 and ext4 filesystems may be resized online for extending free
space.  resize2fs is the tool for that.  There is also xfs_growfs for
XFS and resize_reiserfs for ReiserFS.




More information about the ubuntu-users mailing list