Page 1 of 1
Forum

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!




QNAP - How to abort...
 
Share:
Notifications
Clear all

[Solved] QNAP - How to abort resynchronizing of RAID group?

2 Posts
1 Users
0 Likes
4,793 Views
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2660
Topic starter  

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: 

 

 


   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2660
Topic starter  

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" 😊 

This post was modified 1 month ago 4 times by Hans

   
ReplyQuote

Like what you see and you'd like to help out? 

The best way to help is of course by assisting others with their questions here in the forum, but you can also help us out in other ways:

- Do your shopping at Amazon, it will not cost you anything extra but may generate a small commission for us,
- send a cup of coffee through PayPal ($5, $10, $20, or custom amount),
- become a Patreon,
- donate BitCoin (BTC), or BitCoinCash (BCH).

Share: