Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

(Solved) Unable to start array after "parity swap procedure" - data-rebuild didn't start due to script?

Featured Replies

Hi!

I ran the parity swap procedure over the weekend to exchange a 250GB drive to a 12TB drive, and reuse the 4TB parity drive as a data drive. 

Everything went smooth until this morning I came to step #15. Under Array operation had the "Start" button appeared again after the parity copy was done. I clicked "Start" but it didn't start the array like it says in the manual (and it was no "Yes I want to do this" checkbox either). Everything just stalled.

 

Current state is this:

1867757344_Skrmavbild2020-12-07kl_12_13_47.thumb.png.bb5b2cb73ac3cab69ee602becd7c1bd6.png

 

67053365_Skrmavbild2020-12-07kl_12_10_49.thumb.png.b339041f3f75e4d4c47166e55522520a.png

"Array Stopped•/usr/local/emhttp/plugins/user.scripts/backgroundScript.sh /tmp/user.scripts/tmpScripts/Enable write cache for all disks by-id/script >/dev/null 2>&1"

 

I checked the script for write cache and entered the new 12TB drives serial number (Edit: and removed the 250GB serial number). But I'm not able to run the script?

The script is this from the thread (SOLVED) Set write cache permanently? (with my drives S/N):

917813081_Skrmavbild2020-12-07kl_12_42_13.thumb.png.f56f9ca9ad04954d44381a883d1bc2df.png

 

I've had the script running perfect for almost a year, because I had some problem that every time I rebooted the server write cache was disabled and I had to run hdparm (if I remember correctly, should really keep personal logg...).

 

 

I haven't rebooted yet, don't want to redo the parity copy if not necessary.

Any ideas of what I should try now?

Syslog attached.

 

 

tower-syslog-20201207-1100.zip

Edited by kim_sv
Changed title

  • Author

Anyone?

  • Community Expert

Your title says 

Quote

copy of data drive failed

Parity swap copies parity, but it rebuilds the data disk as mentioned in that wiki. Your screenshot suggests the data disk hasn't been rebuilt yet.

 

That syslog shows parity copy completed and then it seems to show array started and disks mounted but then nothing in syslog after that. Is there anything new in syslog after the syslog you attached?

 

I have no experience with anything that needed to have write-cache enabled so I don't know if that is related in any way or not.

 

In any case, if you still have the original disk2 your data should be OK.

 

You can probably force it to rebuild disk2 with New Config / Trust Parity then stop/unassign disk2/start/stop/reassign disk2/start to begin rebuild.

 

You might wait to see of there are other opinions on what happened or what to do.

 

Might be useful to have the complete diagnostics instead of just syslog.

  • Author

Well, I lost my cool and hit reboot. :)

 

First I couldn't even connect or ssh to it, but then I remembered I have an unassigned drive connected and maybe it tried booting of that. Removed the external USB-drive and then it booted normal. Since the write-cache script runs on startup and I now had changed it I guess everything was ok so unraid started the Data-Rebuild automatically. Will run a parity check after to check if everything still is ok.  

 

20 minutes ago, trurl said:

Your title says 

Quote

copy of data drive failed

Parity swap copies parity, but it rebuilds the data disk as mentioned in that wiki. Your screenshot suggests the data disk hasn't been rebuilt yet.

 

That syslog shows parity copy completed and then it seems to show array started and disks mounted but then nothing in syslog after that. Is there anything new in syslog after the syslog you attached?

You are correct, I will try and change the title.

 

21 minutes ago, trurl said:

I have no experience with anything that needed to have write-cache enabled so I don't know if that is related in any way or not.

It is really strange but since the script worked I haven't looked into it more, should I? In this case I guess the problem wasn't that the new drive had write-cache problem but that the script included a removed drive?

 

1250610259_Skrmavbild2020-12-07kl_16_44_09.thumb.png.9f92be33fb11a3bae21b8aefd0b7ca90.png

  • Author

OK, the data rebuild went without a glitch. It wasn't a problem to restart before the data rebuild, at least not this time. I also ran an extra parity check to be sure. So now everything is working. I guess it was the script that messed it up and I'll have to look into that more.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.