Jump to content

Read Errors While Rebuilding to Upgrade a Disk


Recommended Posts

Being this is new to me. Looks like the system runs in raid 5, because I was trying to upgrade disk 1 with a bigger drive I had disk 5 fail. I put back disk 1 and it repaired missing files. When I replaced disk 5 with new disk I have formatted it. Does this mean that it is no longer raid 5 and that disk 5 is separate for the array?  Or I'm safe from anther drive failure? 

Link to comment

Unraid is NOT a traditional RAID. Each disk in the array is an independent filesystem that can be read all by itself on any Linux. There is no striping. The parity disk is separate from this and contains none of your data, it just contains parity bits that allows the contents of a missing disk to be calculated from the contents of all the other disks.

 

https://docs.unraid.net/unraid-os/manual/what-is-unraid/#parity-protected-array

 

Disk5 is part of the array, but since you formatted it in the array, parity is in sync with that newly formatted disk. So, there is no way to recover the previous files from the parity calculation, since parity agrees the disk is empty.

 

You are safe from another drive failure, but if you make the mistake of formatting a replacement in the array, it will be an empty disk.

 

You must never format a disk in the array that has data you want to keep. Even if the disk is disabled. Parity emulates a disabled disk, and rebuild will rebuild the emulated disk.

 

The correct approach to an unmountable filesystem is to repair the filesystem as explained at check filesystem. If the disk is disabled and unmountable, preferably you would repair the filesystem on the emulated disk before rebuilding, since rebuild will result in whatever contents the emulated disk has.

 

Link to comment

Was going through the files and I see everything is there. The only thing I see on the array is that disk 1 and disk 2 has more gb used and disk 5 has only 27.9gb. Looks like that the old data from disk 5 went on disk 1 and 2 when disk 5 was formatted. 

 

Should I do a parity check every week? and add a second parity disk for the extra protection. This would give me the safety of 2 drive failures (including parity drives) ?

 

Thank you for the clarification 

Screenshot 2023-12-30 133502.png

Link to comment
4 minutes ago, nico44 said:

Looks like that the old data from disk 5 went on disk 1 and 2 when disk 5 was formatted. 

The system will never do that for you.

 

4 minutes ago, nico44 said:

Should I do a parity check every week? and add a second parity disk for the extra protection. This would give me the safety of 2 drive failures (including parity drives) ?

Monthly suffices.

 

Single or dual parity drives are entirely up to you and your own level of confidence.

 

Actual drive failures are exceedingly rare.  And additionally, a URE does not constitute a drive failure in Unraid (rightfully so) unlike a traditional RAID system.  

Link to comment
35 minutes ago, nico44 said:

The only thing I see on the array is that disk 1 and disk 2 has more gb used and disk 5 has only 27.9gb. Looks like that the old data from disk 5 went on disk 1 and 2 when disk 5 was formatted. 

You must have written more to disk1 and disk2 than you remember. And if you aren't missing files that were on disk5 before you formatted it, then disk5 must not have had any files on it before.

Link to comment
13 minutes ago, trurl said:

You must have written more to disk1 and disk2 than you remember. And if you aren't missing files that were on disk5 before you formatted it, then disk5 must not have had any files on it before.

I'm 100% sure that disk 5 went on disk 1 and 2. Disk 5 had about 400 gb before. 

 

How do I know that the array are working properly ?

 

Thanks for all the help 

 

Link to comment
1 hour ago, nico44 said:

I'm 100% sure that disk 5 went on disk 1 and 2. Disk 5 had about 400 gb before. 

I'm 100% sure that nothing built-in to Unraid would have done that. We have been using Unraid for more than 10 years and have 10s of thousands of posts on this forum helping people. And lots of other people with a lot of experience would certainly agree that it just doesn't work like that.

Link to comment

Do you have Notifications setup to alert you by email or other agent as soon as a problem is detected?

 

You should install Fix Common Problems plugin.

 

Are there any SMART warnings 👎 for any of your disks on the Dashboard page?

 

A parity check would exercise all of your array disks and their connections.

Link to comment
43 minutes ago, trurl said:

Do you have Notifications setup to alert you by email or other agent as soon as a problem is detected?

 

You should install Fix Common Problems plugin.

 

Are there any SMART warnings 👎 for any of your disks on the Dashboard page?

 

A parity check would exercise all of your array disks and their connections.

 

I will set it up

 

Just installed Fix Common problems - Macvlan and Bridging has been found . In Red

 

Nothing on the SMART warnings from the Dashboard page

 

Parity check will be done soon

 

 

 

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