Matt Calvert's Blog

Restart A Stalled vSAN Re-sync Operation

cd /localhost/London/computers/Business Intelligence/
/localhost/London/computers/Business Intelligence> vsan.vm_object_info ./resourcePool/vms/*

DOM Object: 4df89958-e9d1-615b-743c-90b11c53cd5c (v3, owner: 172.23.169.11, policy: forceProvisioning = 0, hostFailuresToTolerate = 1, spbmProfileId = aa6d5a82-1c88-45da-85d3-3d74b91a5bad, proportionalCapacity = [0, 100], spbmProfileGenerationNumber = 0, cacheReservation = 0, stripeWidth = 1)
  RAID_1
    Component: 4df89958-ebe2-cc5b-66b7-90b11c53cd5c (state: ACTIVE (5), host: 172.23.169.6, md: naa.6b8ca3a0e7693900202209fe142c66a9, ssd: naa.6b8ca3a0e7693900202209690b42bcca,
                                                     votes: 1, usage: 0.5 GB)
    Component: 4df89958-004b-ce5b-8da4-90b11c53cd5c (state: ACTIVE (5), host: 172.23.169.9, md: naa.6b8ca3a0e7695d002026017b08b61245, ssd: naa.6b8ca3a0e7695d002026013604989b0d,
                                                     votes: 1, usage: 0.5 GB)
  Witness: 4df89958-b5a0-cf5b-4a61-90b11c53cd5c (state: ACTIVE (5), host: 172.22.32.135, md: mpx.vmhba1:C0:T1:L0, ssd: mpx.vmhba1:C0:T2:L0,
                                                 votes: 1, usage: 0.0 GB)
  Extended attributes:
    Address space: 273804165120B (255.00 GB)
    Object class: vmnamespace
    Object path: /vmfs/volumes/vsan:5205c906252f54cc-f6133fa87a97d1a1/
    Object capabilities: NONE

cmmds-tool find -t DOM_OBJECT -f json -u 4df89958-e9d1-615b-743c-90b11c53cd5c | head</code>
{
  "entries": [
    {
      "uuid": "4df89958-e9d1-615b-743c-90b11c53cd5c",
      "owner": "588f4abe-6e98-e4fa-992d-90b11c497c03",
      "health": "Healthy",
      "revision": "50",
      "type": "DOM_OBJECT",
      "flag": "2",

cmmds-tool find -t HOSTNAME -f json -u "588f4abe-6e98-e4fa-992d-90b11c497c03" | grep content

    "content": {"hostname": "vmhost1"},

vsish -e set /vmkModules/vsan/dom/ownerAbdicate 4df89958-e9d1-615b-743c-90b11c53cd5c

cmmds-tool find -t DOM_OBJECT -f json -u 4df89958-e9d1-615b-743c-90b11c53cd5c | head

{
 "entries":
[
 {
   "uuid": "4df89958-e9d1-615b-743c-90b11c53cd5c",
   "owner": "588f131b-6b43-97a6-aee0-90b11c53cd5c",
   "health": "Healthy",
   "revision": "50",
   "type": "DOM_OBJECT",
   "flag": "2",

cmmds-tool find -t HOSTNAME -f json -u "588f131b-6b43-97a6-aee0-90b11c53cd5c" | grep content

    "content": {"hostname": "vmhost2"},