You have problems with automatic rebuilding raid 1 (md) on debian (resync=PENDING)?
mdX : active (auto-read-only) raid1 sdaY[0] sdbY[1]
2000000 blocks [2/2] [UU]
resync=PENDING
do;
mdadm --readwrite /dev/mdX
and the process of rebuilding starts
[===>...] resync = 16.2% (324736/2000000) finish=0.6min speed=46390K/sec
9 responses to “md raid not rebulding — resync=pending”
Thank you sooooooooo much!!
Thank you! That worked…
Thanks a lot. This started the process immediately!
Very good tip! Very useful!
I O U a life 🙂 Many thanks
Mark (absolute debian beginner)
Thanks, you saved me as I saw that my swap partition had a resync pending just like you!
Is there any possibility that I could loose some data? I’ve setup the complete server with all needed modules and I have a running website on this server. Is it safe to run resync?
Thanks!
1. Do backup of the entire website and you are safe. 🙂
2. Resync disk
Good luck.
This is the intended behavior on recent debian wheezy. It’s not necessary to start the sync manually with the –readwrite command as the resync will automatically start the moment you use the device.
For example using pvcreate /dev/mdX or mkfs.ext4 /dev/mdX will cause the sync to start. Tested and confirmed this.
Details and explanation in this thread: http://www.spinics.net/lists/raid/msg38586.html