Jump to content

Upgrading Parity Drive and Keeping Old Drive In Case of Failure


Go to solution Solved by JonathanM,

Recommended Posts

I'm upgrading my parity drive to a larger capacity and am wondering if it's possible to rebuild a data drive with the old parity in the case that a drive failed during the parity rebuild.

For example, if I swap in the new drive and start the parity rebuild and a data drive failed, could I swap in the old parity drive and a new data drive, check that the parity is valid, and then start rebuilding the failed drive?

 

The reason I ask is I'm trying to determine the best way to upgrade the parity while keeping the array protected. The best I've seen so far is to assign the new parity drive as parity #2, rebuild, then unassign parity #1. I'd rather not deal with new configs setting this up though if I can just swap them out and be safe with the old one should something catastrophic happen during rebuild.

 

Thanks for any help!

Link to comment
On 10/16/2023 at 4:05 AM, JonathanM said:

Mounting the drives normally will write some data. If you were to manually mount the drives read only it should still stay 100% valid.

So in this case I could start in maintenance mode, and then run the default mount commands Unraid uses during a normal array start, with -r flag?

Looks like for the array disks it's usually something like:

mkdir -p /mnt/disk1
mount -t xfs -o noatime,nouuid /dev/md1 /mnt/disk1

 

The caches are a bit different.

 

Think I'd be fine then mounting the disks this way, read only, and the caches normally?

Link to comment

Ah right, that's a good point. 

 

I noticed in the docs they mention:

Quote

It is recommended that you keep the old parity drives contents intact until the above procedure completes as if an array drive fails during this procedure so you cannot complete building the contents of the new parity disk, then it is possible to use the old one for recovery purposes (ask on the forum for the steps involved)

However, I can't find anything on how this could be done, especially with what you said about Unraid likely making some writes while just mounting/starting the array. 

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