Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#864145: mdadm will only start root device degraded

2 views
Skip to first unread message

Felix Koop

unread,
Jun 4, 2017, 7:50:02 AM6/4/17
to
Package: mdadm
Version: 3.4-4+b1
Severity: important

Dear Maintainer,

I have /dev/md2 as root device. This is a raid1 device constisting of 2
partitions (sdg1 and sdf1). When I decided to encrypt those partitions,
I started to encrypt one of them (sdg1). Now the array always starts
degraded with the encrypted sdg1 missing. I can after every boot run

mdadm /dev/md2 --add /dev/mapper/cryptorootg

and the device is working again until next reboot. An entry in
/etc/crypttab is created and the device is apparently unlocked as I
don't need to enter the password after the boot process.

What do I have to configure differently to have mdadm recognising the
second device during boot?

-- Package-specific info:
--- mdadm.conf
DEVICE partitions
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
MAILADDR root
ARRAY /dev/md/1 UUID=ec37ddbe:77a7d04a:73998dd4:82bec29f
ARRAY /dev/md/2 UUID=ed334d14:1655ead2:2acea4dd:eb14d1e1

--- /etc/default/mdadm
AUTOCHECK=true
START_DAEMON=true
DAEMON_OPTIONS="--syslog"
VERBOSE=false

--- /proc/mdstat:
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md1 : active raid5 dm-2[4] dm-1[3] dm-0[1]
2929507328 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
bitmap: 0/11 pages [0KB], 65536KB chunk

md2 : active raid1 dm-3[2] sdf1[3]
78082136 blocks super 1.2 [2/1] [U_]
[=========>...........] recovery = 46.2% (36110528/78082136) finish=27.6min speed=25320K/sec

unused devices: <none>

--- /proc/partitions:
major minor #blocks name

8 0 1953514584 sda
8 1 48837568 sda1
8 2 20971552 sda2
8 16 976762584 sdb
8 17 976761560 sdb1
8 32 1465137527 sdc
8 33 247808 sdc1
8 34 1464887025 sdc2
8 48 1465138584 sdd
8 49 245760 sdd1
8 50 1464887025 sdd2
8 64 1465138584 sde
8 65 246784 sde1
8 66 1464887025 sde2
8 80 78150744 sdf
8 81 78149720 sdf1
9 2 78082136 md2
8 96 78150744 sdg
8 97 78149720 sdg1
11 0 1048575 sr0
253 0 1464884977 dm-0
9 1 2929507328 md1
253 1 1464884977 dm-1
253 2 1464884977 dm-2
253 3 78147672 dm-3
253 4 25165824 dm-4
253 5 325058560 dm-5
253 6 31457280 dm-6
253 7 239075328 dm-7
253 8 115343360 dm-8
253 9 31457280 dm-9
253 10 94371840 dm-10

--- LVM physical volumes:
PV VG Fmt Attr PSize PFree
/dev/md1 jupiter lvm2 a-- 2.73t 1.93t
--- mount output
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=6133504k,nr_inodes=1533376,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1230556k,mode=755)
/dev/md2 on / type btrfs (rw,relatime,space_cache,subvolid=5,subvol=/)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,clone_children)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13818)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sdc1 on /boot type ext4 (rw,relatime,data=ordered)
/dev/mapper/jupiter-vm on /vm type btrfs (rw,relatime,space_cache,subvolid=5,subvol=/)
/dev/mapper/jupiter-images on /var/lib/libvirt/images type btrfs (rw,relatime,space_cache,subvolid=5,subvol=/)
/dev/mapper/jupiter-home on /home type btrfs (rw,relatime,space_cache,subvolid=5,subvol=/)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /run/user/113 type tmpfs (rw,nosuid,nodev,relatime,size=1230552k,mode=700,uid=113,gid=120)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1230552k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sda1 on /media/fkoop/df2c1a8a-035f-434e-8924-35c0d64b8509 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sda2 on /media/fkoop/7aa4df04-3412-44c5-9b43-b002edad6edd type btrfs (rw,nosuid,nodev,relatime,space_cache,subvolid=5,subvol=/,uhelper=udisks2)

--- initrd.img-4.9.0-3-amd64:

gzip: /boot/initrd.img-4.9.0-3-amd64: not in gzip format
cpio: premature end of archive

--- initrd's /conf/conf.d/md:
no conf/md file.

--- /proc/modules:
dm_crypt 24576 4 - Live 0xffffffffc13fe000
dm_mod 118784 27 dm_crypt, Live 0xffffffffc1489000
raid10 49152 0 - Live 0xffffffffc02a3000
raid456 106496 1 - Live 0xffffffffc0319000
async_raid6_recov 20480 1 raid456, Live 0xffffffffc0286000
async_memcpy 16384 2 raid456,async_raid6_recov, Live 0xffffffffc025e000
async_pq 16384 2 raid456,async_raid6_recov, Live 0xffffffffc023f000
async_xor 16384 3 raid456,async_raid6_recov,async_pq, Live 0xffffffffc023a000
async_tx 16384 5 raid456,async_raid6_recov,async_memcpy,async_pq,async_xor, Live 0xffffffffc01d9000
raid6_pq 110592 4 btrfs,raid456,async_raid6_recov,async_pq, Live 0xffffffffc026a000
libcrc32c 16384 2 drbd,raid456, Live 0xffffffffc01c5000
raid0 20480 0 - Live 0xffffffffc00f6000
multipath 16384 0 - Live 0xffffffffc007f000
linear 16384 0 - Live 0xffffffffc007a000
raid1 36864 1 - Live 0xffffffffc0070000
md_mod 131072 8 raid10,raid456,raid0,multipath,linear,raid1, Live 0xffffffffc0219000

--- /var/log/syslog:

--- volume detail:
/dev/sda:
MBR Magic : aa55
Partition[0] : 97675137 sectors at 63 (type 83)
Partition[1] : 41943104 sectors at 97675200 (type 83)
--
/dev/sda1 is not recognised by mdadm.
/dev/sda2 is not recognised by mdadm.
/dev/sdb:
MBR Magic : aa55
Partition[0] : 1953523120 sectors at 2048 (type 83)
--
/dev/sdb1 is not recognised by mdadm.
/dev/sdc:
MBR Magic : aa55
Partition[0] : 495616 sectors at 2048 (type 83)
Partition[1] : 2929774050 sectors at 498015 (type fd)
--
/dev/sdc1 is not recognised by mdadm.
/dev/sdc2 is not recognised by mdadm.
/dev/sdd:
MBR Magic : aa55
Partition[0] : 491520 sectors at 4096 (type 83)
Partition[1] : 2929774050 sectors at 498015 (type fd)
--
/dev/sdd1 is not recognised by mdadm.
/dev/sdd2 is not recognised by mdadm.
/dev/sde:
MBR Magic : aa55
Partition[0] : 493568 sectors at 4096 (type 83)
Partition[1] : 2929774050 sectors at 498015 (type fd)
--
/dev/sde1 is not recognised by mdadm.
/dev/sde2 is not recognised by mdadm.
/dev/sdf:
MBR Magic : aa55
Partition[0] : 156299440 sectors at 2048 (type fd)
--
/dev/sdf1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : ed334d14:1655ead2:2acea4dd:eb14d1e1
Name : jupiter.fkoop.de:2 (local to host jupiter.fkoop.de)
Creation Time : Sat Mar 22 10:45:47 2014
Raid Level : raid1
Raid Devices : 2

Avail Dev Size : 156168368 (74.47 GiB 79.96 GB)
Array Size : 78082136 (74.46 GiB 79.96 GB)
Used Dev Size : 156164272 (74.46 GiB 79.96 GB)
Data Offset : 131072 sectors
Super Offset : 8 sectors
Unused Space : before=130984 sectors, after=4096 sectors
State : clean
Device UUID : 50fc6c33:99b25bb5:a618b96c:9064972d

Update Time : Sun Jun 4 13:33:50 2017
Bad Block Log : 512 entries available at offset 72 sectors
Checksum : fe73b694 - correct
Events : 68235


Device Role : Active device 0
Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
--
/dev/sdg:
MBR Magic : aa55
Partition[0] : 156299440 sectors at 2048 (type e8)
--
/dev/sdg1 is not recognised by mdadm.

--- /proc/cmdline
BOOT_IMAGE=/vmlinuz-4.9.0-3-amd64 root=UUID=78549cf3-fb19-41a7-a38c-52c12e9bda9a ro init=/bin/systemd

--- grub2:
set root='mduuid/ed334d141655ead22acea4ddeb14d1e1'
set root='mduuid/ed334d141655ead22acea4ddeb14d1e1'
set root='hd4,msdos1'
linux /vmlinuz-4.9.0-3-amd64 root=UUID=78549cf3-fb19-41a7-a38c-52c12e9bda9a ro init=/bin/systemd
set root='hd4,msdos1'
linux /vmlinuz-4.9.0-3-amd64 root=UUID=78549cf3-fb19-41a7-a38c-52c12e9bda9a ro init=/bin/systemd

--- udev:
ii udev 232-24 amd64 /dev/ and hotplug management daem
aa83f41de49462d05e446cfc5e14e74b /lib/udev/rules.d/63-md-raid-arrays.rules
5de7d0b70cd948d00bb38ca75ad5f288 /lib/udev/rules.d/64-md-raid-assembly.rules
8e28181624da2ed60739cae470ca6415 /lib/udev/rules.d/99-systemd.rules

--- /dev:
brw-rw---- 1 root disk 9, 1 Jun 4 12:01 /dev/md1
brw-rw---- 1 root disk 9, 2 Jun 4 13:00 /dev/md2

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root 9 Jun 4 12:01 ata-HL-DT-ST_BD-RE_GGW-H20L_K5C8ALE4554 -> ../../sr0
lrwxrwxrwx 1 root root 9 Jun 4 12:01 ata-INTEL_SSDSA2MH080G1GC_CVEM846500ZQ080DGN -> ../../sdf
lrwxrwxrwx 1 root root 10 Jun 4 12:01 ata-INTEL_SSDSA2MH080G1GC_CVEM846500ZQ080DGN-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 9 Jun 4 12:01 ata-INTEL_SSDSA2MH080G1GC_CVEM848100RK080DGN -> ../../sdg
lrwxrwxrwx 1 root root 10 Jun 4 12:01 ata-INTEL_SSDSA2MH080G1GC_CVEM848100RK080DGN-part1 -> ../../sdg1
lrwxrwxrwx 1 root root 9 Jun 4 12:01 ata-ST31500341AS_9VS04HTG -> ../../sdd
lrwxrwxrwx 1 root root 10 Jun 4 12:01 ata-ST31500341AS_9VS04HTG-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 ata-ST31500341AS_9VS04HTG-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 9 Jun 4 12:01 ata-ST31500341AS_9VS139S1 -> ../../sdc
lrwxrwxrwx 1 root root 10 Jun 4 12:01 ata-ST31500341AS_9VS139S1-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 ata-ST31500341AS_9VS139S1-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 9 Jun 4 12:01 ata-ST31500341AS_9VS154K8 -> ../../sde
lrwxrwxrwx 1 root root 10 Jun 4 12:01 ata-ST31500341AS_9VS154K8-part1 -> ../../sde1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 ata-ST31500341AS_9VS154K8-part2 -> ../../sde2
lrwxrwxrwx 1 root root 9 Jun 4 12:01 ata-WDC_WD10EARS-00Y5B1_WD-WCAV5P229405 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jun 4 12:01 ata-WDC_WD10EARS-00Y5B1_WD-WCAV5P229405-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-name-cryptodisk_d -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-name-cryptodisk_e -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-name-cryptodisk_f -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 4 13:00 dm-name-cryptorootg -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-name-jupiter-Toshiba -> ../../dm-5
lrwxrwxrwx 1 root root 11 Jun 4 12:01 dm-name-jupiter-ebc_win -> ../../dm-10
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-name-jupiter-home -> ../../dm-8
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-name-jupiter-images -> ../../dm-7
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-name-jupiter-swap1 -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-name-jupiter-vm -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-name-jupiter-win81 -> ../../dm-9
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-uuid-CRYPT-LUKS1-19805987b42349b4a0c583234a565728-cryptodisk_d -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-uuid-CRYPT-LUKS1-583f57614e2b4d648dfdac84cd8e6b87-cryptodisk_f -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-uuid-CRYPT-LUKS1-7ee394f736c44369be3d71332380ac2d-cryptodisk_e -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 4 13:00 dm-uuid-CRYPT-LUKS1-acfcb4cc477d4ebea33b74f7fd90f867-cryptorootg -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-uuid-LVM-pDSy41InDJcufCLGmSZdBEE7lMd5GbWB1ij3sCyh9VfLL54x2t67xjK4vyoCRV42 -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-uuid-LVM-pDSy41InDJcufCLGmSZdBEE7lMd5GbWB4ar9X3d1HjZ1t32FDKy5Y9EgZNqdDrtN -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-uuid-LVM-pDSy41InDJcufCLGmSZdBEE7lMd5GbWBUzoc1BWyMk5GZe19ZNbdfzGow930cl4u -> ../../dm-9
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-uuid-LVM-pDSy41InDJcufCLGmSZdBEE7lMd5GbWBcOrLVew57ojO5CLVIV7COA1iOzyMDj3F -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-uuid-LVM-pDSy41InDJcufCLGmSZdBEE7lMd5GbWBe7WgfuWw64lraTcg2J312GWIP27CwN9M -> ../../dm-7
lrwxrwxrwx 1 root root 10 Jun 4 12:01 dm-uuid-LVM-pDSy41InDJcufCLGmSZdBEE7lMd5GbWBhaHcdy1WdWzJ1Lc4PIcEINzp9VYwz63i -> ../../dm-8
lrwxrwxrwx 1 root root 11 Jun 4 12:01 dm-uuid-LVM-pDSy41InDJcufCLGmSZdBEE7lMd5GbWBw3VWXSX1uReT7wAnfROTY8cQjH3YK73n -> ../../dm-10
lrwxrwxrwx 1 root root 9 Jun 4 12:01 lvm-pv-uuid-kc6i6P-8iSA-SWCq-VMu2-1aEm-GnON-t2qZQ1 -> ../../md1
lrwxrwxrwx 1 root root 9 Jun 4 12:01 md-name-jupiter.fkoop.de:1 -> ../../md1
lrwxrwxrwx 1 root root 9 Jun 4 13:00 md-name-jupiter.fkoop.de:2 -> ../../md2
lrwxrwxrwx 1 root root 9 Jun 4 12:01 md-uuid-ec37ddbe:77a7d04a:73998dd4:82bec29f -> ../../md1
lrwxrwxrwx 1 root root 9 Jun 4 13:00 md-uuid-ed334d14:1655ead2:2acea4dd:eb14d1e1 -> ../../md2
lrwxrwxrwx 1 root root 9 Jun 4 12:01 usb-SAMSUNG_HD204UI_2010121826C6-0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 4 12:01 usb-SAMSUNG_HD204UI_2010121826C6-0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 usb-SAMSUNG_HD204UI_2010121826C6-0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 9 Jun 4 12:01 wwn-0x5000c5000dcd3380 -> ../../sdd
lrwxrwxrwx 1 root root 10 Jun 4 12:01 wwn-0x5000c5000dcd3380-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 wwn-0x5000c5000dcd3380-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 9 Jun 4 12:01 wwn-0x5000c50010ea4d4a -> ../../sde
lrwxrwxrwx 1 root root 10 Jun 4 12:01 wwn-0x5000c50010ea4d4a-part1 -> ../../sde1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 wwn-0x5000c50010ea4d4a-part2 -> ../../sde2
lrwxrwxrwx 1 root root 9 Jun 4 12:01 wwn-0x5000c50010eaab67 -> ../../sdc
lrwxrwxrwx 1 root root 10 Jun 4 12:01 wwn-0x5000c50010eaab67-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 wwn-0x5000c50010eaab67-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 9 Jun 4 12:01 wwn-0x50015179587824dd -> ../../sdf
lrwxrwxrwx 1 root root 10 Jun 4 12:01 wwn-0x50015179587824dd-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 9 Jun 4 12:01 wwn-0x5001517958785dda -> ../../sdg
lrwxrwxrwx 1 root root 10 Jun 4 12:01 wwn-0x5001517958785dda-part1 -> ../../sdg1

/dev/disk/by-partuuid:
total 0
lrwxrwxrwx 1 root root 10 Jun 4 12:01 00096b83-01 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 2060bee3-01 -> ../../sdg1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 304ee1f2-01 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 4eb15b51-01 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 4eb15b51-02 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 4 12:01 6630360a-01 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 6630360a-02 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Jun 4 12:01 a69f768d-01 -> ../../sde1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 a69f768d-02 -> ../../sde2
lrwxrwxrwx 1 root root 10 Jun 4 12:01 e22d81a9-01 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 e22d81a9-02 -> ../../sdd2

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root 9 Jun 4 12:01 pci-0000:00:1a.7-usb-0:6:1.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 4 12:01 pci-0000:00:1a.7-usb-0:6:1.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 pci-0000:00:1a.7-usb-0:6:1.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 9 Jun 4 12:01 pci-0000:00:1f.2-ata-1 -> ../../sdc
lrwxrwxrwx 1 root root 10 Jun 4 12:01 pci-0000:00:1f.2-ata-1-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 pci-0000:00:1f.2-ata-1-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 9 Jun 4 12:01 pci-0000:00:1f.2-ata-2 -> ../../sde
lrwxrwxrwx 1 root root 10 Jun 4 12:01 pci-0000:00:1f.2-ata-2-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 pci-0000:00:1f.2-ata-2-part2 -> ../../sde2
lrwxrwxrwx 1 root root 9 Jun 4 12:01 pci-0000:00:1f.5-ata-1 -> ../../sdf
lrwxrwxrwx 1 root root 10 Jun 4 12:01 pci-0000:00:1f.5-ata-1-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 9 Jun 4 12:01 pci-0000:00:1f.5-ata-2 -> ../../sdg
lrwxrwxrwx 1 root root 10 Jun 4 12:01 pci-0000:00:1f.5-ata-2-part1 -> ../../sdg1
lrwxrwxrwx 1 root root 9 Jun 4 12:01 pci-0000:07:00.0-ata-1 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jun 4 12:01 pci-0000:07:00.0-ata-1-part1 -> ../../sdb1

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 Jun 4 12:01 12dbcac3-b63f-4c5b-aca6-bcad48f5a214 -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 4 12:01 19805987-b423-49b4-a0c5-83234a565728 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Jun 4 12:01 2deccc8b-770e-4235-a7ff-2749c3fc932b -> ../../sde1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 583f5761-4e2b-4d64-8dfd-ac84cd8e6b87 -> ../../sde2
lrwxrwxrwx 1 root root 9 Jun 4 13:00 78549cf3-fb19-41a7-a38c-52c12e9bda9a -> ../../md2
lrwxrwxrwx 1 root root 10 Jun 4 12:01 7aa4df04-3412-44c5-9b43-b002edad6edd -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 4 12:01 7ee394f7-36c4-4369-be3d-71332380ac2d -> ../../sdd2
lrwxrwxrwx 1 root root 10 Jun 4 12:01 83b0dcd4-35de-4100-89fe-c0d730df00e9 -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 4 12:01 a26d1ee8-d6ae-49e4-b327-3c1b697ebb3c -> ../../dm-8
lrwxrwxrwx 1 root root 10 Jun 4 12:01 a5298254-c7a8-4543-8335-b7db861ac15b -> ../../dm-7
lrwxrwxrwx 1 root root 10 Jun 4 12:01 acfcb4cc-477d-4ebe-a33b-74f7fd90f867 -> ../../sdg1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 bfb0ba6c-1cb1-4106-8feb-b71d333cb7d4 -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 4 12:01 df2c1a8a-035f-434e-8924-35c0d64b8509 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 ecd217f7-befc-44d7-914f-b962011bac09 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Jun 4 12:01 f3eb6a11-6b0d-461d-b4e3-81a9425a8207 -> ../../sdd1

/dev/md:
total 0
lrwxrwxrwx 1 root root 6 Jun 4 12:01 1 -> ../md1
lrwxrwxrwx 1 root root 6 Jun 4 13:00 2 -> ../md2

Auto-generated on Sun, 04 Jun 2017 13:34:07 +0200 by mdadm bugscript

-- System Information:
Debian Release: 9.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mdadm depends on:
ii cdebconf [debconf-2.0] 0.227
ii debconf [debconf-2.0] 1.5.61
ii libc6 2.24-11
ii lsb-base 9.20161125
ii udev 232-24

Versions of packages mdadm recommends:
ii exim4-daemon-light [mail-transport-agent] 4.89-2
ii kmod 24-1

mdadm suggests no packages.

-- debconf information:
mdadm/initrdstart_msg_errexist:
mdadm/autostart: true
* mdadm/initrdstart_notinconf: false
mdadm/start_daemon: true
mdadm/initrdstart_msg_errblock:
mdadm/initrdstart_msg_errmd:
mdadm/mail_to: root
* mdadm/initrdstart: all
mdadm/autocheck: true
mdadm/initrdstart_msg_intro:
mdadm/initrdstart_msg_errconf:

Felix Lechner

unread,
Sep 14, 2020, 11:10:03 PM9/14/20
to
Hi Felix,

> An entry in
> /etc/crypttab is created and the device is apparently unlocked as I
> don't need to enter the password after the boot process.

Do you still use this setup, and do you still have the issue?

What is in your /etc/crypttab? Do you perhaps need an offset to
preserve mdadm metadata? For example, I have 'offset=8' for an
encrypted swap partition, but it is not an mdadm device:

cryptswap /dev/mapper/optivg-swap /dev/urandom
swap,offset=8,cipher=aes-cbc-essiv:sha256,size=256,hash=ripemd160

The last suggestion is just a guess.

Kind regards
Felix Lechner

Daniel Baumann

unread,
Feb 25, 2023, 1:30:04 PM2/25/23
to
close 864145
thanks

Hi,

this setup works (both when installing new with d-i and when later
migrating it manually to it). since there's a long time no answer here
and the system most likely has been resetup, I'm closing this bug.

Regards,
Daniel
0 new messages