How RAID 5 Works : Reconstruction Rebuilding of data,degraded mode and Redundancy

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024

ความคิดเห็น • 121

  • @sachinamarapur
    @sachinamarapur 5 ปีที่แล้ว +9

    I think what you have explained works for RAID 3 & 4 (theoritically , i.e., as they are not used in the industry level ) .But in case of RAID 5 - there will be no DEDICATED PARITY DISK , the parity will be distributed among all the disks used in the RAID .

  • @vivekanandsarikonda6074
    @vivekanandsarikonda6074 3 ปีที่แล้ว +3

    I have seen a lot of videos and read different explanations available on web. Never was able to understand parity and the reconstruction of Data.. Its all clear now.. And I thank you so much. The best way to explain both Parity and how RAID works..

  • @itsmith32
    @itsmith32 6 หลายเดือนก่อน

    Carlos, thank you so much for your brilliant explanation! It is definetely worth 12 minutes for those, who want to know about data parity principle. God bless you for sharing your knowledge in such simple way!

  • @777evd
    @777evd 9 ปีที่แล้ว +18

    Thank you so much. This is the clearest explanation I've found. Simple and to the point.

    • @cashe18
      @cashe18  9 ปีที่แล้ว

      +777evd That was what I was going for. Thank you for watching

  • @mutangbaru
    @mutangbaru 4 ปีที่แล้ว +1

    oh good Lord! thank you for your explanation!!! i don't know how many tabs of TH-cam video, website reading i had open opened just to get a basic explanation of raid 5. thank you sir.

  • @matttilley5669
    @matttilley5669 6 ปีที่แล้ว

    In the context of a RAID array, I had not found anything explaining the concept of "parity" up to this point. Your video not only cleared up that mystery for me, but now...I also have a relatively firm grasp of how it works. Thanks so much for taking the time to share this!!!

  • @topsofwow
    @topsofwow 3 ปีที่แล้ว

    Love this. Not only explains how it works, but why it works.

  • @danishbegmirza
    @danishbegmirza 5 ปีที่แล้ว +3

    That was an AMAZING video. I've not seen a simpler explanation. Thank you for sharing. You're GREAT!

    • @cashe18
      @cashe18  4 ปีที่แล้ว

      I'm glad it help......

  • @hangoszto
    @hangoszto 6 ปีที่แล้ว +1

    Great refreshment video, thank you! I was just rebuilding the RAID in one of our servers and did not remember how it's done exactly. You just learn so much thing in IT all dey every day.

  • @imbwildrd3693
    @imbwildrd3693 5 ปีที่แล้ว +1

    Thanks for providing such a simple explanation of parity.

    • @cashe18
      @cashe18  4 ปีที่แล้ว

      Many devices use this concept for error correction..

  • @naamkebrahmin
    @naamkebrahmin 7 ปีที่แล้ว

    i saw lot of videos on this topic but first time i saw a clear explaining video on this topic .what a great explaination ! .............thankyou very very much

  • @kedarigowri
    @kedarigowri 6 ปีที่แล้ว +3

    Thanks for explaining in such a simple way.

  • @Bandicoot803
    @Bandicoot803 6 ปีที่แล้ว

    That's the best explanation of XAND ( Exclusive-AND ), very simple and easy as pie to follow. Reminds me of the days where I learned to program a PLC for two years.

  • @ivanocampo4374
    @ivanocampo4374 6 ปีที่แล้ว +1

    Excellent !!!!!!! clearest explanation even 2 years later!!!

  • @Aaron-sy5yx
    @Aaron-sy5yx 6 ปีที่แล้ว +1

    Great explanation. First person to explain it so I could understand it

  • @snaveen4355
    @snaveen4355 7 ปีที่แล้ว +3

    very easy way of explanation to understand even for beginners

    • @cashe18
      @cashe18  6 ปีที่แล้ว

      Thank you for watching

  • @meetingmohit
    @meetingmohit 6 ปีที่แล้ว +1

    Very well described in a simple way...Thank you

  • @Avineshutube
    @Avineshutube 4 ปีที่แล้ว

    Excellent explanation, you have presented it with the most simplistic approach . Appreciate it. Thanks !!

  • @hawaiiansoulrebel
    @hawaiiansoulrebel 3 ปีที่แล้ว

    Best RAID 5 explanation EVER!! Thank you!

  • @thatanimetamilian5356
    @thatanimetamilian5356 2 ปีที่แล้ว +1

    Thank you very much sir, this was very helpful.

  • @ezelder
    @ezelder 6 ปีที่แล้ว +18

    You can NEVER lose more than one drive and not lose data on RAID 5

    • @kabookeo
      @kabookeo 6 ปีที่แล้ว +1

      I caught that too!

    • @TuhinChakravorty
      @TuhinChakravorty 6 ปีที่แล้ว +2

      True, it is Raid 6 where the concept is same as Raid 5 but with 2-bit parity.

    • @cashe18
      @cashe18  6 ปีที่แล้ว +8

      I worked on a 16 bay raid 5 when it was new. It allowed 3 dead drives. Oddly I find this was NOT A common norm and you guys are correct. You can not lose more then 1 without an issue.. thanks guys for pointing it out

    • @Jon-Jon309
      @Jon-Jon309 5 ปีที่แล้ว

      You can actually manually get some data back by JUST having a healthy parity drive but it is a VERY long and tedious task. I don't know how to do it but I worked with an admin that was able to get some customer data back over the course of multiple nights.

    • @shreyasmathuria732
      @shreyasmathuria732 4 ปีที่แล้ว

      How is that possible? More than one HDD failure has occurred on the server.

  • @sanchkedellowar2189
    @sanchkedellowar2189 8 ปีที่แล้ว +1

    Thanks a ton. Other videos explained the rebuild process along the lines of "a magical fairy comes and spreads healing dust on your computer". You actually got to the science.

    • @cashe18
      @cashe18  8 ปีที่แล้ว

      I try to make the complicated into simple English. This is the Basic of RAID-5. Which is why 1/3 of your space is used for parity storage.

  • @imran888khan
    @imran888khan 9 ปีที่แล้ว +3

    Clear and concise. That helped a lot. Thank you.

    • @cashe18
      @cashe18  9 ปีที่แล้ว

      +Imran Ahmed Khan I tried to explain it in the easiest fashion possible. Thank you for watching.

  • @FRYEGS6
    @FRYEGS6 5 ปีที่แล้ว

    Thanks a million, SIR... I got the Grand Fairy and magical pixie dust rebuilding explanation as well from other sources. I looked for an hour on this (MAGICAL PARITY fixer). I got the understanding of Parity from the ECC SDRAM on the DIMM modules in the slots, and it looks like the same line of logic applies here to the RAID configuration on hard drives as well. Thanks for the Graphical explanation, now I can regain a few hours of sleep. If we ever cross paths, Dinner is on me.

    • @cashe18
      @cashe18  4 ปีที่แล้ว

      What really happens is of course way more complicated but this is a simple explanation of concept. Glad it HELP!!! I live in South Florida, I'll take that dinner... THANKS

  • @shreyasmathuria732
    @shreyasmathuria732 4 ปีที่แล้ว

    Very nice & simple explanation. thanks

  • @dipan246
    @dipan246 4 ปีที่แล้ว

    Super duper explanation. Thank you.

  • @Lardzor
    @Lardzor 6 ปีที่แล้ว +7

    I believe RAID 1 with a hardware controller writes to both drives simultaneously and does not increase access times over non-RAID.

    • @biigsmokee
      @biigsmokee 6 ปีที่แล้ว +2

      Yeah I was thinking that.. and it can read from both so 2x faster read

    • @XouZ88
      @XouZ88 2 ปีที่แล้ว

      @@biigsmokee But the access time is still just as slow as one drive. It still needs to spin up the discs before it can access the data, but once they are spinning they can take data from multiple drives which increases the speed of reading, but writing is as still as slow as one drive. RAID 0 increase both write and read speed, but they still doesn't increase access time as they still need to spin up the discs first. SSD will still access data faster because it doesn't have to spin up any discs.

  • @sunilanaokar8835
    @sunilanaokar8835 7 ปีที่แล้ว

    Thank you, you have explained in very simple way.

  • @shamsahdahmad6740
    @shamsahdahmad6740 3 ปีที่แล้ว +1

    Thanks sir, it is very helpful for me.

    • @cashe18
      @cashe18  3 ปีที่แล้ว

      Glad to hear that

  • @hackmajor
    @hackmajor 8 ปีที่แล้ว +2

    Thank you for explaining this to me. It really helped me understand how RAID 5 works. :-D

    • @cashe18
      @cashe18  8 ปีที่แล้ว

      Glad it helped.. Thank you for watching

  • @sarfarazansari501
    @sarfarazansari501 4 ปีที่แล้ว

    love from India.. thank you very much

  • @TabooPc
    @TabooPc 3 ปีที่แล้ว

    Best parity video

  • @blackstonehamilton
    @blackstonehamilton 6 ปีที่แล้ว

    For any newbies, the explanation given in this video is only a basic explanation. First of all, digital bytes (8 bits) are read just like decimal numbers, from right to left not right to left. Bytes are base-2 as opposed to base-10 (decimal). Therefore, the bits 00 = 0, 01 = 1 and 10 = 2. The byte given as an example in this video is the decimal number 228. The other key point is that with RAID 5, the data and the parity bytes are written across all available drives. This example tends to imply that the 1/2 of the byte is always written to DISK 1, the other 1/2 of the byte is written to DISK 2, and the entire parity byte is written to DISK 3. But what if you have a 6 disc array? The parity data doesn't just get written to the last drive in the array or every third drive. In reality, the underlying data and the parity data are written across ALL available drives, so the process of rebuilding the array has to look across all surviving disks to rebuild the failed drive. The controller has to rebuild the matrix of underlying data and the parity data.

  • @naveensharma1398
    @naveensharma1398 5 ปีที่แล้ว

    Loved this video...... Concept is clear now👍

  • @TheAuthor40
    @TheAuthor40 7 ปีที่แล้ว

    Explained very good. Thank's a lot.

  • @abhishekjoshi8441
    @abhishekjoshi8441 5 ปีที่แล้ว

    Thank you. it is very easy to understand

  • @seckinlocva
    @seckinlocva 5 ปีที่แล้ว +1

    Parity calculate with XOR "en.wikipedia.org/wiki/Parity_drive". You use XNOR for calculate. But thank you, i understand parity with your video. Regards :)

  • @frankdamont
    @frankdamont 3 ปีที่แล้ว +1

    thank you so much...

  • @fewselage
    @fewselage 4 ปีที่แล้ว

    Thank you very much!

  • @randomworld1
    @randomworld1 8 ปีที่แล้ว +1

    Great video man.

    • @cashe18
      @cashe18  8 ปีที่แล้ว

      Thank you.. I hope it helped.

  • @TuhinChakravorty
    @TuhinChakravorty 6 ปีที่แล้ว +1

    It's well explained.

  • @gtchickadee1
    @gtchickadee1 5 ปีที่แล้ว +2

    Your video explanation was good, until the XOR calculation point... When you have two similar values like 1 and 1 or 0 and 0, the output is 0. When you have not matching values, like 1 and 0 or 0 and 1, the output is 1. In your video, you had it reversed...

    • @cashe18
      @cashe18  5 ปีที่แล้ว

      But my explanation is only a concept of operation. It's not exactly how it works. I could do the XOR but then I have to do the grouping, the sector, the data split when you have 4 or more drives. But thanks for the feedback

  • @curiel8174
    @curiel8174 6 ปีที่แล้ว

    Best explanation in youtube xD Thanks

  • @yaodongyan4449
    @yaodongyan4449 5 ปีที่แล้ว

    THX bro you truly helped me

  • @annanmalla9995
    @annanmalla9995 6 ปีที่แล้ว

    awesome explanation make video on other rsid likee 6 ,10 etc

  • @octavian9756
    @octavian9756 2 ปีที่แล้ว

    Holy f ing s*** sir you are gold! Thanks

  • @Steinninn
    @Steinninn 2 ปีที่แล้ว

    That's great, but how does that work with 4 disks? How can I store information from 3 drives on one disk?

    • @cashe18
      @cashe18  ปีที่แล้ว

      What I showed was a really REALLY basic explanation. But RAID-5 spreads the data and parity bit all over the place.

  • @zvit
    @zvit 3 ปีที่แล้ว

    How would a RAID-5 work when you have 4 drives? Lets' take the first bit for example DRIVE-1: 1, DRIVE-2: 0 DRIVE-3: 1. So the three drives don't match. In this case, how would parity know how to reconstruct the data? "0" means that the three drives don't match but how would you know if to reconstruct with 100, 101, 110, 011, 010, 001, etc... there are many options for the mismatched bits.

    • @cashe18
      @cashe18  3 ปีที่แล้ว

      Well, this example is VERY simplified. But reality is that the data is split among all the drives.

  • @Fancy_PotHead
    @Fancy_PotHead 2 ปีที่แล้ว +1

    Is is this a simplification or really how it works ?

    • @cashe18
      @cashe18  2 ปีที่แล้ว +1

      It is a very simplified explanation. There is alot of math and tables stored on each disk. But the basic BASIC way of how raid 5 work IS this way. Parts of data on different disks and a parity bit on disk for error corrections and data rebuilding.

  • @OsbertMagara
    @OsbertMagara 5 ปีที่แล้ว +1

    Doesn't RAID 5 use XOR to calculate parity??

    • @cashe18
      @cashe18  5 ปีที่แล้ว

      I have read some systems do but using xor would invert the example. But reality us that is only a very simplified example. Raid is way more complex to track it's changes and regeneration status, ect.

    • @gtchickadee1
      @gtchickadee1 5 ปีที่แล้ว

      @@cashe18 I am just doing a class on storage now, and the teacher is having us calculate the parity of RAID 5 with XOR. Your video was good, but confused me so I had to double check.

  • @yacoub7668
    @yacoub7668 5 ปีที่แล้ว +1

    hi, thnx for the video, but i want to know how it works if we have mere than 3 hard drives pllllllllllz i need the expplaination soon i you can

  • @sime3250
    @sime3250 8 ปีที่แล้ว

    Thats so genius and simple ...

    • @cashe18
      @cashe18  8 ปีที่แล้ว +1

      thank you

  • @RWDtech
    @RWDtech 4 ปีที่แล้ว

    How does it know whether the matching numbers are two 0's matching or two 1's matching? Did I miss something here?

    • @cashe18
      @cashe18  4 ปีที่แล้ว +1

      Thank you for your question. To make this simple we will only be talking about 2 bits of data. Let's call them A & B. And let's call the parity bit X. So let's imagine data A and B are 0. Parity bit will ask if the 2 bits dont match. Since they do match then parity / X = 0. So A=0 B=0 X=0. If I loss Data A then I can rebuilt it because B=0 and the X answer tells me the other data bit MATCHED. so B data MATCHED A DATA. So the missing answer is 0....
      if B=1 and the parity/X=0 which means the data matched then A would have equalled 1.
      If you parity/X bit=1 then that means that the data bits DO NOT MATCH.. So if A=1 and you are missing B then B would be 0 because our parity told us that the bits did not match.
      NOW let's say it is the parity bit that got damaged, then we still have our data in place, just the protection is gone. So in rebuilt, the parity is rewritten based on the data bits if they don't match (1) or match (0).
      This is a very basic explanation where what is happening is way more complicated. Bit A goes to drive 1, Bit B goes to drive 2, and Bit X goes to drive 3. If 1 drive fails, we can rebuilt that missing part based on what the other 2 drives state. I hope this helped

    • @RWDtech
      @RWDtech 4 ปีที่แล้ว

      @@cashe18 thanks for the response! This is some pretty complicated stuff, it's amazing what humans have been able to accomplish. That's why smart people make the big bucks!

  • @ryogesh1104
    @ryogesh1104 2 ปีที่แล้ว

    Can u please explain how data is going to distribute in disk when the raid5 is in degraded State?

    • @cashe18
      @cashe18  ปีที่แล้ว +1

      Well, the video is a very simplified idea of how it works BUT the data is constructed via the raid card. BUT in actual working state, if the unit is in degraded mode, distribute is actually limited. hence the slow performance in degraded status.

  • @tonyjohnson.photography
    @tonyjohnson.photography 7 ปีที่แล้ว

    Good Explanation

  • @satyavenaktesh5674
    @satyavenaktesh5674 6 ปีที่แล้ว

    if suppose i'm using Raid 5 with 3 hard disk, now my one of my hard disk is full how to replace new one....

  • @rinoitaly
    @rinoitaly 6 ปีที่แล้ว

    Molte grazie amico, ora ho capito tutto!

    • @cashe18
      @cashe18  6 ปีที่แล้ว

      Don't know what you said but thanks for watching.

  • @sharathkamath89
    @sharathkamath89 8 ปีที่แล้ว

    thanks u r awesome, aditya masurkar.!

    • @cashe18
      @cashe18  8 ปีที่แล้ว

      Thank you for watching. hope it helped.

  • @jadanpham3164
    @jadanpham3164 6 ปีที่แล้ว

    Awesome explanation. My 3rd drive failed, but Windows refused to launch. Why is that?

    • @dimedrey
      @dimedrey 6 ปีที่แล้ว

      Probably a reading error.

  • @hue9129
    @hue9129 4 ปีที่แล้ว

    Thanks for this it has helped a lot I was really struggling to understand it.
    So when it goes to write the next byte would it then record the parity data on drive 1 instead so drive 2 and drive 3 become the main drives?

    • @cashe18
      @cashe18  4 ปีที่แล้ว

      This is just a really simple explanation of the function but the data is actually spread all over.

  • @Theguficek
    @Theguficek 4 ปีที่แล้ว

    Wonderful!

  • @petervansan1054
    @petervansan1054 4 ปีที่แล้ว

    wrong, parity would be stored as exclusive or, so negation of what you calculated because it's faster

    • @cashe18
      @cashe18  4 ปีที่แล้ว

      If you want to be more detail, yes. But this also just a layman's example. We know it's way more technical then this. Thanks for your feedback

  • @pankajbandivadekar6659
    @pankajbandivadekar6659 5 ปีที่แล้ว

    Excellent

  • @KMGAthletics
    @KMGAthletics 7 ปีที่แล้ว +1

    Nice. Thanks

    • @cashe18
      @cashe18  6 ปีที่แล้ว

      Thanks for watching

  • @ujjalsamanta5841
    @ujjalsamanta5841 6 ปีที่แล้ว

    thank you sir

  • @danmetzler6258
    @danmetzler6258 8 ปีที่แล้ว

    Are you sure there's a speed penalty with RAID 1 versus a single disk? I'm pretty sure there isn't. Even if there is, it's certainly nowhere near as extreme as you claim in the video. And with the right controls, reads are actually faster with RAID 1 than with a single disk.

    • @cashe18
      @cashe18  8 ปีที่แล้ว

      This is GREAT question. RAID 5 typically was on server board which used HARDWARE Raid cards. These cards like the adaptec brand would actually communicate to all the drives at the same time. leaving the Hardware card as the center point of data in and out of the motherboard. and it's based on the throughput of the drive. As an example imagine each drive can transfer 1MB of data a second. Card reads 4 drives for 1 sec for a total of 4MB of data accessed - 1/3 which is parity error check data. That is 2.66MB of usable data in 1 sec where a mirror would MAX at 1MB in the same 1 sec.
      Here is the other catch, since a mirror setup is very simple. Many people now a days most doesn't use RAID hardware cards to do mirrors. doing what is called a Soft raid mirror. Motherboard can usually only access 1 drive channel at a time. So reading and writing to 2 drives takes double the work. 50% overhead. When using VERY fast matching drives, it's hard to notices. So even with a hardware RAID set to a mirror (Raid1) the most you can access in 1 sec would be 1MB of usable data. This is why the Unsafe HARDWARE Raid0 striped is the FASTEST. Say you have 4 drives on Raid0 and you access them for 1 sec, you pull 4MB of usable data. These are example numbers but this is the basic theory. But at the end the Computer is SO WAY faster then the data is accessible from a hard drive that it comes down to the quality of the hardware.

  • @shubhojeetmittra5180
    @shubhojeetmittra5180 5 ปีที่แล้ว +1

    Wrong Calculation of Parity = XOR value of the Data.
    0 XOR 0 -> 0
    0 XOR 1 -> 1
    1 XOR 0 -> 1
    1 XOR 1 -> 0
    And You cannot fail more than 1 Disk in RAID 5.

    • @manoloturchi3584
      @manoloturchi3584 5 ปีที่แล้ว

      You're right! The parity in this way would not work with 4 or more disks. I'm amazed by this explanation

    • @santyztv
      @santyztv 5 ปีที่แล้ว

      Exactly, this video actually confused me
      0 - 0 is 0
      0 - 1 is 1
      1 - 1 is 0 and
      1 - 0 is 1
      This guy says it otherwise 🤷‍♂️

  • @ivailomanolov6908
    @ivailomanolov6908 3 ปีที่แล้ว

    Great ideo

  • @hugoburton5222
    @hugoburton5222 7 ปีที่แล้ว

    at 2:35 you said that if you have more drives in raid 5 lets say 6 drives. You said that more drives could fail and all the data could be there. In raid 5 it doesn't matter how many drives you have. If 2 or more fails. You've lost data.

    • @cashe18
      @cashe18  7 ปีที่แล้ว

      correction.. In Raid 5, the more drives you have , more more failures you can have. in a 3 drive setup, you can lose 1. 4 drives you can lose 1 whole drive and have error on another. 5 disk setup, you can have 2 totally fail on you. Many years ago I did a 12 drive setup. 1 was setup as an active Hotswap. This setup allowed us to have 4 total drive failures and the data was sound. I should have been more clear in that part that depending the size of the raid setup will also determine the allowed failure size. Thank you for your feedback.

    • @hugoburton5222
      @hugoburton5222 7 ปีที่แล้ว +1

      Proven here www.computerweekly.com/answer/RAID-5-recovery-What-is-the-maximum-number-of-physical-drives-in-a-RAID-5-configuration
      You can only lose 1 drive in raid 5 no matter how many drives you have

    • @hugoburton5222
      @hugoburton5222 7 ปีที่แล้ว

      also here serverfault.com/questions/183183/can-i-recover-a-raid-5-array-if-two-drives-have-failed

    • @cashe18
      @cashe18  7 ปีที่แล้ว

      I'm very surprised they would say this. When I was at viacom, goodness the size of those raid setups and when we would have to do a recovery from multi drive damage would take ALL NIGHT! the drives were SCSI which at the time maxed at 300gb each. Our raid cards were all adaptecs. The exchange servers OS would be on 2 drives setup as a mirror RAID 1, and the data/storages were all large raid-5 setups. Our digital department Raid Racks has status lights for each drive. I can tell you that I myself did so long multidrive fails because our data was SO huge that we had Tape backups that would be roboticly switched. I will look into this, if its because it's IDE but thanks for bringing this to my attention.

    • @ezelder
      @ezelder 6 ปีที่แล้ว

      There is no “parity drive.” Parity is odd or even and rotates across drives. When you lose a drive you lose 1/n parity bits, where n is the total number of drives.

  • @erikturba5007
    @erikturba5007 6 ปีที่แล้ว

    ur cool :D well explaining

  • @misaalanshori
    @misaalanshori 6 ปีที่แล้ว

    How about software raid?

    • @Bandicoot803
      @Bandicoot803 6 ปีที่แล้ว

      @M Isa: Software RAID works pretty much the same way, except that all the back-and-forth between the data and its parities takes place in the RAM.

  • @andreisima8521
    @andreisima8521 3 ปีที่แล้ว +1

    Wrong parity calculation !
    XOR Truth table say that :
    0+0=0
    0+1=1
    1+0=1
    1+1=0

    • @cashe18
      @cashe18  3 ปีที่แล้ว

      You are correct. It's on the comments. Thank you for your input and for watching...

  • @user-guodaxia
    @user-guodaxia 5 ปีที่แล้ว +1

    1 XOR 1 = 0 , 1 XOR 0 =1

    • @gtchickadee1
      @gtchickadee1 5 ปีที่แล้ว

      exactly, he had it reversed and confused me for a second lol

  • @horiet6064
    @horiet6064 6 ปีที่แล้ว

    Isn't this RAID 4?

    • @TheTaxxor
      @TheTaxxor 6 ปีที่แล้ว

      It's RAID 5 explained with only one byte of data. If he was to write another byte after that, he would've placed the parity part in drive 1 or 2, but since this video is only to show how RAID 5 recovers it's data, there was no need to basically show the exact same thing again with another drive.