Tuesday, December 18, 2018

VSAN ERASURE CODING FAILURE HANDLING - VMware Certifications


I had a very interesting question recently about how vSAN handles a failure in an object that is running with an erasure coding configuration. In the case of vSAN this is either a RAID-5 or a RAID-6. On vSAN, a RAID-5 is implemented with 3 data segments and 1 parity segment (3+1), with parity striped across all four components. RAID-6 is implemented as 4 data segments and 2 parity segments (4+2), again with the parity striped across all of the six components. So what happens when we need to continue writing to one of these objects after a component/segment has failed.


After discussing this with one of our vSAN engineering leads, the answer is that it depends on which offset you are writing to.  Let’s take RAID-5 as an example. The RAID-5 VMDK object address space is split into 1 MB stripes.  If we take the 3 of the 4 RAID-5 components together, this makes up one contiguous 3 MB range. We refer to this a row which is distributed over the three components. The fourth component is used for parity.  The component used for the parity gets rotated for each row.

First, we will look at a row that has lost a data component. Let’s take the first row. Future writes to the 0-2 MB range in the object address space will be unaffected.  They will still go to their respective data component (either 1 or 2). Writes to the 2-3 MB range will read data from Comp1 and Comp2, calculate the new parity based on all 3 data components, and then write parity in Comp4. But of course there cannot be a write to Comp3 as it is now failed/missing. This same procedure applies to all other rows that are missing data due to a failure of Comp3.

Let’s now look at a row that has lost its parity component, for example, row 2. Writes to the 3-6 MB range will just write the data to Comp1, Comp2 and Comp4 as normal with no parity. Hence there are no parity reads associated with this write operation. In this case there is a reduction in the amount of IO amplification involved. For RAID-5 writes, we would typically have to read the existing data and parity, write back the new data, calculate the new parity and write it back. Now, with rows that have parity on the failed component, the reads and writes will not be amplified. In fact, as we have seen, reads and writes are decreased from 2 to 1 in cases where parity on the affected component.

So, to recap, we still maintain a 3+1 RAID-5 arrangement for data placement, but there is a “functional repair” whereby we include the data that cannot be written in the parity calculation. We can then use that parity (with the other two data components Comp1 and Comp2) to reconstruct the original data if we need to service a guest read, or of course to resync to Comp3 when it recovers.

Success Secrets: How you can Pass VMware Certification Exams in first attempt



4 comments:

  1. I would say That a Selling HP Workstations 2019 Certification is highly respected in the field of Information Technology (IT). It seems not easy to get HPE Sales Certified but with KillerDumps HP2-H91 Exam BrainDumps, It is guaranteed that you can achieve your desired results on HP2-H91 Exam in first attempt. I would suggest KillerDumps HP2-H91 exam preparation material. Because KillerDumps HP2-H91 Exam Dumps are so simple and detailed and I pass my Selling HP Workstations 2019 HP2-H91 exam in first attempt. Enhance your skills by doing HPE Sales Certification to improve their competency.

    ReplyDelete
  2. It is not easy to pass VMware Certified Associate - Digital Business Transformation exam, but I am happy to pass. I downloaded the VMware 1V0-701 dumps from Killerdumps without wasting time searching for lecture topics. After reading this material, I was able to answer all the 1V0-701 questions of the VMware Certified Associate - Digital Business Transformation final exam. We are deeply grateful to Killerdumps and the entire team of experts for serving the improvement of hundreds of students.

    ReplyDelete
  3. Prepare for SAP C_ARSUM_2002 exam with our preparation material with full confidence. We offer you 100% real SAP Certified Application Associate – SAP Ariba Supplier Management Exam SAP C_ARSUM_2002 exam dumps for your better results. Prepare4Test’s C_ARSUM_2002 pdf dumps are verified by SAP Gurus.

    ReplyDelete
  4. I memorized to-the-point questions and answers and made my way to success with 156-315.80 Dumps 2022. I cannot express in words my excitement for unexpected results under the guidance of experts at RealExamCollection. I got my knowledge of the field from 156-315.80 dumps.

    ReplyDelete