Jump to content

[6.12.6] Questions about rebuilding and swapping/adding/removing disks while holding dual parity


Recommended Posts

Hello everyone,

 

I have some questions which come up and cant seem to find a clear answere, all regarding, parity, swapping, adding and removing drives. I will describe it in steps what I'm doing or planning, to have a story to the questions.

To no surprise, I need more space. I have been looking out for good hdd prices and haven't found anything of interest over the past year or so. I have price alerts set, but prices in my region price don't seem to drop. Anyways, I got one drive to swap in the parity and temporary use it as a additional drive, too increase storage for now.

 

0. Current Configuration

I use dual parity and while exchange disks I want to hold the parity valid.

Original Configuration;
Parity1; 8TB
Parity2; 8TB
Disk1;   4TB
Disk2;   4TB
Disk3;   8TB
Disk4;   8TB
Disk5;   8TB
Disk6;   8TB

 

1. Swapping parity

I got a new drive which is the now my biggest drive, so it has to become the parity drive. (precleared the disk and zerod)

This is easy to do by unassigning the old drive and assigning the new drive, where it begins to rebuild parity1 and parity2 stay valid. So, I assign a zeroed disk as parity1, which is basically a XOR, right? Well, during the rebuild it passes the 4TB point, where those disks spin down and it continues to rebuilt. It passes the 8TB point and those disks spin down. But now it is still continues writing to rebuild the parity for hours, but why? Because we already know the 8TB left of the 16TB drive is all zeros, because we have done the pre-read, zero and post-read. There are no other disks, so its zero. and XOR 0 and 0, stays zero.

New Configuration 1;
Parity1; 16TB
Parity2; 8TB
Disk1;   4TB
Disk2;   4TB
Disk3;   8TB
Disk4;   8TB
Disk5;   8TB
Disk6;   8TB

 

2. Adding a disk

As I mentioned, I need space and now have a 8TB drive left. I will also preclear/zero this drive and add it to the array as Disk7. I have not done this before and most information is regarding a single parity drive. But I assume a assigning a additional disk to the array, which is zerod, parity1 based on XOR stays valid. I'm not sure about parity2, it is Reed-Solomon based but idk does it need to rebuild?

New Configuration 2;
Parity1; 16TB
Parity2; 8TB
Disk1;   4TB
Disk2;   4TB
Disk3;   8TB
Disk4;   8TB
Disk5;   8TB
Disk6;   8TB
Disk7;	 8TB

 

3. Future

As I have now added a 16TB drive, I have the intention to eventually add/swap in more big drives. As well as removing Disk7 from the array, to a total of 8 array drives. I want to remove Disk7 again, because it would be the only drive which isn't mounted on dampers and to reduce noise and power usage from the additional drive.
As described before swapping a disk in, is assigning the new drive an let it rebuild. But now removing Disk7 and I'm specifically looking to do this without breaking parity1, because I think parity2 will always need a rebuild. So I need to remove all the data off to the other disks and then zero the drive so parity with XOR stays valid. Has anyone actually done this https://docs.unraid.net/unraid-os/manual/storage-management/#alternative-method

Possible Future Configuration;
Parity1; 16TB
Parity2; 16TB
Disk1;   16TB
Disk2;   16TB
Disk3;   8TB
Disk4;   8TB
Disk5;   8TB
Disk6;   8TB
Edited by ZekerPixels
Link to comment

I have just swapped the parity drive, done rebuilding and check. But I needed more space, the original plan was to add a Disk7. I have decided to not to a Disk7, just to be safe of potential issues with removing Disk7 at a later point. So, with the recent addition of the 16TB drive, I can get 4TB of additional storage on the array using the drive I have now. I just have to expedite the purchase of another drive to exchange.

 

Plan for now adding 4TB to the array;
Parity1; 16TB
Parity2; 8TB
Disk1;   4TB
Disk2;   8TB
Disk3;   8TB
Disk4;   8TB
Disk5;   8TB
Disk6;   8TB

 

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