{"id":870,"date":"2016-11-10T11:56:06","date_gmt":"2016-11-10T11:56:06","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=870"},"modified":"2016-11-10T11:56:06","modified_gmt":"2016-11-10T11:56:06","slug":"killing-stuck-sr-scan-vdi-gets-suck-vdi_deactivate","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/11\/10\/killing-stuck-sr-scan-vdi-gets-suck-vdi_deactivate\/","title":{"rendered":"Killing a stuck sr-scan when vdi gets suck in vdi_deactivate"},"content":{"rendered":"<p>Simple fix for this one, kill the task directly by it&#8217;s PID. Using ps , grep and sed, to select correct process.<\/p>\n<p>When executing this in live production, take especial care.<\/p>\n<pre>\r\n# xe task-list \r\nuuid ( RO)                : 7cb8b30b-563c-db9e-7682-e25aac2b2f07\r\n          name-label ( RO): SR.scan\r\n    name-description ( RO): \r\n              status ( RO): pending\r\n            progress ( RO): 0.000\r\n[root@21-16-246-494694 ~]# date\r\nThu Nov 10 11:41:45 UTC 2016\r\n[root@xenhost ~]# kill -TERM $(ps fauxww | grep \"[t]ap-ctl close\" | sed -e \"s\/.*-p \/\/\" | awk '{print $1}')\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Simple fix for this one, kill the task directly by it&#8217;s PID. Using ps , grep and sed, to select correct process. When executing this in live production, take especial care. # xe task-list uuid ( RO) : 7cb8b30b-563c-db9e-7682-e25aac2b2f07 name-label &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/11\/10\/killing-stuck-sr-scan-vdi-gets-suck-vdi_deactivate\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78,54,52,5,53],"tags":[],"class_list":["post-870","post","type-post","status-publish","format-standard","hentry","category-grep","category-sed","category-virtualization","category-xen","category-xenserver"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=870"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/870\/revisions"}],"predecessor-version":[{"id":871,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/870\/revisions\/871"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}