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 0UUID=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 eingerichtettmpfs /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% /devtmpfs 12G 0 12G 0% /dev/shmtmpfs 12G 57M 12G 1% /runtmpfs 12G 0 12G 0% /sys/fs/cgrouptmpfs 12G 104K 12G 1% /tmptmpfs 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% /hometmpfs 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: 240GBSector size (logical/physical): 512B/512BPartition Table: unknownDisk Flags:Error: /dev/sdb: unrecognised disk labelModel: ATA ADATA SP550 (scsi)Disk /dev/sdb: 240GBSector size (logical/physical): 512B/512BPartition Table: unknownDisk Flags:Error: /dev/sdd: unrecognised disk labelModel: ATA ADATA SP550 (scsi)Disk /dev/sdd: 240GBSector size (logical/physical): 512B/512BPartition Table: unknownDisk Flags:Error: /dev/sde: unrecognised disk labelModel: ATA ADATA SP550 (scsi)Disk /dev/sde: 240GBSector size (logical/physical): 512B/512BPartition Table: unknownDisk Flags:Error: /dev/sdf: unrecognised disk labelModel: ATA ADATA SP550 (scsi)Disk /dev/sdf: 240GBSector size (logical/physical): 512B/512BPartition Table: unknownDisk Flags:Model: Linux device-mapper (linear) (dm)Disk /dev/mapper/sl_xerver-home: 1133GBSector size (logical/physical): 512B/512BPartition Table: loopDisk Flags:Number Start End Size File system Flags1 0.00B 1133GB 1133GB xfsModel: Linux device-mapper (linear) (dm)Disk /dev/mapper/sl_xerver-swap: 12.7GBSector size (logical/physical): 512B/512BPartition Table: loopDisk Flags:Number Start End Size File system Flags1 0.00B 12.7GB 12.7GB linux-swap(v1)Model: Linux device-mapper (linear) (dm)Disk /dev/mapper/sl_xerver-root: 53.7GBSector size (logical/physical): 512B/512BPartition Table: loopDisk Flags:Number Start End Size File system Flags1 0.00B 53.7GB 53.7GB xfsError: /dev/mapper/luks-193bbcf3-8f5a-4be6-9505-9495c812b945: unrecognised disklabelModel: Linux device-mapper (crypt) (dm)Disk /dev/mapper/luks-193bbcf3-8f5a-4be6-9505-9495c812b945: 1200GBSector size (logical/physical): 512B/512BPartition Table: unknownDisk Flags:Error: /dev/sdg: unrecognised disk labelModel: ATA ADATA SP550 (scsi)Disk /dev/sdg: 240GBSector size (logical/physical): 512B/512BPartition Table: unknownDisk Flags:Model: Linux Software RAID Array (md)Disk /dev/md126: 1200GBSector size (logical/physical): 512B/512BPartition Table: msdosDisk Flags:Number Start End Size Type File system Flags1 328kB 525MB 524MB primary xfs boot2 525MB 1200GB 1200GB primary
major minor #blocks name8 0 234431064 sda8 1 512000 sda18 2 233918744 sda28 16 234431064 sdb8 48 234431064 sdd8 64 234431064 sde8 80 234431064 sdf8 96 234431064 sdg9 126 1172143104 md126259 0 512000 md126p1259 1 1171630720 md126p2253 0 1171628480 dm-0253 1 52428800 dm-1253 2 12386304 dm-2253 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 MOUNTPOINTsda 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 mdsdb 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 mdsdd 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 mdsde 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 mdsdf 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 mdsdg 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