[Bug 775746] New: mdadm degraded array on boot, random device partition missing
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c0
Summary: mdadm degraded array on boot, random device partition
missing
Classification: openSUSE
Product: openSUSE 12.1
Version: Final
Platform: x86-64
OS/Version: openSUSE 12.1
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@forge.provo.novell.com
ReportedBy: j.langley@gmx.net
QAContact: qa-bugs@suse.de
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101
Firefox/14.0.1
I have two soft raid devices configured with yast. Regulary, but not always i
got a degraded array after boot. One random partition is missing in one array,
in most cases it is sdb4 or sda4 - appears to be alternately. Sometimes in both
arrays one partition is missing.
I searched the web and found similar problems but not exactly the same.
I also booted with raid=noautodetect since some Ubuntu forums suggested that.
But no success.
/tmp/initrd/lib/udev/rules.d/64-md-raid.rules is in place.
I also tried to put it in /etc/udev/rules.d/64-md-raid.rules too, but no
difference. The random partition is kicked even though it is clean:
I suspect a bug in mdadm used with udev and systemd.
linux-dioz:/ # mdadm --examine /dev/sdb4
/dev/sdb4:
Magic : a92b4efc
Version : 1.0
Feature Map : 0x1
Array UUID : 909d58d0:3a4ee94e:8897cfe8:d7aefeea
Name : linux-99ig:1
Creation Time : Fri Oct 21 21:36:33 2011
Raid Level : raid1
Raid Devices : 2
Avail Dev Size : 878198512 (418.76 GiB 449.64 GB)
Array Size : 878198512 (418.76 GiB 449.64 GB)
Super Offset : 878198768 sectors
State : clean
Device UUID : 46360291:b7806b6c:ce1f892e:fa56fc78
Internal Bitmap : -8 sectors from superblock
Update Time : Mon Aug 13 22:24:16 2012
Checksum : 5c2804a9 - correct
Events : 93354
Device Role : Active device 1
Array State : AA ('A' == active, '.' == missing)
linux-dioz:~ # mdadm -V
mdadm - v3.2.2 - 17th June 2011
linux-dioz:~ # uname -r
3.1.10-1.16-desktop
linux-dioz:~ # cat /proc/cmdline
root=/dev/md0 noresume splash=silent quiet vga=795 raid=noautodetect
linux-dioz:~ # cat /etc/fstab:
/dev/md0 / xfs defaults 1 1
/dev/md1 /home xfs defaults 1 2
linux-dioz:~ # cat /etc/mdadm.conf
DEVICE containers partitions
ARRAY /dev/md/0 UUID=7c60e2b2:804071ee:1ef2019b:e3fce998
ARRAY /dev/md/1 UUID=909d58d0:3a4ee94e:8897cfe8:d7aefeea
linux-dioz:~ # cat /tmp/initrd/etc/mdadm.conf
AUTO -all
ARRAY /dev/md0 metadata=1.0 name=linux:0
UUID=7c60e2b2:804071ee:1ef2019b:e3fce998
linux-dioz:~ # mdadm --detail /dev/md0
/dev/md0:
Version : 1.0
Creation Time : Fri Oct 21 19:56:37 2011
Raid Level : raid1
Array Size : 41945016 (40.00 GiB 42.95 GB)
Used Dev Size : 41945016 (40.00 GiB 42.95 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Mon Aug 13 22:04:19 2012
State : active
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Name : linux:0
UUID : 7c60e2b2:804071ee:1ef2019b:e3fce998
Events : 5124
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2
linux-dioz:~ # mdadm --detail /dev/md1
/dev/md1:
Version : 1.0
Creation Time : Fri Oct 21 21:36:33 2011
Raid Level : raid1
Array Size : 439099256 (418.76 GiB 449.64 GB)
Used Dev Size : 439099256 (418.76 GiB 449.64 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Mon Aug 13 22:05:20 2012
State : active
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Name : linux-99ig:1
UUID : 909d58d0:3a4ee94e:8897cfe8:d7aefeea
Events : 93354
Number Major Minor RaidDevice State
0 8 4 0 active sync /dev/sda4
1 8 20 1 active sync /dev/sdb4
linux-dioz:~ # mount
/dev/md0 on / type xfs (rw,relatime,attr2,delaylog,noquota)
/dev/md1 on /home type xfs (rw,relatime,attr2,delaylog,noquota)
linux-dioz:~ # dmesg | grep md
[ 0.000000] Command line: root=/dev/md0 noresume splash=silent quiet vga=795
raid=noautodetect
[ 0.000000] Kernel command line: root=/dev/md0 noresume splash=silent quiet
vga=795 raid=noautodetect
[ 1.354683] ata1: SATA max UDMA/133 cmd 0x9f0 ctl 0xbf0 bmdma 0xe000 irq 21
[ 1.354687] ata2: SATA max UDMA/133 cmd 0x970 ctl 0xb70 bmdma 0xe008 irq 21
[ 1.355625] ata3: SATA max UDMA/133 cmd 0x9e0 ctl 0xbe0 bmdma 0xcc00 irq 20
[ 1.355629] ata4: SATA max UDMA/133 cmd 0x960 ctl 0xb60 bmdma 0xcc08 irq 20
[ 3.024577] md: bind<sda2>
[ 3.075631] md: bind<sdb2>
[ 3.078527] md: raid1 personality registered for level 1
[ 3.078799] md/raid1:md0: active with 2 out of 2 mirrors
[ 3.078988] created bitmap (1 pages) for device md0
[ 3.079187] md0: bitmap initialized from disk: read 1/1 pages, set 0 of 641
bits
[ 3.149541] md0: detected capacity change from 0 to 42951696384
[ 3.151403] md0: unknown partition table
[ 3.392302] md: raid0 personality registered for level 0
[ 3.396557] md: raid10 personality registered for level 10
[ 3.524158] md: raid6 personality registered for level 6
[ 3.524162] md: raid5 personality registered for level 5
[ 3.524164] md: raid4 personality registered for level 4
[ 3.720134] XFS (md0): Mounting Filesystem
[ 3.861353] XFS (md0): Ending clean mount
[ 4.612088] systemd[1]: systemd 37 running in system mode. (+PAM +LIBWRAP
+AUDIT +SELINUX +SYSVINIT +LIBCRYPTSETUP; suse)
[ 5.005999] systemd[1]: Set hostname to
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c1
--- Comment #1 from John Langley
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c2
--- Comment #2 from John Langley
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c3
--- Comment #3 from John Langley
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c4
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c5
John Langley
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c6
--- Comment #6 from John Langley
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c7
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c8
--- Comment #8 from John Langley
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c9
--- Comment #9 from Joey Lee
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c10
Joey Lee
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c11
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c12
--- Comment #12 from Joey Lee
If it is a race with mdadm it can probably be fixed by adding 'udev-trigger' to the end of the line that start '# Should-Start:' in /etc/init.d/boot.md.
I just checked and found the 'udev-trigger' is not in openSUSE 12.2, need use '/sbin/udevadm trigger' -- 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=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c13
--- Comment #13 from Joey Lee
(In reply to comment #11)
If it is a race with mdadm it can probably be fixed by adding 'udev-trigger' to the end of the line that start '# Should-Start:' in /etc/init.d/boot.md.
I just checked and found the 'udev-trigger' is not in openSUSE 12.2, need use '/sbin/udevadm trigger'
And, openSUSE 12.1 also -- 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=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c14
--- Comment #14 from Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c15
--- Comment #15 from John Langley
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c16
--- Comment #16 from Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c17
--- Comment #17 from John Langley
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c18
--- Comment #18 from John Langley
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c19
--- Comment #19 from John Langley
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c20
Herbert Meier
https://bugzilla.novell.com/show_bug.cgi?id=775746
https://bugzilla.novell.com/show_bug.cgi?id=775746#c21
Jeffrey Cheung
participants (1)
-
bugzilla_noreply@novell.com