<p>Sometimes, especially in a HACMP environment, one system will leave a bogus reservation on a PV. While this reservation is set, no other node can use that disk. I&#8217;ve also seen this when one machine crashes hard. When you try to use the disk, you&#8217;ll get a PVMISSING status on the offending disks.  This used to be a real problem, but I haven&#8217;t seen it on newer OS and driver levels.</p>{"id":67,"date":"2009-06-18T10:53:02","date_gmt":"2009-06-18T14:53:02","guid":{"rendered":"http:\/\/patrickv.info\/wordpress\/?p=17"},"modified":"2009-06-18T10:53:02","modified_gmt":"2009-06-18T14:53:02","slug":"clearing-pv-reservations","status":"publish","type":"post","link":"https:\/\/rootuser.ninja\/index.php\/2009\/06\/18\/clearing-pv-reservations\/","title":{"rendered":"Clearing PV Reservations"},"content":{"rendered":"<p>Sometimes, especially in a HACMP environment, one system will leave a bogus reservation on a PV. While this reservation is set, no other node can use that disk. I&#8217;ve also seen this when one machine crashes hard. When you try to use the disk, you&#8217;ll get a PVMISSING status on the offending disks.  This used to be a real problem, but I haven&#8217;t seen it on newer OS and driver levels.<\/p>\n<p><!--more--><\/p>\n<p>For instance:<\/p>\n<pre><code># varyonvg exportvg\nPV Status:\nvpath45 00094099c2486864\nPVACTIVE\nvpath42 000d04dd4934524d\nPVMISSING\nvaryonvg: Volume group exportvg is varied on.\n<\/code><\/pre>\n<p>Make absolutely sure that the disk is not used on any other system. Run:<\/p>\n<pre><code>lquerypv -h \/dev\/vpath42 80 10<\/code><\/pre>\n<p>If there is output, then it&#8217;s not a reservation issue, call support.<\/p>\n<p>To reset the reservation do:<\/p>\n<pre><code>\/usr\/es\/sbin\/cluster\/events\/utils\/cl_scdiskreset \/dev\/vpath42<\/code><\/pre>\n<p>Then re-run the lquerypv:<\/p>\n<pre><code>lquerypv -h \/dev\/vpath42 80 10\n00000080\n000D04DD 4934524D 00000000 00000000  |....I4RM........|<\/code><\/pre>\n<p>And you&#8217;re good to go:<\/p>\n<pre><code>varyonvg exportvg<\/code><\/pre>\n<p>Sometimes you can get a non-HACMP reserve set. This happens if you don&#8217;t remove a disk from a volume group or the system goes down hard.<\/p>\n<p>To see if this is the problem do:<\/p>\n<pre><code>lquerypr -vh \/dev\/vpathxx<\/code><\/pre>\n<p>If it returns with a number, there is a reserve, to clear it do:<\/p>\n<pre><code>lquerypr -ch \/dev\/vpathxx<\/code><\/pre>","protected":false},"excerpt":{"rendered":null,"protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1],"tags":[],"class_list":["post-67","post","type-post","status-publish","format-standard","hentry","category-aix-notes","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/posts\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":0,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"wp:attachment":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}