Difference between revisions of "LVM"

From Blue-IT.org Wiki

(Created page with "== Open encryted lvm partition == cryptsetup luksOpen /dev/sda5 my-crypt == Mount existing volume groups == sudo apt-get install lvm2 sudo modprobe dm-mod sudo vgchange...")
 
Line 1: Line 1:
 
== Open encryted lvm partition ==  
 
== Open encryted lvm partition ==  
 +
 
  cryptsetup luksOpen /dev/sda5 my-crypt
 
  cryptsetup luksOpen /dev/sda5 my-crypt
  
Line 7: Line 8:
 
  sudo modprobe dm-mod
 
  sudo modprobe dm-mod
 
  sudo vgchange -a y
 
  sudo vgchange -a y
 +
 +
== Umount existing volume groups and close encrypted container ==
 +
 +
sudo umount /dev/mapper/whatever
 +
sudo vgchange -a n
 +
sudo cryptsetup luksClose my-crypt

Revision as of 09:13, 12 April 2014

Open encryted lvm partition

cryptsetup luksOpen /dev/sda5 my-crypt

Mount existing volume groups

sudo apt-get install lvm2
sudo modprobe dm-mod
sudo vgchange -a y

Umount existing volume groups and close encrypted container

sudo umount /dev/mapper/whatever
sudo vgchange -a n
sudo cryptsetup luksClose my-crypt