Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!
Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.
Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!
[Solved] QNAP - How to abort resynchronizing of RAID group?
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2805
Topic starter
April 30, 2022 6:32 AM
First of all a big fat warning to not just do this whenever you feel like it.
The resynchronization of your RAID group is there for reason!
(bad disk, bad block, raid out of sync etc).
Having said that, If your array is md2 then
echo "idle" > /sys/block/md2/md/sync_action
You can determine which is your array by using:
cat /proc/mdstat
In the example below you'll see that md2 is my RAID-6 array ...
[~] # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath]
md2 : active raid6 sdg3[0] sde3[7] sdf3[8] sdd3[10] sdc3[4] sdh3[3] sdj3[9] sdi3[1]
23382380544 blocks super 1.0 level 6, 512k chunk, algorithm 2 [8/8] [UUUUUUUU]
bitmap: 12/30 pages [48KB], 65536KB chunk
md1 : active raid0 sda3[0] sdb3[1]
956863488 blocks super 1.0 512k chunks
md322 : active raid1 sde5[7](S) sdf5[6](S) sdd5[5](S) sdc5[4](S) sdh5[3](S) sdj5[2](S) sdi5[1] sdg5[0]
7235136 blocks super 1.0 [2/2] [UU]
bitmap: 0/1 pages [0KB], 65536KB chunk
....
unused devices:
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2805
Topic starter
February 18, 2024 4:59 AM
Per QNAP FAQ "How to stop RAID rebuilding" this should be an option too:
echo frozen >/sys/block/md1/md/sync_action
In my experience, this will potentially set your RAID volume to "Degraded" state, without an option to restart the rebuilding in the Web GUI.
Start rebuilding the QNAP RAID storage Volume can be done by command line like so:
echo "idle" > /sys/block/md1/md/sync_action
if that doesn't work, then you can try:
echo "recover" > /sys/block/md1/md/sync_action
** md1 being the array you found with "cat/proc/mdstat" 😊