raid1 over lvm and nbd => recovery thread fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
I've made a raid1 mirror of an lvm partition and an nbd from another
machine. Then I created an ext3 fs on it. I patched nbd-client.c to
close the socket on network failure to prevent some kind of dead-lock
when the connection between the two machines dies.

This all works quite well, but after about 6~12 disconnects and
reconnects of the nbd (disc-failures for the raid) while the recovery
thread is working, the recovery thread is show as folling in
/proc/mdstat:
|     [>....................]  recovery =  0.0% (0/16777152)
|     finish=461360.7min speed=0K/sec

So there is no recovery :-(

I'm not shure whether this only happens if there is write activity on
the raid, but in most cases there was. The recovery thread did never
complete because I disconnected after ~30s after reconnect.

mdrecoveryd and raid1d show up normal in top, they are just not running.

Not to forget, /proc/mdstat shows the recovery stats also when I remove
the disc again.

Is there any way to stop the recovery thread manually?

Regards,
Martin
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux