Monday, August 23, 2010

Resizing encrypted LVM

Recently I have found myself in the situation that my root partition does not have any free space left for a new software. That is why I installed LVM I thought. Reading several FAQs and tutorials in Internet made me miserable though. It seemed that no tool support encrypted LVM properly and so on. According to numerous tutorials you had to decrypt the whole partition somewhere before working with it and so on. So, I risked to just use the tools ignoring the fact that my LVM is indeed encrypted. It worked like a charm in several minutes. It could be that the tools I used (e2fsck, e2resize, lvreduce, lvextend) already support encrypted LVMs...

You can use the following guide to try it yourself. Do not look that the blog has Feodora in the name. I used Debian and everything went fine.

http://allaboutfedora.blogspot.com/2007/01/how-to-resize-or-expand-lvm-partitions.html