[Bug 721905] New: random /dev/md* device names
https://bugzilla.novell.com/show_bug.cgi?id=721905 https://bugzilla.novell.com/show_bug.cgi?id=721905#c0 Summary: random /dev/md* device names Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: x86-64 OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: suse-beta@cboltz.de QAContact: qa@suse.de Found By: Beta-Customer Blocker: Yes After updating from 11.4 to Factory (slightly newer than 12.1 beta1), I get more or less random device numbers for my raid devices. Only /dev/md2 (my / partition) has a stable naming. The other partitions get a number starting at /dev/md124. To make it more interesting[tm], the numbers change at nearly every boot (but always start at 124). Now combine that with an encrypted /home (including symlinked /var and /tmp) - this makes booting really funny :-/ I'm not sure which logs or details are useful here - please tell me what you need. # cat /etc/mdadm.conf DEVICE partitions ARRAY /dev/md0 level=raid1 UUID=41b8971f:df6c3d81:40a999bc:490996f9 ARRAY /dev/md1 level=raid1 UUID=fa768d7e:b3eed134:3bf3c2ce:70ca362f ARRAY /dev/md2 level=raid1 UUID=caa75fa1:5e0a6fcf:c456a754:896617d0 ARRAY /dev/md3 level=raid1 UUID=3b988094:5c379c09:cb3773cc:a44c243c ARRAY /dev/md4 level=raid1 UUID=dfc46d0f:cf98c90a:163cbca9:c954a7c6 # cat /proc/mdstat Personalities : [raid1] [raid0] [raid10] [raid6] [raid5] [raid4] md124 : active raid1 sdb3[1] sda3[0] 133162712 blocks super 1.0 [2/2] [UU] bitmap: 6/254 pages [24KB], 256KB chunk md125 : active raid1 sdb2[1] sda2[0] 200800 blocks super 1.0 [2/2] [UU] bitmap: 0/7 pages [0KB], 16KB chunk md2 : active raid1 sda5[0] sdb5[1] 10482308 blocks super 1.0 [2/2] [UU] bitmap: 0/160 pages [0KB], 32KB chunk md126 : active (auto-read-only) raid1 sda6[0] sdb6[1] 10482308 blocks super 1.0 [2/2] [UU] bitmap: 2/160 pages [8KB], 32KB chunk md127 : active (auto-read-only) raid1 sda7[0] sdb7[1] 1839396 blocks super 1.0 [2/2] [UU] bitmap: 0/8 pages [0KB], 128KB chunk unused devices: <none> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721905
https://bugzilla.novell.com/show_bug.cgi?id=721905#c
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=721905
https://bugzilla.novell.com/show_bug.cgi?id=721905#c1
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=721905
https://bugzilla.novell.com/show_bug.cgi?id=721905#c2
Christian Boltz
mdadm -Ds so we can compare uuids.
ARRAY /dev/md/linux:0 metadata=1.0 name=linux:0 UUID=41b8971f:df6c3d81:40a999bc:490996f9 ARRAY /dev/md/linux:3 metadata=1.0 name=linux:3 UUID=3b988094:5c379c09:cb3773cc:a44c243c ARRAY /dev/md/linux:4 metadata=1.0 name=linux:4 UUID=dfc46d0f:cf98c90a:163cbca9:c954a7c6 ARRAY /dev/md2 metadata=1.0 name=linux:2 UUID=caa75fa1:5e0a6fcf:c456a754:896617d0 ARRAY /dev/md/linux:1 metadata=1.0 name=linux:1 UUID=fa768d7e:b3eed134:3bf3c2ce:70ca362f The UUIDs are the same as in /etc/mdadm.conf (unless I overlooked a minor difference).
zcat /boot/initrd-KERNEL_VERSION |cpio -idv cat etc/mdadm.conf
ARRAY /dev/md2 metadata=1.0 name=linux:2 UUID=caa75fa1:5e0a6fcf:c456a754:896617d0 Looks like the initrd contains only the information for the / partition, not for my other /dev/md* arrays. I just checked my backups - the initrd from openSUSE 11.4 also has only /dev/md2 in its mdadm.conf. The boot/51-md.sh script in the 11.4 and 12.1 initrd are exactly the same. However there are some differences in lib/udev/rules.d/64-md-raid.rules -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721905
https://bugzilla.novell.com/show_bug.cgi?id=721905#c3
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=721905
https://bugzilla.novell.com/show_bug.cgi?id=721905#c4
--- Comment #4 from Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=721905
https://bugzilla.novell.com/show_bug.cgi?id=721905#c5
--- Comment #5 from Christian Boltz
Replacement /lib/mkinitrd/scripts/setup-md.sh Please confirm that this works for you and I'll submit an update.
etc/mdadm.conf in the initrd now has: AUTO -all ARRAY /dev/md2 metadata=1.0 name=linux:2 UUID=caa75fa1:5e0a6fcf:c456a754:896617d0 Unfortunately I still get /dev/md12* devices, so you'll need another fix... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721905
https://bugzilla.novell.com/show_bug.cgi?id=721905#c6
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=721905
https://bugzilla.novell.com/show_bug.cgi?id=721905#c7
--- Comment #7 from Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=721905
https://bugzilla.novell.com/show_bug.cgi?id=721905#c8
--- Comment #8 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=721905
https://bugzilla.novell.com/show_bug.cgi?id=721905#c9
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=721905
https://bugzilla.novell.com/show_bug.cgi?id=721905#c
Per Jessen
https://bugzilla.novell.com/show_bug.cgi?id=721905
https://bugzilla.novell.com/show_bug.cgi?id=721905#c10
Neil Brown
participants (1)
-
bugzilla_noreply@novell.com