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.

How to stop clear array drive script?

Featured Replies

I'm using the script but it's been running at 4-5 MB/s overnight (and this is a 20 TB drive!)

 

Is there any way to abort the script as it will take far too long like this (almost 2 months).

Solved by cinereus

  • Community Expert
On 10/7/2022 at 12:56 AM, stereopine said:

clear a 1TB SSD

SSDs in the parity array cannot be trimmed, and can only be written at parity speed. Usually you would put SSDs in a pool.

 

I always recommend to just remove the disk with New Config and rebuild parity.

  • Author
11 hours ago, cinereus said:

I'm using the script but it's been running at 4-5 MB/s overnight (and this is a 20 TB drive!)

 

Is there any way to abort the script as it will take far too long like this (almost 2 months).

Now down to 1.0 MB/s. Any ideas?

  • Author
55 minutes ago, JorgeB said:

That script is known to not work correctly with current releases, you can still do it manually:

 

https://forums.lime-technology.com/topic/61614-shrink-array-question/?tab=comments#comment-606335

I'm on 6.9.2 which is the same version I used it successfully with last time. It's just a dd command, I don't get why it is running at 1 MB/s.

 

How do I cancel it now it is running? 

Edited by cinereus

  • Community Expert

Not sure, never used, it, if nothing else, a reboot shoudl do it.

  • Author

The script is running at 1 MB/s on a 20 TB drive. Does anyone know how to cancel it as it's clearly not working correctly?

  • Author
5 minutes ago, JorgeB said:

Not sure, never used, it, if nothing else, a reboot shoudl do it.

Would really rather avoid a reboot. All it's done is:

 

umount /mnt/disk7 
dd bs=1M if=/dev/zero of=/dev/md7  status=progress

 

Can I format and remount in some way?

  • Author

I'm shrinking an array on 6.9.2. Have done this with the clear array drive script before on this version so I don't need to rebuild parity.

 

However, this time the script isn't working. It has unmounted the drive with umount but dd is not working.

 

dd started at 4-5 MB/s but two days layers is now less than 1 MB/s (and this is a 20 TB drive!)

 

How can I safely abort the script?

  • Community Expert

The speed being that slow suggests a problem.

 

You are likely to get better informed feedback if you attach your system’s diagnostics (with everything in the one zip file) to your next post in this thread. It is always a good idea when asking questions to supply your diagnostics so we can see details of your system, how you have things configured, and the current syslog.

  • Community Expert

I have split your posts in various threads about this into this thread.

 

  • Community Expert

I recommend rebooting, then New Config without that disk and rebuild parity.

  • Author
6 hours ago, trurl said:

I recommend rebooting, then New Config without that disk and rebuild parity.

The whole thing I'm trying to avoid is having to rebuild parity. That's why I chose the method that takes a lot longer but is a lot safer.

 

I'm just trying to figure out how to stop the script that doesn't work from the unraid docs so I don't lose parity.

Edited by cinereus

  • Community Expert
18 minutes ago, cinereus said:

a lot safer.

debatable

  • Author
24 minutes ago, trurl said:

debatable

Keeping parity is always safer.

 

But how can I fix this without risking a reboot? How do I undo the umount command?

 

And why does dd run so slowly to be unuseable?

  • Community Expert
32 minutes ago, cinereus said:

Keeping parity is always safer.

What is debatable is whether or not the complications of this particular method is always safer. Remains to be seen whether unclean shutdown can be avoided.

  • Author
12 hours ago, trurl said:

What is debatable is whether or not the complications of this particular method is always safer. Remains to be seen whether unclean shutdown can be avoided.

Does anyone from Unraid support have a better idea than unclear shutdown at this point?

  • Author
On 4/5/2025 at 12:09 PM, itimpi said:

The speed being that slow suggests a problem.

 

You are likely to get better informed feedback if you attach your system’s diagnostics (with everything in the one zip file) to your next post in this thread. It is always a good idea when asking questions to supply your diagnostics so we can see details of your system, how you have things configured, and the current syslog.

Do you think I could go straight to The "Remove Drives Then Rebuild Parity" Method now the disk have been taken off the array with umount. Thereby avoiding an unclear shutdown?

  • Community Expert
1 minute ago, cinereus said:

Do you think I could go straight to The "Remove Drives Then Rebuild Parity" Method now the disk have been taken off the array with umount. Thereby avoiding an unclear shutdown?

You can do that regardless of having an Unclean shutdown.   If you do get an Unclean Shutdown just cancel the resulting parity check on booting as you are about to rebuild parity anyway from the remaining drives.

  • Author
54 minutes ago, itimpi said:

You can do that regardless of having an Unclean shutdown.   If you do get an Unclean Shutdown just cancel the resulting parity check on booting as you are about to rebuild parity anyway from the remaining drives.

So it will be safe for me to cancel the dd command, stop array and go to a new config?

  • Author
6 hours ago, trurl said:

yes

Stop array button doesn't work. It just says this:

 

image.png.276cd5b9b465733ef6145e4d906ff290.png

  • Author

I have stopped Docker services but when I go to Open Files I get this:

 

image.thumb.png.9ff219fecbb1966ab3d4c904c8f07430.png

  • Community Expert
1 minute ago, cinereus said:

I have stopped Docker services

Just to clarify. Do you mean you went to Settings - Docker and set Enable Docker to No then hit the Apply button?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.