Disclaimer: I recently attended VMworld 2017 – US. My flights were paid for by ActualTech Media, VMware provided me with a free pass to the conference and various bits of swag, and Tech Field Day picked up my hotel costs. There is no requirement for me to blog about any of the content presented and I am not compensated in any way for my time at the event. Some materials presented were discussed under NDA and don’t form part of my blog posts, but could influence future discussions.
Here are my rough notes from “STO1179BU – Understanding the Availability Features of vSAN”, presented by GS Khalsa (@gurusimran) and Jeff Hunter (@jhuntervmware). You can grab a PDF of the notes from here. Note that these posts don’t provide much in the way of opinion, analysis, or opinionalysis. They’re really just a way of providing you with a snapshot of what I saw. Death by bullet point if you will.
Components and Failure
vSAN Objects Consist of Components
VM
- VM Home – multiple components
- Virtual Disk – multiple components
- Swap File – multiple components
vSAN has a cache tier and capacity tier (objects are stored here)
Quorum
Greater than 50% must be online to achieve quorum
- Each component has one vote by default
- Odd number of votes required to break tie – preserves data integrity
- Greater than 50% of components (votes) must be online
- Components can have more than one vote
- Votes added by vSAN, if needed, to ensure odd number
Component Vote Counts Are Visible Using RVC CLI
/<vcenter>/datacenter/vms> vsan_vm_object_info <vm>
Storage Policy Determines Component Number and Placement
- Primary level of failures to tolerate
- Failure Tolerance Method
Primary level of failures to tolerate = 0 Means only one copy
- Maximum component size is 255GB
- vSAN will split bigger into smaller sized VMDKs
- RAID-5/6 Erasure Coding Uses Stripes and Parity (need to be using all-flash)
- Consumes less RAW capacity
- Number of stripes also affects component counts
Each Host is an Implicit Fault Domain
- Multiple components can end up in the same rack
- Configure Fault Domains in the UI
- Add at least one more host or fault domain for rebuilds
Component States Change as a Result of a Failure
- Active
- Absent
- Degraded
vSAN selects most efficient way
Which is most efficient? Repair or Rebuild? It depends. Partial repairs are performed if full repair is not possible
vSAN Maintenance Mode
Three vSAN Options for Host Maintenance Mode
- Evacuate all data to other hosts
- Ensure data accessibility from other hosts
- No data evacuation
Degraded Device Handling (DDH) in vSAN 6.6
- vSAN 6.6 is more “intelligent”, builds on previous versions of DDH
- When device is degraded, components are evaluated …
- If component does not belong to last replica, mark as absent – “Lazy” evacuation since another replica of the object exists
- If component belongs to last replica, start evacuation
- Degraded devices will not be used for new component placement
- Evacuation failures reported in UI
DDH and S.M.A.R.T.
Following items logged in vmkernel.log when drive is identified as unhealthy
- Sectors successfully reallocated 0x05
- Reported uncorrectable sectors 0xBB
- Disk command timeouts 0xBC
- Sector reallocation events 0xC4
- Pending sector reallocations 0xC5
- Uncorrectable sectors 0xC6
Helps GSS determine what to do with drive after evacuation
Stretched Clusters
Stretched Cluster Failure Scenarios
- Extend the idea of fault domains from racks to sites
- Witness component (tertiary site) – witness host
- 5ms RTT (around 60 miles)
- VM will have a preferred and secondary site
- When component fails, starts rebuilding of preferred site
Stretched Cluster Local Failure Protection – new in vSAN 6.6
- Redundancy against host failure and site failure
- If site fails, vSAN maintains local redundancy in surviving site
- No change in stretched cluster configuration steps
- Optimised logic to minimise I/O traffic across sites
- Local read, local resync
- Single inter-site write for multiple replicas
- RAID-1 between the sites, and then RAID-5 in the local sites
What happens during network partition or site failure?
- HA Restart
Inter-site network disconnected (split brain)
- HA Power-off
Witness Network Disconnected
- Witness leaves cluster
VMs continue to operate normally. Very simple to redeploy a new one. Recommended host isolation response in a stretched cluster is power off
Witness Host Offline
- Recover or redeploy witness host
New in 6.6 – change witness host
vSAN Backup, Replication and DR
Data Protection
- vSphere APIs – Data Protection
- Same as other datastore (VMFS, etc)
- Verify support with backup vendor
- Production and backup data on vSAN
- Pros: Simple, rapid restore
- Cons: Both copies lost if vSAN datastore is lost, can consume considerable capacity
Solutions …
- Store backup data on another datastore
- SAN or NAS
- Another vSAN cluster
- Local drives
- Dell EMC Avamar and NetWorker
- Veeam Backup and Replication
- Cohesity
- Rubrik
- Others …
vSphere Replication included with Essentials Plus Kit and higher. With this you get per-VM RPOs as low as 5 minutes
Automated DR with Site Recovery Manager
- HA with Stretched Cluster, Automated DR with SRM
- SRM at the tertiary site
Useful session. 4 stars.


