{"id":374,"date":"2018-05-31T15:22:57","date_gmt":"2018-05-31T13:22:57","guid":{"rendered":"https:\/\/virtualguru.cz\/?p=374"},"modified":"2018-05-31T20:36:21","modified_gmt":"2018-05-31T18:36:21","slug":"oprava-orphaned-vm-na-vsan","status":"publish","type":"post","link":"https:\/\/virtualguru.cz\/en\/2018\/05\/31\/oprava-orphaned-vm-na-vsan\/","title":{"rendered":"Oprava &#8222;orphaned&#8220; VM na vSAN"},"content":{"rendered":"<p>N\u011bkdy se v\u00e1m m\u016f\u017ee st\u00e1t, \u017ee dojde k po\u0161kozen\u00ed n\u011bkter\u00fdch objekt\u016f na vSAN (nap\u0159. po chybov\u00e9m update vSAN nodu). N\u011bkter\u00e1 VM pak i po resynchronizaci objekt\u016f v\u0161ak mohou z\u016fstat nedostupn\u00e1 a ve stromu\u00a0 &#8222;Host and Clusters&#8220; se objev\u00ed m\u00edsto p\u016fvodn\u00edho n\u00e1zvu VM pouze:<\/p>\n<blockquote><p>\/vmfs\/volumes\/vsan.uuid<\/p><\/blockquote>\n<p>\u017d\u00e1dn\u00e1 panika, sta\u010d\u00ed se pouze p\u0159ipojit do RVC (Ruby vSphere Console) a spustit jeden p\u0159\u00edkaz. RVC je sou\u010d\u00e1st vCSA, je pot\u0159eba se tedy p\u0159ihl\u00e1sit p\u0159es SSH do vCSA pod rootem a pak spustit RVC:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">rvc administrator@vsphere.local@localhost\r\npassword: SSO admin password<\/pre>\n<p>Po t\u00e9 co jsme v RVC, tak spustit p\u0159\u00edkaz &#8222;vsan.check_state&#8220;:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">vsan.check_state -r localhost\/Datacenter*\/computers\/Cluster*\/<\/pre>\n<p>Parametr &#8222;-r&#8220; znovu na\u010dte *.vmx a zaregitruje VM<\/p>\n<p>V\u00fdpis pak vypad\u00e1 n\u00e1sledovn\u011b:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"no-highlight\">2018-05-31 09:47:46 +0000: Step 1: Check for inaccessible vSAN objects\r\n\r\n2018-05-31 09:47:52 +0000: Step 1b: Check for inaccessible vSAN objects, again\r\n\r\n2018-05-31 09:47:52 +0000: Step 2: Check for invalid\/inaccessible VMs\r\nDetected VM '%2fvmfs%2fvolumes%2fvsan:52e427d394ea1add-f942937ce413fb10%2fd056965a-a828-be19-' as being 'orphaned', reloading ...\r\nDetected VM '%2fvmfs%2fvolumes%2fvsan:52e427d394ea1add-f942937ce413fb10%2f8ccd975a-750d-e8e7-' as being 'orphaned', reloading ...\r\nDetected VM '%2fvmfs%2fvolumes%2fvsan:52e427d394ea1add-f942937ce413fb10%2f71b1965a-1143-61e8-' as being 'orphaned', reloading ...\r\nDetected VM '%2fvmfs%2fvolumes%2fvsan:52e427d394ea1add-f942937ce413fb10%2f1fc5975a-9dae-596f-' as being 'orphaned', reloading ...\r\nreloadVirtualMachineFromPath %2fvmfs%2fvolumes%2fvsan:52e427d394ea1add-f942937ce413fb10%2fd056965a-a828-be19-: success\r\nreloadVirtualMachineFromPath %2fvmfs%2fvolumes%2fvsan:52e427d394ea1add-f942937ce413fb10%2f8ccd975a-750d-e8e7-: success\r\nreloadVirtualMachineFromPath %2fvmfs%2fvolumes%2fvsan:52e427d394ea1add-f942937ce413fb10%2f71b1965a-1143-61e8-: success\r\nreloadVirtualMachineFromPath %2fvmfs%2fvolumes%2fvsan:52e427d394ea1add-f942937ce413fb10%2f1fc5975a-9dae-596f-: success\r\n\r\n2018-05-31 09:47:54 +0000: Step 2b: Check for invalid\/inaccessible VMs again\r\n\r\n2018-05-31 09:47:54 +0000: Step 3: Check for VMs for which VC\/hostd\/vmx are out of sync\r\nDid not find VMs for which VC\/hostd\/vmx are out of sync\r\n<\/pre>\n<p>Nyn\u00ed je v\u0161e opraveno a m\u016f\u017eete startovat VM.<\/p>","protected":false},"excerpt":{"rendered":"<p>N\u011bkdy se v\u00e1m m\u016f\u017ee st\u00e1t, \u017ee dojde k po\u0161kozen\u00ed n\u011bkter\u00fdch objekt\u016f na vSAN (nap\u0159. po chybov\u00e9m update vSAN nodu). N\u011bkter\u00e1 VM pak i po resynchronizaci&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/virtualguru.cz\/en\/2018\/05\/31\/oprava-orphaned-vm-na-vsan\/\">Continue Reading<span class=\"screen-reader-text\">Oprava &#8222;orphaned&#8220; VM na vSAN<\/span> <i class=\"fas fa-angle-right\"><\/i><\/a><\/div>","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"iawp_total_views":6,"footnotes":""},"categories":[5],"tags":[11,13],"class_list":["post-374","post","type-post","status-publish","format-standard","hentry","category-vsan","tag-troubleshooting","tag-vsan","entry"],"_links":{"self":[{"href":"https:\/\/virtualguru.cz\/en\/wp-json\/wp\/v2\/posts\/374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtualguru.cz\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtualguru.cz\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtualguru.cz\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/virtualguru.cz\/en\/wp-json\/wp\/v2\/comments?post=374"}],"version-history":[{"count":7,"href":"https:\/\/virtualguru.cz\/en\/wp-json\/wp\/v2\/posts\/374\/revisions"}],"predecessor-version":[{"id":381,"href":"https:\/\/virtualguru.cz\/en\/wp-json\/wp\/v2\/posts\/374\/revisions\/381"}],"wp:attachment":[{"href":"https:\/\/virtualguru.cz\/en\/wp-json\/wp\/v2\/media?parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtualguru.cz\/en\/wp-json\/wp\/v2\/categories?post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtualguru.cz\/en\/wp-json\/wp\/v2\/tags?post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}