Search

Mobile tag

About Me

I am the "IBM Collaboration & Productivity Advisor" for IBM Asia Pacific. I'm based in Singapore.
Reach out to me via:
Follow notessensei on Twitter
(posts)
Skype
Sametime
IBM
Facebook
LinkedIn
XING
Amazon Store
Amazon Kindle

Twitter

Domino Upgrade

VersionSupport end
5.0
6.0
6.5
7.0
Upgrade to 8.5x now!
(see the full Lotus lifcyle) To make your upgrade a success use the Upgrade Cheat Sheet.
Contemplating to replace Notes? You have to read this! (also available on Slideshare)

Languages

Other languages on request.

Visitors

Useful Tools

Get Firefox
Use OpenDNS
The support for Windows XP is coming to an end and has . Time to consider an alternative to move on. sounds like a lot of time, but, like an object in a mirror, it is closer than you think.

« Some things don't change - what makes a good web appication | Main| Share your application setup »

Change partition layout on LUKS encrypted LVM volumes

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
  1. 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)
  2. Boot from stick
  3. If not installed, install support libraries
    sudo apt-get install lvm2 cryptsetup system-config-lvm
  4. If not existing, create your mount points (presuming LVM contains 2 volumes here)
    sudo mkdir -p /luksdisk/root
    sudo mkdir /luksdisk/home
  5. Probe the drivers
    sudo modprobe dm-crypt
  6. Open the volume (it might be a different disk/partition on your system)
    sudo cryptsetup luksOpen /dev/sda5 crypt1
  7. Show the physical volumes
    sudo pvscan
  8. Find the volume groups
    sudo vgscan --mknodes
    sudo vgchange -ay
  9. List them (memorize the name - I presume it is mylvmdisk here)
    sudo lvscan
  10. Start the LVM GUI and make all necessary changes
    sudo system-config-lvm
  11. 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

Post A Comment

Please note: Comments without a valid and working eMail address will be removed. This is my site, so I decide what stays here and what goes.

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::rolleyes:;-)

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: Creative Commons License
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.