Difference between revisions of "LUKS encryption On LVM On Raid"

m
(Created page with "This is a short guide on how to create a RAID 5 with an LVM filesystem on top and a LUKS encrypted volume on top of the LVM logical volume. = Raid = Create partitions on eac...")
 
 
Line 7: Line 7:
Create the raid 5 array:
Create the raid 5 array:


  mdadm --create /dev/md1 --level=5 --raid-devices=9 /dev/sdb1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1 /dev/sdj1 /dev/sdk1
  mdadm --create /dev/md1 --level=5 --raid-devices=10 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1 /dev/sdj1 /dev/sdk1


Now set read-write mode (this will cause a resync):
Now set read-write mode (this will cause a resync):
Line 16: Line 16:
Run the following command to get lines:
Run the following command to get lines:


  mdadm --examine --scan  
  mdadm --examine --scan


= LVM =
= LVM =