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.

Slow DD Zeroing of Drive Being Cleared

Featured Replies

I am trying to clear a drive in order to shrink my array. I originally started with the clear drive user script but am now just using dd in a screen.

dd bs=1M if=/dev/zero of=/dev/md5 status=progress

Both the user script (which just ends up running this command AFAICT) and the raw command are progressing extremely slowly, at less than 1 MB/S.

 

Is there some issue with the drive causing this or do I have a misconfiguration elsewhere?

  • Community Expert

Go to Tools - Diagnostics and attach the complete Diagnostics ZIP file to your NEXT post.

  • Author

Attached is my diagnostics zip

 

Edited by sbu
EDIT: Removed diagnostics

  • Community Expert

Nothing obvious in those. Near end of syslog it says

May  6 02:46:37 htpc-sbb clear_array_drive: Clearing Disk 5 is complete
### [PREVIOUS LINE REPEATED 1 TIMES] ###
May  6 02:46:38 htpc-sbb emhttpd: cmd: /usr/local/emhttp/plugins/user.scripts/showLog.php clear_array_drive
May  6 03:40:16 htpc-sbb crond[2646]: exit status 1 from user root /usr/local/sbin/mover &> /dev/null
May  6 11:29:03 htpc-sbb sshd[2467]: Accepted password for root from 10.0.0.6 port 62012 ssh2

But I am guessing that "complete" wasn't really and so you went on to another method.

 

Personally, I would just remove the disk and rebuild parity. Might even be faster.

  • Author

Yeah I suspect that clear_array_drive output is premature since I aborted the script when it was running so slow.

  • Author

Because the drive was empty I followed the steps in the Shrink Array document to format it first. It's now zero-ing out at a much faster rate.

  • Community Expert

Not clear why that would make any difference at all. Formatting a drive just writes an empty filesystem to it. The wiki uses the word "clean" (not the same as "clear") when it talks about a quick way to empty a disk by formatting it. If a disk was already empty, then it has an empty filesystem, whether it was newly formatted to get that way, or whether all files were deleted or moved from it.

 

And the only reason the disk has to be empty is because the script doesn't want you to accidentally clear a disk that has files on it. Doing it with dd as you are it doesn't matter at all what is on the disk.

  • Author

Yeah, I also rebooted prior to the format and moved some shares from including all to including specific disks (without the one I am trying to remove from the array).

 

Those are more likely culprits.

  • Community Expert

If you had other write activity on the array then of course that would be competing with trying to clear the array disk, since both would be updating parity. The whole point of clearing the md device is so parity will be updated to stay in sync with all those zeros when clearing the disk. Then it can be removed without affecting parity since all the zeros have no effect on parity.

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.