UnRaid vs Raid


Recommended Posts

Newbie here...

  • I want to know what is unraid and how it differs from raid.
  • Which is better raid or unraid
  • i understand how 1 parity drive can be used to recover data if one drive fails but if two drive fails will the data on those 2 drives are lost can we recover it using parity drive
  • how 2 parity drive works and how 2 drives can be recovered when 2 drives fail
  • and can you link some articles and videos and anything related to unraid that will help me understand more about unraid like i said i am a newbie

 

Link to comment
1 hour ago, Shehryar said:
  • I want to know what is unraid and how it differs from raid.
  • Which is better raid or unraid

Basically, Unraid uses a even-parity calculation across all the data drives to be able to reconstruct the failure of a single data drive.  See here for how it works:

 

        https://wiki.unraid.net/index.php/UnRAID_Manual_6#Parity-Protected_Array

 

Raid is faster in data writing and retrieval operations.  However if two drives fail in a RAID configuration, you lose all of the data in the array.  Also all drives must be the same size. 

 

With Unraid, writing is much slower and the read process is limited to the read speed of the data drive which contains the actual file data.  Also if two drives fail, you only lose the actual data stored on the drives which fail.  The data on the other drives can be read on any Linux system.  The capacity of the data drives can be different as long as the parity is as large or larger than the largest capacity data drive.  It is also quite easy to add capacity to any Unraid server by simply adding another data drive.  

 

1 hour ago, Shehryar said:

i understand how 1 parity drive can be used to recover data if one drive fails but if two drive fails will the data on those 2 drives are lost can we recover it using parity drive

In some cases, it is possible to recover some of the data from the failed drives depending on the nature of the failure.  But it is best not to count on it. 

 

1 hour ago, Shehryar said:

how 2 parity drive works and how 2 drives can be recovered when 2 drives fail

The second parity drive uses a Reed-Solomon encoding scheme (which is basically a very complex matrix operation) to allow reconstruction (in use with the first parity drive) to be able to rebuilt two failed drives at the same time.  If you wish to know more about Reed-Solomon, you can google it!  (You will need the equivalent of a college degree in Mathematics...) 

 

One import thing to realize is that parity protection is NOT a substitute for a reliable multiple-copy backup scheme with one of those copies being in a remote location.   Just think of having your server in a house fire, flood, hurricane or being stolen.  It is also not a replacement for a due-diligent administrator who monitors his servers and sets up all of the notification services so that he receives the earliest possible notice when any problem arises!  

  • Like 1
  • Upvote 1
Link to comment
  • 1 year later...
20 minutes ago, Walt750 said:

It has been mentioned that the read/writes are slow. How slow?

Are there some examples of when it is slow, or what causes it to be slow?

Each disk is an independent filesystem that can be read by itself on any linux. Each file exists completely on a single disk, so reading a file is at the speed of that single disk.

 

Writes are somewhat slower than single disk speed because parity is updated at the same time a disk is written. See here for more details about the 2 methods for updating parity and their tradeoffs:

 

 

Link to comment

Picking in here with a question, so I suppose enabling Turbo Write is a good practice when first setting up unRAID and you have to copy a lot of data from another system/disks?

And then to preserve power consumption and disk wear turn it back off afterwards as in most cases less data is written to the array?

Link to comment

Some folks, when setting up an unRAID server, will load the data to than array without assigning a Parity drive.  Of course, the data on the array will have no protection in the event of a disk failure but often the data is still on the original source drives so there is a backup.  After the data is moved, the Parity drive is added and parity will have to be built.

 

Moving massive amounts of data to an array is always a time consuming process.  The actual transfer rate has many factors involved.  Some of the most significant have to do with the characteristics of the hard drives themselves-- rotational speed, track-to-track movement times and data density are three prime ones.  The transfer rate of a single 25GB BluRay ISO file will be much faster than moving 10GB of 10KB data files due the overhead of the file management routines and latency caused by the head movement from the files tables to the data area.

 

Once, you have a initial loading done, you may want to consider using a SSD cache drive (or SSD cache pool) to speed file transfers to the server.  The Mover can be programed to move the files from cache at convenient time of day.  (Default is 3:00AM as I recall.)

Edited by Frank1940
  • 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.