Re: expanding a luks volume
Alex Samad wrote:
> Hi
>
> subject says it all I have a lv, which i have used luks to encrypt and
> now I would like to extend it.
>
> I am guessing the process is going to involve coping the files over to
> another partition and then back again ?
>
> Alex
No not at all. Treat it as any other volume and simply extend it.
http://www.piglets.org/serendipity/archives/62-Guided-LVM-in-Debian.html
# Check the filesystem
e2fsck -f /dev/lorien/home
# Make it slightly smaller
resize2fs /dev/lorien/home 199G
# We are about to play with LVM
lvchange -a n /dev/lorien/home
# Tell it to reduce the size by 1 Gigabyte
lvreduce -L-1g /dev/lorien/home
# Done with LVM
lvchange -a y /dev/lorien/home
# Check the filesystem again
e2fsck -f /dev/lorien/home
# Playing with LVM
vchange -a n /dev/lorien/root
# Increase the LV by 1 G
lvextend -L+1g /dev/lorien/root
# Finished with LVM
lvchange -a y /dev/lorien/root
# Check the file system
e2fsck -f /dev/lorien/root
# resize it
esize2fs /dev/lorien/root
# Check one last time.
e2fsk -f /dev/lorien/root
Reply to: