<div dir="ltr"><div class="gmail_quote">(Repeated as first attempt didn't go through.)</div><div class="gmail_quote"><br><div dir="ltr">Greetings, <div>I have been asked to setup some systems with an encrypted disk configuration (see below for FAI setup-storage format), essentially two disks with:</div><div>   RAID1(/boot+other) < Crypt(other) < LVM((Root,Home,Swap)</div><div><br></div><div>Should I expect this to work? If not, what would need to be done to include this support in LVM.  Can I run setup-storage multiple times(3 confiig files)?</div><div><br></div><div>The man page on the website for setup-storage has some formatting issues:  <a href="http://fai-project.org/doc/man/setup-storage.html" target="_blank">http://fai-project.org/doc/man/setup-storage.html</a></div><div><br></div><div>The following is my attempt at a configuration file to do this. I have installed the mdadm,cryptsetup and lvm2 packages in the nfsroot and as packages to be installed.</div><div><br></div><div>What have I missed.</div><div>Cheers,</div><div>Paul</div><div>-----</div><div><div><font face="monospace"># Disks: 2x 1TB</font></div><div><font face="monospace"># Configuration: RAID1+CRYPTO+LVM</font></div><div><span style="font-family:monospace;line-height:1.5">             </span></div><div><font face="monospace">disk_config sda disklabel:msdos bootable:1 fstabkey:uuid</font></div><div><font face="monospace">primary -      2G        -     -</font></div><div><font face="monospace">logical -      200G-     -     -</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">disk_config sdb disklabel:msdos bootable:1 fstabkey:uuid</font></div><div><font face="monospace">primary -      2G        -     -</font></div><div><font face="monospace">logical -      200G-     -     -</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">disk_config raid           </font></div><div><font face="monospace">raid1   /boot  sda1,sdb1 ext2 rw,noatime</font></div><div><font face="monospace">raid1   -      sda2,sdb2 -    -</font></div><div><font face="monospace"><br></font></div><div><font face="monospace"># Assumes that previous step created /dev/md0,/dev/md1</font></div><div><span style="font-family:monospace;line-height:1.5">disk_config cryptsetup                                     </span><font face="monospace"><span style="line-height:18px">luks md1_crypt /dev/md1 lvm - -</span></font><span style="font-family:monospace;line-height:1.5">   </span></div><div><span style="font-family:monospace;line-height:1.5"><br></span></div><div><span style="font-family:monospace;line-height:1.5"># Assumes the previous step created /dev/mapper/md1_crypt   </span><span style="font-family:monospace;line-height:1.5">disk_config lvm</span></div><div><font face="monospace">vg Base mapper/md1_crypt</font></div><div><span style="font-family:monospace;line-height:1.5">Base-Swap   swap   8G    swap sw</span></div><div><span style="font-family:monospace;line-height:1.5">Base-Root   /      40G   ext4 rw,noatime</span></div><div><span style="font-family:monospace;line-height:1.5">Base-Home   /home  100G- ext4 rw,noatime   </span></div></div><div>-----</div><div><a href="mailto:linux-fai@uni-koeln.de">linux-fai@uni-koeln.de</a><br></div></div></div></div>