mdadm: checkarray causes problems with kvm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
For a while now, I've been experiencing periodic problems where my RAID1 array would go into a rebuilding state and the system would hang with reports of a cpu soft lock. Indications where that the soft lock was due to KVM virts using the array while it was rebuilding. To work around the problem I've been monitoring /proc/mdstat and pausing the virts when the rebuild occurs. Recently I've tracked the rebuild down to checkarray's roughly monthly execution. As you can see from this log output, a few minutes after checkarray kicks off the problem occurs.
Aug 7 00:57:01 kvm-host kernel: [10854610.167521] md: data-check of RAID array md0
Aug 7 00:57:01 kvm-host kernel: [10854610.167531] md: minimum _guaranteed_ speed: 100000 KB/sec/disk.
Aug 7 00:57:01 kvm-host kernel: [10854610.167538] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for data-check.
Aug 7 00:57:01 kvm-host kernel: [10854610.167550] md: using 128k window, over a total of 240832 blocks.
Aug 7 00:57:01 kvm-host kernel: [10854610.181578] md: delaying data-check of md1 until md0 has finished (they share one or more physical units)
Aug 7 00:57:01 kvm-host kernel: [10854610.184873] md: delaying data-check of md2 until md1 has finished (they share one or more physical units)
Aug 7 00:57:01 kvm-host kernel: [10854610.184922] md: delaying data-check of md1 until md0 has finished (they share one or more physical units)
Aug 7 00:57:01 kvm-host kernel: [10854610.186091] md: delaying data-check of md3 until md0 has finished (they share one or more physical units)
Aug 7 00:57:01 kvm-host kernel: [10854610.186097] md: delaying data-check of md1 until md3 has finished (they share one or more physical units)
Aug 7 00:57:01 kvm-host kernel: [10854610.186596] md: delaying data-check of md2 until md3 has finished (they share one or more physical units)
Aug 7 00:57:06 kvm-host kernel: [10854614.292430] md: md0: data-check done.
Aug 7 00:57:06 kvm-host kernel: [10854614.377928] md: delaying data-check of md2 until md3 has finished (they share one or more physical units)
Aug 7 00:57:06 kvm-host kernel: [10854614.377942] md: data-check of RAID array md3
Aug 7 00:57:06 kvm-host kernel: [10854614.377953] md: minimum _guaranteed_ speed: 100000 KB/sec/disk.
Aug 7 00:57:06 kvm-host kernel: [10854614.377961] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for data-check.
Aug 7 00:57:06 kvm-host kernel: [10854614.377976] md: using 128k window, over a total of 1943744384 blocks.
Aug 7 00:57:06 kvm-host kernel: [10854614.377984] md: delaying data-check of md1 until md3 has finished (they share one or more physical units)
Aug 7 01:03:06 kvm-host kernel: [10854974.265081] kvm D 00000000ffffffff 0 16486 1 0x00000000
Aug 7 01:03:06 kvm-host kernel: [10854974.265093] ffff8800987f9808 0000000000000082 0000000000015dc0 0000000000015dc0
Aug 7 01:03:06 kvm-host kernel: [10854974.265104] ffff8800090c9ad0 ffff8800987f9fd8 0000000000015dc0 ffff8800090c9700
Aug 7 01:03:06 kvm-host kernel: [10854974.265113] 0000000000015dc0 ffff8800987f9fd8 0000000000015dc0 ffff8800090c9ad0
Aug 7 01:03:06 kvm-host kernel: [10854974.265122] Call Trace:
Aug 7 01:03:06 kvm-host kernel: [10854974.265162] [<ffffffffa0052
Aug 7 01:03:06 kvm-host kernel: [10854974.265178] [<ffffffff8105a
Aug 7 01:03:06 kvm-host kernel: [10854974.265192] [<ffffffffa0055
Aug 7 01:03:06 kvm-host kernel: [10854974.265204] [<ffffffff81204
Aug 7 01:03:06 kvm-host kernel: [10854974.265216] [<ffffffff8142a
Aug 7 01:03:06 kvm-host kernel: [10854974.265224] [<ffffffff81438
Aug 7 01:03:06 kvm-host kernel: [10854974.265233] [<ffffffff812a1
Aug 7 01:03:06 kvm-host kernel: [10854974.265242] [<ffffffff81437
Aug 7 01:03:06 kvm-host kernel: [10854974.265250] [<ffffffff812a1
Aug 7 01:03:06 kvm-host kernel: [10854974.265260] [<ffffffff81039
Aug 7 01:03:06 kvm-host kernel: [10854974.265268] [<ffffffff81177
Aug 7 01:03:06 kvm-host kernel: [10854974.265276] [<ffffffff81178
Aug 7 01:03:06 kvm-host kernel: [10854974.265284] [<ffffffff81178
Aug 7 01:03:06 kvm-host kernel: [10854974.265291] [<ffffffff81175
Aug 7 01:03:06 kvm-host kernel: [10854974.265299] [<ffffffff810ff
Aug 7 01:03:06 kvm-host kernel: [10854974.265308] [<ffffffff810f6
Aug 7 01:03:06 kvm-host kernel: [10854974.265315] [<ffffffff81176
Aug 7 01:03:06 kvm-host kernel: [10854974.265322] [<ffffffff81175
Aug 7 01:03:06 kvm-host kernel: [10854974.265330] [<ffffffff810f6
Aug 7 01:03:06 kvm-host kernel: [10854974.265338] [<ffffffff810f7
Aug 7 01:03:06 kvm-host kernel: [10854974.265347] [<ffffffff8105a
Aug 7 01:03:06 kvm-host kernel: [10854974.265355] [<ffffffff81175
Aug 7 01:03:06 kvm-host kernel: [10854974.265363] [<ffffffff81145
Aug 7 01:03:06 kvm-host kernel: [10854974.265371] [<ffffffff81053
Aug 7 01:03:06 kvm-host kernel: [10854974.265380] [<ffffffff81085
Aug 7 01:03:06 kvm-host kernel: [10854974.265388] [<ffffffff81145
Aug 7 01:03:06 kvm-host kernel: [10854974.265396] [<ffffffff81145
Aug 7 01:03:06 kvm-host kernel: [10854974.265404] [<ffffffff81146
Aug 7 01:03:06 kvm-host kernel: [10854974.265412] [<ffffffff81146
Aug 7 01:03:06 kvm-host kernel: [10854974.265422] [<ffffffff81013
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: mdadm 2.6.7.1-1ubuntu15
ProcVersionSign
Uname: Linux 2.6.32-33-server x86_64
Architecture: amd64
Date: Mon Aug 8 23:12:46 2011
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MachineType: Gigabyte Technology Co., Ltd. GA-MA785GM-US2H
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: mdadm
dmi.bios.date: 09/16/2009
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F5
dmi.board.name: GA-MA785GM-US2H
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSof
dmi.product.name: GA-MA785GM-US2H
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
Related reports: bugs.debian. org/cgi- bin/bugreport. cgi?bug= 584881 /bugs.launchpad .net/ubuntu/ +source/ linux/+ bug/212684 /bugzilla. kernel. org/show_ bug.cgi? id=12905
http://
https:/
https:/