« Some things don't change - what makes a good web appication |
Main|
Share your application setup »
This serves as a reference on what to do if you have (a) LUKS encrypted disk(s) that contains a LVM layout and you need to alter the partition layout
- Back up your data! While everything typically works out, you want to be save, so back up your data (and make sure the backup is readable)
- Boot from stick
- If not installed, install support libraries
sudo apt-get install lvm2 cryptsetup system-config-lvm
- If not existing, create your mount points (presuming LVM contains 2 volumes here)
sudo mkdir -p /luksdisk/root
sudo mkdir /luksdisk/home
- Probe the drivers
sudo modprobe dm-crypt
- Open the volume (it might be a different disk/partition on your system)
sudo cryptsetup luksOpen /dev/sda5 crypt1
- Show the physical volumes
sudo pvscan
- Find the volume groups
sudo vgscan --mknodes
sudo vgchange -ay
- List them (memorize the name - I presume it is mylvmdisk here)
sudo lvscan
- Start the LVM GUI and make all necessary changes
sudo system-config-lvm
- When done, mount the volumes
sudo mount /dev/mylvmdisk/root /luksdisk/root
sudo mount /dev/mylvmdisk/home /luksdisk/home
Reference:
Ubuntu Geek,
LinuxWave
As usual YMMV
Disclaimer
This site is in no way affiliated, endorsed, sanctioned, supported, nor enlightened by Lotus Software nor IBM Corporation. I may be an employee, but the opinions, theories, facts, etc. presented here are my own and are in now way given in any official capacity. In short, these are my words and this is my site, not IBM's - and don't even begin to think otherwise. (Disclaimer shamelessly plugged from Rocky Oliver)
© 2003 - 2013 Stephan H. Wissel - some rights reserved as listed here:

Unless otherwise labeled by its originating author, the content found on this site is made available under the terms of an Attribution/NonCommercial/ShareAlike Creative Commons License, with the exception that no rights are granted -- since they are not mine to grant -- in any logo, graphic design, trademarks or trade names of any type. Code samples and code downloads on this site are, unless otherwise labeled, made available under an Apache 2.0 license. Other license models are available on written request and written confirmation.