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.

Issue when removing a drive

Featured Replies

Hi

 

I want to remove a drive but are having some isuses here.

I follow this procedure ( https://wiki.lime-technology.com/Shrink_array ): But have some issues along the way. Can someone help me with point nr 15?

Procedure
  1. Make sure that the drive you are removing has been removed from any inclusions or exclusions for all shares, including in the global share settings.
  2. Make sure the array is started, with the drive assigned and mounted.
  3. Make sure you have a copy of your array assignments, especially the parity drive. You may need this list if the "Retain current configuration" option doesn't work correctly.
  4. It is highly recommended to turn on reconstruct write, as the write method (sometimes called 'Turbo write'). With it on, the script can run 2 to 3 times as fast, saving hours!

    In Settings -> Disk Settings, change Tunable (md_write_method) to reconstruct write.

  5. Make sure ALL data has been copied off the drive; drive MUST be completely empty for the clearing script to work.
  6. Double check that there are no files or folders left on the drive.

    Note: one quick way to clean a drive is reformat it! (once you're sure nothing of importance is left of course!)

  7. Create a single folder on the drive with the name clear-me - exactly 7 lowercase letters and one hyphen
  8. Run the clear an array drive script from the User Scripts plugin (or run it standalone, at a command prompt). Have not cleared the drive as I dont care about the data on it + the procedure to do it seemed way to advanced for me!
  9. If you prepared the drive correctly, it will completely and safely zero out the drive. If you didn't prepare the drive correctly, the script will refuse to run, in order to avoid any chance of data loss.
    • If the script refuses to run, indicating it did not find a marked and empty drive, then very likely there are still files on your drive. Check for hidden files. ALL files must be removed!
    • Clearing takes a loooong time! Progress info will be displayed, in 6.2 or later. Prior to 6.2, nothing will show until it finishes.
    • If running in User Scripts, the browser tab will hang for the entire clearing process.
    • While the script is running, the Main screen may show invalid numbers for the drive, ignore them. Important! Do not try to access the drive, at all!
  10. When the clearing is complete, stop the array
  11. Go to Tools then New Config
  12. Click on the Retain current configuration box (says None at first), click on the box for All, then click on close
  13. Click on the box for Yes I want to do this, then click Apply then Done
  14. Return to the Main page, and check all assignments. If any are missing, correct them. Unassign the drive(s) you are removing. Double check all of the assignments, especially the parity drive(s)!
  15. Click the check box for Parity is already valid, make sure it is checked! Where the heck is this check box??
  16. Start the array! Click the Start button then the Proceed button (on the warning popup that will pop up)
  17. Parity should still be valid, however it's highly recommended to do a Parity Check

Edited by mrvilla

  • Community Expert
13 minutes ago, mrvilla said:

Have not cleared the drive as I dont care about the data on it + the procedure to do it seemed way to advanced for me!

The procedure only works if the drive is cleared, or else parity won't be valid when you remove it.

  • Author
1 minute ago, johnnie.black said:

The procedure only works if the drive is cleared, or else parity won't be valid when you remove it.

Ok, so since the procedure is to advanced I wil never be able to remove the drive?

Cant i just stop the array remove it and start the aray again?

 

Why all the hazzle?

  • Author
2 minutes ago, johnnie.black said:

Didn't you see method 1, it's much simpler, though it requires a parity sync:

 

https://wiki.lime-technology.com/Shrink_array#The_.22Remove_Drives_Then_Rebuild_Parity.22_Method

 

I saw this method but got the impression that it was not suited for me as I did not see the point of rebuilding the parity as all data is already stored on the only one drive.

Not sure why i discarded it so fast. Will try this and see if it works out.

 

Thanks

  • Community Expert

You only have those 2 options, remove the drive without clearing and re-sync parity or clear the drive before removing to maintain parity, due to how parity works there's no other possibility.

7 hours ago, mrvilla said:

 

I saw this method but got the impression that it was not suited for me as I did not see the point of rebuilding the parity as all data is already stored on the only one drive.

Not sure why i discarded it so fast. Will try this and see if it works out.

 

Thanks

The contents of the parity drive is the result of a mathematical operation on the data on the data drives.

 

You either have to invalidate and rebuild the parity drives, or perform a mathematical operation on the data drive to make the data drive a null-contributor to the parity.

 

Rewriting the old data drive into a null-contributor means you maintain parity, allowing you to recover from a disk failure.

Going the simpler route of just unplugging a data drive and rebuild the parity means you are unprotected until the parity has been rebuilt.

 

It's up to you if you want simplicity or security.

  • Author

I understand.

 

I have now followed the first procedure with rebuilding from the parity for the disk that were left, but now I can not access the server....

WIll try again later to see what caused this. I would expect the server to run even though I would do something wrong.....

 

EDIT: No worries. It was the post that stopped the startup. Running fine now.

Edited by mrvilla

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.