Jump to content

Replacing Entire Drive Array


Go to solution Solved by itimpi,

Recommended Posts

Assuming that your NAS is full and you can't add any new empty drives you're only real option is to move as much data as you can off 1 or 2 of your existing drives onto the other drives, consolodate to as few existing drives that you can.

 

Then add as many new drives that you can replacing the ones you've emptied off.

 

Then repeat that process with the remaining 2TB drives, moving that data to the new empty drives.

 

It's a bit of a hassle, but it's just about the only way to do it.

 

You can use the unblance plugin to simplify the process a little bit to consolodate data.

 

Link to comment

Replace one of the 2TB drives with a 4TB drive.  Allow the drive to be rebuilt from parity.

Repeat, until all 3 4TB drives have been installed.

 

Then follow the Shrink Array procedure from the Unraid docs.  There is a couple ways to do this, but in your case (small capacity drives) the easiest would be to move the data on the drives to be removed to the new 4TB drives, remove/uninstall the drives from the array, and rebuild parity.

Link to comment

Thanks! I like the remove, replace and rebuild idea. 

 

Some of my current drives are still Reiser FS. I would like to change them to XFS during this swap. If the removed 2TB RFS drive is replaced with a 4TB drive and rebuilt, it would retain the file system, correct? Any way around this? Or will this be two independent processes?

 

Now that I think about it, I only have two RFS drives. The other three are XFS so I guess I could swap the 2TB XFS drives for 4TB then move the data off the RFS drives to them. Is that doable?

 

Sorry for all the questions and thanks for the help!

 

-Robin

Link to comment

I don't have first hand experience with switching from ReiserFS to XFS, I came to Unraid after XFS was the default.  I did recently upgrade my 6TB drives to 16TB, and shrank  my array.  So confident in my answers for that part.

 

My feeling is that as long as you change the Disk Setting File system type: from the default "auto" to "XFS" before formatting the drive (checking the format box at starting the array, after assigning the new drive) it *should* format to XFS and rebuild.  (Data is data).  But I will defer to @JorgeB or one of the true Unraid gurus to confirm if I'm correct.

 

Of course, swapping one XFS drive for another should definitely not be an issue.  I would still manually set File system type: to XFS anyway.  That's my common practice.

Edited by ConnerVT
speeling
Link to comment
36 minutes ago, ConnerVT said:

My feeling is that as long as you change the Disk Setting File system type: from the default "auto" to "XFS" before formatting the drive (checking the format box at starting the array, after assigning the new drive) it *should* format to XFS and rebuild.  (Data is data).

That won't work, rebuild from parity can only rebuild the original filesystem, if you format the disk with a different one all data there will be deleted and parity updated to reflect that.

  • Thanks 1
Link to comment

One last question. I have precleared all three of my 4TB drives so I am ready to make the swaps. I am going to remove one 2TB XFS drive and replace it with a precleared 4TB drive and then rebuild the array. The question is, when the rebuild is done, will the 4TB drive have 4TB of storage or 2TB since the old one was that size? Does the rebuild replicate the capacity also?

 

Thanks again,

Robin

Link to comment
  • Solution
3 minutes ago, gitbox said:

One last question. I have precleared all three of my 4TB drives so I am ready to make the swaps. I am going to remove one 2TB XFS drive and replace it with a precleared 4TB drive and then rebuild the array. The question is, when the rebuild is done, will the 4TB drive have 4TB of storage or 2TB since the old one was that size? Does the rebuild replicate the capacity also?

 

Thanks again,

Robin

 

The rebuild starts by replicating exactly the existing disk contents, and then when it completes that stage the file system is expanded to fill the whole disk.  It is possible that you may have to reboot to get the file system expansion to take place although in theory the reboot should not be necessary.

  • Like 1
Link to comment

Thanks itimipi. It did exactly as you said.

 

I now have two of the three 2TB XFS drives swapped and rebuilt with the 4TB drives - working on the third. The last step will be moving all the data (2.5TB) from the two ReiserFS drives to the three 4TB XFS drives. I plan on using the unBALANCE plugin unless there is a better way.

 

Yay! I'll finally be rid of ReiserFS.

 

Thanks to all who replied,

Robin

  • Like 1
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...