Jump to content

Anyway to remove (w/o replace) multiple disks without losing parity?


Recommended Posts

Hello! 


I had listed my old NAS with drives on ebay for a few months with no takers and gave up on it ever selling so pulled 5 8tb drives out and cleared and put them into my new Unraid server. Clearing is done and they are now mounted in the array. I have already used Unbalance to remove all data from them, so all 5 are completely empty and all 5 have been removed from global shares and all individual shares.

 

Literally a day after doing this someone bought my old NAS so now I need to remove those 5x 8tb drives. I am risk averse and really do not want to do the "remove drives then rebuild parity" option here: https://docs.unraid.net/legacy/FAQ/shrink-array/#for-unraid-v62-and-later

 

This option would mean I would have no parity protection for a very long and intensive rebuild process which would be super scary. 

 

Option 2 "Clear Drive Then Remove Drive" would be fine except I can only do 1 drive at a time and 5 8tb drives will likely take a month. Way too long to expect my eBay buyer to wait. 

 

Is there any way for me to simultaneously zero all 5 disks at once without losing parity? Any help would be hugely appreciated! 

 

I tried to attach diagnostics to this post, but my diagnostics tab keeps crashing before the download starts (something to deal with in another thread I suppose). 

 

Other basic stats on the array:

Dual parity

5 disks to keep, 14-20tb

5 8tb disks to remove

12500k

Link to comment
9 minutes ago, WobbleBobble2 said:

Is there any way for me to simultaneously zero all 5 disks at once without losing parity?

No, but with with turbo write it should take less than a day to zero an 8TB disk, assuming no controller bottlenecks.

Link to comment
Posted (edited)
56 minutes ago, JorgeB said:

No, but with with turbo write it should take less than a day to zero an 8TB disk, assuming no controller bottlenecks.

Ok I just tried running the script and I am getting some wierd results. The whole clearing only took like 30 seconds:

Script location: /tmp/user.scripts/tmpScripts/clear an array drive/script
Note*** Clear an unRAID array data drive *** v1.4

Checking all array data drives (may need to spin them up) ...

Found a marked and empty drive to clear: * Parity will be preserved throughout.
* Clearing while updating Parity takes a VERY long time!
* The progress of the clearing will not be visible until it's done!
* When complete, Disk 6 will be ready for removal from array.
* Commands to be executed:
*****
You have 60 seconds to cancel this script (click the red X, top right)

Unmounting Disk 6 ...
Clearing Disk 6 ...
dd: error writing '/dev/md6': No space left on device
9+0 records in
8+0 records out
8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.00190806 s, 4.4 GB/s

A message saying "error writing ... no space left" is expected, NOT an error.

Unless errors appeared, the drive is now cleared!
Because the drive is now unmountable, the array should be stopped,
and the drive removed (or reformatted).

 

And now disk 6 says it's only 16gb instead of 8tb:Screenshot2024-06-11at11_08_50AM.thumb.jpg.3545f73d042cfb9b7aab0c0ade91c3b0.jpg

 

Also there is nothing in disk 6 - the "clear-me" folder has been removed. 

Edited by WobbleBobble2
formatting
Link to comment
11 minutes ago, JorgeB said:

I don't recommend the script, even when it works looks like it's very slow, at least for most users, you can do it manually:

 

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

 

 

Shoot I already used the script on 2 drives. Any chance you can take a look at the output in my earlier post (disk 6) and help me understand what happened? How is it possible it completed so fast? Could it be because the disk was just precleared? Any way for me to confirm whether the zeroing was completed successfully other than the script messaging saying it was done correctly? 

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...