Jump to content

Array Shrink - Sanity Check


Go to solution Solved by JorgeB,

Recommended Posts

Hi, I'm removing 3, 8TB drives from my array. I know two ways to do this and I'm planning to take the dangerous approach but am thinking I have a method to reduce the risk, looking for process confirmation or better options

 

Why go the dangerous route? I don't want to wait 3+ days for my 3 8TB drives to zero out. I also understand that my docker and vm services should be offline during these zero operations which means 3+ days of down time for the server. I'm guessing that as long as I know no services would write to these disks during the zero, I wouldn't actually need to take the services down...I think....

 

I have 2 parity drives and 18 data disks totaling ~120TB in btrfs

 

Shrink Process

  1. Move all data off of 3 data disks to other array disks
  2. Generate reports of all files on all data disks and save. In event of data loss, I'd at least know what was lost
  3. Offsite backups of all critical data
  4. Remove 3 empty data disks from array
  5. Unassign Parity 2 
    1. ?? This is my primary question -- if data disk fails during parity rebuild on parity1, can parity 2 be swapped back in with the original 3 data disks and new config with same config as before, check "parity is valid", rebuild failed data disk, get stable, restart process. Does this work?
  6. New Config
  7. Rebuild Parity only on Parity 1 disk
  8. Add parity 2 back, rebuild parity on parity 2

 

Remaining risks

  • If parity1 disk fails during parity 2 rebuild, I would be left without a parity for a bit until parity 2 rebuild finishes
    • Mitigation: Smart reports prior to rebuilds to minimize risk. Would an extended self test prior help or is SMART sufficient?
    • Mitigation: Parity drives are NAS drives that should have a very low fail rate
Link to comment
  • Solution
1 hour ago, geeksheikh said:

?? This is my primary question -- if data disk fails during parity rebuild on parity1, can parity 2 be swapped back in with the original 3 data disks and new config with same config as before, check "parity is valid", rebuild failed data disk, get stable, restart process. Does this work?

Yes, but only if you do the parity sync in maintenance mode.

Link to comment
  • 2 weeks later...

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