Jump to content

How does UNRAID handle file writes while data rebuilding?


NLS

Recommended Posts

To be honest, I have already tried to ignore possible risks in the yearS I use UNRAID and use my server more or less normally.
BUT I would like to have some expert (or official) feedback on how UNRAID handles a file write (or many files write), while data are rebuilding on a disk.

And before people saying that writing usually involves the cache, because it is not always the case... (a) people without cache, (b) shares that are "no cache", (c) file deletes (that also affect the contents of the disk).

More specifically, how does it handle writing:
- to a functional HD in disk blocks that the data rebuild has already passed over.
- to a functional HD in disk blocks that the data rebuild hasn't yet passed over.
- to the emulated (and data reconstructing) HD in disk blocks that the data rebuild has already passed over.

- to the emulated (and data reconstructing) HD in disk blocks that the data rebuild hasn't yet passed over.

 

...and the rare case that the filesystem tries to use blocks on functional or emulated HD... DURING the passing of the rebuild from those very disk blocks.

I want to assume that UNRAID handles all those cases gracefully somehow. But is it the case or someone plays with fire when writing to an array while rebuilding?

 

Edited by NLS
Link to comment

If the rebuild process has passed the point for the sector then both the drive and parity are updated accordingly.   If the rebuild has not reached that point then parity is update parity to apply the change later.    From a user perspective the system acts all the time as though you were writing to the disk in a normal manner.  The only downside to writing to the array while is a rebuild is in progress is that both the write and the rebuild adversely affect each others performance while they are running at the same time.

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