2013-04-05 12:13:58

by Vasiliy Tolstov

[permalink] [raw]
Subject: hang while add block device to raid1

Hello. I'm use kernel 3.6.11 from stable tree.
When i do some workload inside my xen vps (dd from /dev/zero), remove
disk via echo 1 > /sys/class/block/xxx/device/delete and reattach it
to raid1 i have hand md device.
On physical device i'm use lvm on top of it raid1.

I'm try to add on top of 3.6.11 patch from linus git tree, but nothing happenes:
commit ee0b0244030434cdda26777bfb98962447e080cd
Author: NeilBrown <[email protected]>
Date: Mon Feb 25 12:38:29 2013 +1100
md/raid1,raid10: fix deadlock with freeze_array()

What can i do to fix this?


echo w > /proc/sysrq-trigger

[ 5162.809144] SysRq : Show Blocked State
[ 5162.809158] task PC stack pid father
[ 5162.809204] md127_raid1 D 0000000000000000 0 7354 2 0x00000000
[ 5162.809209] ffff88011b489cc0 0000000000000246 ffff8801345e62d0
ffffffff80289dea
[ 5162.809213] ffff88011b489fd8 ffff88012998e240 ffff88011b489fd8
ffff88012998e240
[ 5162.809216] ffff8800d572e3c0 ffff88012998e240 ffff88011b489d00
ffff88011b489ce0
[ 5162.809220] Call Trace:
[ 5162.809238] [<ffffffffa041d55b>] raise_barrier+0xab/0x220 [raid1]
[ 5162.809260] [<ffffffffa041d9f7>] raid1_add_disk+0x147/0x1c0 [raid1]
[ 5162.809274] [<ffffffff80408b9b>] remove_and_add_spares+0xfb/0x200
[ 5162.809281] [<ffffffff8040f37a>] md_check_recovery.part.53+0x41a/0x550
[ 5162.809288] [<ffffffffa041ee46>] raid1d+0x16/0x170 [raid1]
[ 5162.809298] [<ffffffff80406de6>] md_thread+0x106/0x140
[ 5162.809305] [<ffffffff80051cd5>] kthread+0x85/0x90
[ 5162.809315] [<ffffffff8053da14>] kernel_thread_helper+0x4/0x10


--
Vasiliy Tolstov,
e-mail: [email protected]
jabber: [email protected]


2013-04-05 15:37:36

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: hang while add block device to raid1

On Fri, Apr 05, 2013 at 04:13:40PM +0400, Vasiliy Tolstov wrote:
> Hello. I'm use kernel 3.6.11 from stable tree.

Which is no longer supported, can you duplicate this on the 3.8 stable
tree?

thanks,

greg k-h

2013-04-05 20:07:35

by Vasiliy Tolstov

[permalink] [raw]
Subject: Re: hang while add block device to raid1

2013/4/5 Greg KH <[email protected]>:
> Which is no longer supported, can you duplicate this on the 3.8 stable
> tree?
>
> thanks,
>
> greg k-h


I will try today and send results. Thanks!

--
Vasiliy Tolstov,
e-mail: [email protected]
jabber: [email protected]

2013-04-08 14:33:34

by Vasiliy Tolstov

[permalink] [raw]
Subject: Re: hang while add block device to raid1

2013/4/6 Vasiliy Tolstov <[email protected]>:
> I will try today and send results. Thanks!


After some test hang does not appeared. Thanks!

--
Vasiliy Tolstov,
e-mail: [email protected]
jabber: [email protected]