Hi, LUKS autostart is out-of-scope of this mailing list, as every distribution does this in their own way. Please ask for support in the Scientific Linux community. Regards, Arno On Sat, Oct 22, 2016 at 03:26:58 CEST, Nikolai Nedovodin wrote: > Dear Saout.de, > >  > > We are having trouble with autostarting of LUKS encrypted volume on a > Scientific Linux 7 server. We setup keyfile to avoid entering password > manually each time the server boots, but it seems not to work per > instructions manual. Its probably due to LVM and RAID 5 setup. > >  > > Here is the current fstab: > >  > > # > # /etc/fstab > # Created by anaconda on Wed Mar  9 20:57:25 2016 > # > # Accessible filesystems, by reference, are maintained under > '/dev/disk' > # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more > info > # > /dev/mapper/sl_xerver-root /            xfs   > defaults,x-systemd.device-timeout=0 0 0 > UUID=ecbec056-8d71-4b23-9b1b-84d059399e90 /boot         >  xfs   defaults     0 0 >  > # LUKS automount > #UUID=193bbcf3-8f5a-4be6-9505-9495c812b945 "LVM2_member" > defaults,x-systemd.device-timeout=0 0 0 > /dev/mapper/sl_xerver-home /home          xfs   > defaults,x-systemd.device-timeout=0 0 0 > /dev/mapper/sl_xerver-swap swap           swap  >  defaults,x-systemd.device-timeout=0 0 0 > # RAM-Disk für ClamAV eingerichtet > tmpfs    /var/spool/amavisd/tmp/ tmpfs  > defaults,size=250m,mode=750,uid=996,gid=995   0 0 > >  > >  > > And crypttab: > >  > > #luks-193bbcf3-8f5a-4be6-9505-9495c812b945 > UUID=193bbcf3-8f5a-4be6-9505-9495c812b945 /boot/key.luks luks > >  > > Please help with configs(stab/crypttab) to setup auto-boot password. > >  > > /dev/sda: TYPE="isw_raid_member" > > /dev/sdb: TYPE="isw_raid_member" > > /dev/sdd: TYPE="isw_raid_member" > > /dev/sde: TYPE="isw_raid_member" > > /dev/sdf: TYPE="isw_raid_member" > > /dev/sdg: TYPE="isw_raid_member" > > /dev/md126p1: UUID="ecbec056-8d71-4b23-9b1b-84d059399e90" TYPE="xfs" > > /dev/md126p2: UUID="193bbcf3-8f5a-4be6-9505-9495c812b945" > TYPE="crypto_LUKS" > > /dev/mapper/luks-193bbcf3-8f5a-4be6-9505-9495c812b945: > UUID="uNYTA2-O2hq-JXNZ-vMFJ-c2Ge-VesS-sGROO0" TYPE="LVM2_member" > > /dev/mapper/sl_xerver-root: UUID="14ac61da-d9e4-4fb8-9347-7649e1d95158" > TYPE="xfs" > > /dev/mapper/sl_xerver-swap: UUID="22917ecc-e6f7-4795-9bee-26bf8746b186" > TYPE="swap" > > /dev/mapper/sl_xerver-home: UUID="6e753180-a4c1-4713-88fc-4abd69be92bb" > TYPE="xfs" > > /dev/md126: PTTYPE="dos" > >  > >  > > Filesystem          Size  Used Avail Use% Mounted on > > /dev/mapper/sl_xerver-root  50G  13G  38G  25% / > > devtmpfs           12G   0  12G  0% /dev > > tmpfs             12G   0  12G  0% > /dev/shm > > tmpfs             12G  57M  12G  1% /run > > tmpfs             12G   0  12G  0% > /sys/fs/cgroup > > tmpfs             12G  104K  12G  1% /tmp > > tmpfs            250M   0  250M  0% > /var/spool/amavisd/tmp > > /dev/md126p1         497M  304M  194M  62% /boot > > /dev/mapper/sl_xerver-home  1.1T  271G  785G  26% /home > > tmpfs            2.4G   0  2.4G  0% > /run/user/0 > > /dev/sdh1          1.8T  592G  1.2T  34% > /run/media > >  > >  > >  > > Error: Can't have a partition outside the disk! > > Model: ATA ADATA SP550 (scsi) > > Disk /dev/sda: 240GB > > Sector size (logical/physical): 512B/512B > > Partition Table: unknown > > Disk Flags: > >  > > Error: /dev/sdb: unrecognised disk label > > Model: ATA ADATA SP550 (scsi) > > Disk /dev/sdb: 240GB > > Sector size (logical/physical): 512B/512B > > Partition Table: unknown > > Disk Flags: > >  > > Error: /dev/sdd: unrecognised disk label > > Model: ATA ADATA SP550 (scsi) > > Disk /dev/sdd: 240GB > > Sector size (logical/physical): 512B/512B > > Partition Table: unknown > > Disk Flags: > >  > > Error: /dev/sde: unrecognised disk label > > Model: ATA ADATA SP550 (scsi) > > Disk /dev/sde: 240GB > > Sector size (logical/physical): 512B/512B > > Partition Table: unknown > > Disk Flags: > >  > > Error: /dev/sdf: unrecognised disk label > > Model: ATA ADATA SP550 (scsi) > > Disk /dev/sdf: 240GB > > Sector size (logical/physical): 512B/512B > > Partition Table: unknown > > Disk Flags: > >  > > Model: Linux device-mapper (linear) (dm) > > Disk /dev/mapper/sl_xerver-home: 1133GB > > Sector size (logical/physical): 512B/512B > > Partition Table: loop > > Disk Flags: > >  > > Number  Start  End   Size   File system  Flags > >  1    0.00B  1133GB  1133GB  xfs > >  > > Model: Linux device-mapper (linear) (dm) > > Disk /dev/mapper/sl_xerver-swap: 12.7GB > > Sector size (logical/physical): 512B/512B > > Partition Table: loop > > Disk Flags: > >  > > Number  Start  End   Size   File system   Flags > >  1    0.00B  12.7GB  12.7GB  linux-swap(v1) > >  > > Model: Linux device-mapper (linear) (dm) > > Disk /dev/mapper/sl_xerver-root: 53.7GB > > Sector size (logical/physical): 512B/512B > > Partition Table: loop > > Disk Flags: > >  > > Number  Start  End   Size   File system  Flags > >  1    0.00B  53.7GB  53.7GB  xfs > >  > > Error: /dev/mapper/luks-193bbcf3-8f5a-4be6-9505-9495c812b945: > unrecognised disk > > label > > Model: Linux device-mapper (crypt) (dm) > > Disk /dev/mapper/luks-193bbcf3-8f5a-4be6-9505-9495c812b945: 1200GB > > Sector size (logical/physical): 512B/512B > > Partition Table: unknown > > Disk Flags: > >  > > Error: /dev/sdg: unrecognised disk label > > Model: ATA ADATA SP550 (scsi) > > Disk /dev/sdg: 240GB > > Sector size (logical/physical): 512B/512B > > Partition Table: unknown > > Disk Flags: > >  > > Model: Linux Software RAID Array (md) > > Disk /dev/md126: 1200GB > > Sector size (logical/physical): 512B/512B > > Partition Table: msdos > > Disk Flags: > >  > > Number  Start  End   Size   Type   File system  Flags > >  1    328kB  525MB  524MB  primary  xfs      boot > >  2    525MB  1200GB  1200GB  primary > >  > >  > >  > > major minor  #blocks  name > >  > >   8     0  234431064 sda > >   8     1   512000 sda1 > >   8     2  233918744 sda2 > >   8    16  234431064 sdb > >   8    48  234431064 sdd > >   8    64  234431064 sde > >   8    80  234431064 sdf > >   8    96  234431064 sdg > >   9    126 1172143104 md126 > >  259     0   512000 md126p1 > >  259     1 1171630720 md126p2 > >  253     0 1171628480 dm-0 > >  253     1  52428800 dm-1 > >  253     2  12386304 dm-2 > >  253     3 1106743296 dm-3 > >  > >  > >  PV /dev/mapper/luks-193bbcf3-8f5a-4be6-9505-9495c812b945  VG > sl_xerver  lvm2 [1.09 TiB / 68.00 MiB free] > >  Total: 1 [1.09 TiB] / in use: 1 [1.09 TiB] / in no VG: 0 [0  ] > >  > >  > >  > > NAME                      >  MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT > sda                       >  8:0   0 223.6G  0 disk > ââsda1                      >  8:1   0  500M  0 part > ââsda2                      >  8:2   0 223.1G  0 part > ââmd126                      > 9:126  0  1.1T  0 raid5 > â ââmd126p1                   259:0 >   0  500M  0 md   /boot > â ââmd126p2                   259:1 >   0  1.1T  0 md > â  ââluks-193bbcf3-8f5a-4be6-9505-9495c812b945 253:0   0  1.1T >  0 crypt > â   ââsl_xerver-root              253:1  >  0   50G  0 lvm  / > â   ââsl_xerver-swap              253:2  >  0  11.8G  0 lvm  [SWAP] > â   ââsl_xerver-home              253:3  >  0   1T  0 lvm  /home > ââmd127                      > 9:127  0     0 md > sdb                       >  8:16  0 223.6G  0 disk > ââmd126                      > 9:126  0  1.1T  0 raid5 > â ââmd126p1                   259:0 >   0  500M  0 md   /boot > â ââmd126p2                   259:1 >   0  1.1T  0 md > â  ââluks-193bbcf3-8f5a-4be6-9505-9495c812b945 253:0   0  1.1T >  0 crypt > â   ââsl_xerver-root              253:1  >  0   50G  0 lvm  / > â   ââsl_xerver-swap              253:2  >  0  11.8G  0 lvm  [SWAP] > â   ââsl_xerver-home              253:3  >  0   1T  0 lvm  /home > ââmd127                      > 9:127  0     0 md > sdd                       >  8:48  0 223.6G  0 disk > ââmd126                      > 9:126  0  1.1T  0 raid5 > â ââmd126p1                   259:0 >   0  500M  0 md   /boot > â ââmd126p2                   259:1 >   0  1.1T  0 md > â  ââluks-193bbcf3-8f5a-4be6-9505-9495c812b945 253:0   0  1.1T >  0 crypt > â   ââsl_xerver-root              253:1  >  0   50G  0 lvm  / > â   ââsl_xerver-swap              253:2  >  0  11.8G  0 lvm  [SWAP] > â   ââsl_xerver-home              253:3  >  0   1T  0 lvm  /home > ââmd127                      > 9:127  0     0 md > sde                       >  8:64  0 223.6G  0 disk > ââmd126                      > 9:126  0  1.1T  0 raid5 > â ââmd126p1                   259:0 >   0  500M  0 md   /boot > â ââmd126p2                   259:1 >   0  1.1T  0 md > â  ââluks-193bbcf3-8f5a-4be6-9505-9495c812b945 253:0   0  1.1T >  0 crypt > â   ââsl_xerver-root              253:1  >  0   50G  0 lvm  / > â   ââsl_xerver-swap              253:2  >  0  11.8G  0 lvm  [SWAP] > â   ââsl_xerver-home              253:3  >  0   1T  0 lvm  /home > ââmd127                      > 9:127  0     0 md > sdf                       >  8:80  0 223.6G  0 disk > ââmd126                      > 9:126  0  1.1T  0 raid5 > â ââmd126p1                   259:0 >   0  500M  0 md   /boot > â ââmd126p2                   259:1 >   0  1.1T  0 md > â  ââluks-193bbcf3-8f5a-4be6-9505-9495c812b945 253:0   0  1.1T >  0 crypt > â   ââsl_xerver-root              253:1  >  0   50G  0 lvm  / > â   ââsl_xerver-swap              253:2  >  0  11.8G  0 lvm  [SWAP] > â   ââsl_xerver-home              253:3  >  0   1T  0 lvm  /home > ââmd127                      > 9:127  0     0 md > sdg                       >  8:96  0 223.6G  0 disk > ââmd126                      > 9:126  0  1.1T  0 raid5 > â ââmd126p1                   259:0 >   0  500M  0 md   /boot > â ââmd126p2                   259:1 >   0  1.1T  0 md > â  ââluks-193bbcf3-8f5a-4be6-9505-9495c812b945 253:0   0  1.1T >  0 crypt > â   ââsl_xerver-root              253:1  >  0   50G  0 lvm  / > â   ââsl_xerver-swap              253:2  >  0  11.8G  0 lvm  [SWAP] > â   ââsl_xerver-home              253:3  >  0   1T  0 lvm  /home > ââmd127                      > 9:127  0     0 md >  > >  > > Thank you! > >  > > Nikolai Nedovodin > > CPUTER > > 1-800-394-1538 > > info@xxxxxxxxxx > > http://cputer.com > >  > _______________________________________________ > dm-crypt mailing list > dm-crypt@xxxxxxxx > http://www.saout.de/mailman/listinfo/dm-crypt -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@xxxxxxxxxxx GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718 ---- A good decision is based on knowledge and not on numbers. -- Plato If it's in the news, don't worry about it. The very definition of "news" is "something that hardly ever happens." -- Bruce Schneier _______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx http://www.saout.de/mailman/listinfo/dm-crypt