<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Remove Cluster Lock Flags from PV in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281021#M534331</link>
    <description>&lt;!--!*#--&gt;This does not help your situation, but&lt;BR /&gt;&lt;BR /&gt;I always create a small, separate VG with no data on it for the lock VG/disks.  In fact, it is kept deactivated.&lt;BR /&gt;&lt;BR /&gt;Yours is a good case (which I have never run into) for my setup.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Anyway, I assume that you removed the LOCK disk config in SG.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This would appear to be a bug (or, if "bug" is too harsh, then "an area that requires further scrutiny", or "a needed enhancement" :&amp;gt;), in either vgmodify (why should it care) or SG (perhaps it should clear that info when a disk is removed from the LOCK configuration), and which other people have run into.&lt;BR /&gt;&lt;BR /&gt;I'm surprised HP has not fixed this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
    <pubDate>Wed, 04 May 2011 13:07:00 GMT</pubDate>
    <dc:creator>Bob_Vance</dc:creator>
    <dc:date>2011-05-04T13:07:00Z</dc:date>
    <item>
      <title>Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281020#M534330</link>
      <description>I would like to remove the Cluster Lock Flag from a PV in a active vg without loosing the data on it and without data backup, new creation of vg, data restore.&lt;BR /&gt;How could this be possible?&lt;BR /&gt;&lt;BR /&gt;History:&lt;BR /&gt;I created a cluster and defined a &lt;BR /&gt;FIRST_CLUSTER_LOCK_VG /dev/vg01&lt;BR /&gt;FIRST_CLUSTER_LOCK_PV /dev/disk/disk71&lt;BR /&gt;&lt;BR /&gt;The vg01 is a cluster vg with data on it.&lt;BR /&gt;&lt;BR /&gt;Then I changed the quorum from CLUSTER_LOCK_VG to a quorum server but the Locking information still exists on the disk:&lt;BR /&gt;# lvm.11 -a -d /dev/rdisk/disk71 | grep -i lock&lt;BR /&gt;/* Alternate block pool length. */ 56&lt;BR /&gt;/* Alternate block pool start.  */ 125829052&lt;BR /&gt;/* Cluster-lock flags.          */ LVM_CLUSTER_LOCK_INITIALIZED&lt;BR /&gt;/* Cluster-lock area start.     */ 125829108&lt;BR /&gt;/* Alternate block pool length. */ 56&lt;BR /&gt;/* Alternate block pool start.  */ 125829052&lt;BR /&gt;/* Cluster-lock flags.          */ LVM_CLUSTER_LOCK_INITIALIZED&lt;BR /&gt;/* Cluster-lock area start.     */ 125829108&lt;BR /&gt;CLUSTER LOCK fields&lt;BR /&gt;lock_state LVM_DISK_CL_LOCK_FREE&lt;BR /&gt;&lt;BR /&gt;Now I'd like to do a vgmodify -a -E vg01 but this does not work because vgmodify thinks the disk71 is still a cluster lock lun. That leads to the question:&lt;BR /&gt;How can I remove this LVM_CLUSTER_LOCK_INITIALIZED flag and the Cluster-lock area from the disk71?&lt;BR /&gt;&lt;BR /&gt;Can please someone provide me this lvm hack!? &lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Tue, 03 May 2011 05:34:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281020#M534330</guid>
      <dc:creator>davesec</dc:creator>
      <dc:date>2011-05-03T05:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281021#M534331</link>
      <description>&lt;!--!*#--&gt;This does not help your situation, but&lt;BR /&gt;&lt;BR /&gt;I always create a small, separate VG with no data on it for the lock VG/disks.  In fact, it is kept deactivated.&lt;BR /&gt;&lt;BR /&gt;Yours is a good case (which I have never run into) for my setup.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Anyway, I assume that you removed the LOCK disk config in SG.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This would appear to be a bug (or, if "bug" is too harsh, then "an area that requires further scrutiny", or "a needed enhancement" :&amp;gt;), in either vgmodify (why should it care) or SG (perhaps it should clear that info when a disk is removed from the LOCK configuration), and which other people have run into.&lt;BR /&gt;&lt;BR /&gt;I'm surprised HP has not fixed this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Wed, 04 May 2011 13:07:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281021#M534331</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2011-05-04T13:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281022#M534332</link>
      <description>Thank you for your reply. All your answers are definitly true. &lt;BR /&gt;&lt;BR /&gt;BUT:&lt;BR /&gt;I'm still hoping that someone out there has a solution to edit this mf PV Header in a way that a vgmodify command is possible and no cluster locking information is on the PV anymore.&lt;BR /&gt;&lt;BR /&gt;Thanks for helping me!</description>
      <pubDate>Wed, 04 May 2011 13:12:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281022#M534332</guid>
      <dc:creator>davesec</dc:creator>
      <dc:date>2011-05-04T13:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281023#M534333</link>
      <description>&lt;!--!*#--&gt;I'm not familiar with this technical term&lt;BR /&gt;&lt;BR /&gt;   "mf PV Header&lt;BR /&gt;.&lt;BR /&gt;It frightens and confuses me...&lt;BR /&gt;;&amp;gt;)</description>
      <pubDate>Wed, 04 May 2011 13:29:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281023#M534333</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2011-05-04T13:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281024#M534334</link>
      <description>I'm sorry about that.</description>
      <pubDate>Wed, 04 May 2011 13:31:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281024#M534334</guid>
      <dc:creator>davesec</dc:creator>
      <dc:date>2011-05-04T13:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281025#M534335</link>
      <description>&lt;!--!*#--&gt;It would be painful, and maybe dangerous, but you may be able to halt the package and change the cluster flag on the disk&lt;BR /&gt;&lt;BR /&gt;   halt package&lt;BR /&gt;   vgchange -a n  # redundant&lt;BR /&gt;   vgchange -c n&lt;BR /&gt;&lt;BR /&gt;.&lt;BR /&gt;I would hope that this would remove any cluster lock flag, but no guarantees.&lt;BR /&gt;&lt;BR /&gt;Then redo the cluster flag&lt;BR /&gt;&lt;BR /&gt;  vgchange -c y&lt;BR /&gt;  vgchange -a e   # test it&lt;BR /&gt;  vgchange -a n   # get ready for package start&lt;BR /&gt;  start package&lt;BR /&gt;&lt;BR /&gt;but it would hopefully not have any memory of LOCK.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I may play with this.&lt;BR /&gt;&lt;BR /&gt;(Emil, where are you ?)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Wed, 04 May 2011 13:48:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281025#M534335</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2011-05-04T13:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281026#M534336</link>
      <description>yepp, at first I also thought about the cluster flag on the disks (vgchange -c). but am not sure if it is related to the locking functionality.</description>
      <pubDate>Wed, 04 May 2011 13:52:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281026#M534336</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-05-04T13:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281027#M534337</link>
      <description>I tried this allready but with the vgchange -c n only the Configured activation Modes Flags will change and the Lock information is still there...</description>
      <pubDate>Wed, 04 May 2011 14:00:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281027#M534337</guid>
      <dc:creator>davesec</dc:creator>
      <dc:date>2011-05-04T14:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281028#M534338</link>
      <description>yikes!&lt;BR /&gt;&lt;BR /&gt;have you called HP?</description>
      <pubDate>Wed, 04 May 2011 14:08:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281028#M534338</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2011-05-04T14:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281029#M534339</link>
      <description>Not yet: Because It's a really tricky issue that I'd like to discuss with the whole HP Professional community. &lt;BR /&gt;&lt;BR /&gt;I think I have a better chance to resolve this issue via the forum than the HP Support.&lt;BR /&gt;&lt;BR /&gt;But I'll call HP tomorrow to get additional help from there, hopping eather that someone can help me via the forum...</description>
      <pubDate>Wed, 04 May 2011 14:13:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281029#M534339</guid>
      <dc:creator>davesec</dc:creator>
      <dc:date>2011-05-04T14:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281030#M534340</link>
      <description>I have a vague memory that the vgchgid command might sort this out (you'd need to export the VG before doing it though and re-import afterwards)&lt;BR /&gt;&lt;BR /&gt;Worth a try I guess...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Wed, 04 May 2011 15:18:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281030#M534340</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2011-05-04T15:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281031#M534341</link>
      <description>Hi Dave,&lt;BR /&gt;if you have valid VG backup before cluster lock was in place ,try to user vgcfgrestore.&lt;BR /&gt;&lt;BR /&gt;Laco</description>
      <pubDate>Wed, 04 May 2011 17:30:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281031#M534341</guid>
      <dc:creator>maslo64</dc:creator>
      <dc:date>2011-05-04T17:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281032#M534342</link>
      <description>vgchange -c n vgxx&lt;BR /&gt;vgchange -c y vgxx or &lt;BR /&gt;   cmapplyconf with the vg at the end of the file should mark the vg and each disk for activation with SG&amp;gt;&lt;BR /&gt;&lt;BR /&gt;The lock information if the disk is defined as a lock disk is written to the bad block area of a disk (unless you use LVMv2). &lt;BR /&gt;&lt;BR /&gt; I think that until you associate that disk with a new cluster and do cmapplyconf it may not change that area in the BBRA and it will not use that area unless that disk is configured as the lock disk of a cluster.&lt;BR /&gt;&lt;BR /&gt;as long as the disk can be activated with this cluster after it is associated with this cluster &lt;BR /&gt;  vgchange -c y vgxx&lt;BR /&gt;  or cmapplyconf &lt;BR /&gt;&lt;BR /&gt;You should be ok using the disk with thsi cluster as part of a vgchange -a e activated volume group.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 May 2011 19:31:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281032#M534342</guid>
      <dc:creator>Emil Velez</dc:creator>
      <dc:date>2011-05-04T19:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Cluster Lock Flags from PV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281033#M534343</link>
      <description>1. Thanks to all you Answers. The solutions I adopted were the following:&lt;BR /&gt;&lt;BR /&gt;Solution 1&lt;BR /&gt;&lt;BR /&gt;If you have valid VG backup before cluster lock was in place, you can use vgcfgrestore.&lt;BR /&gt;&lt;BR /&gt;   1. Halt the cluster package that uses the vg01&lt;BR /&gt;&lt;BR /&gt;      # cmhaltpkg mypkg&lt;BR /&gt;&lt;BR /&gt;   2. Deactivate the vg01 on all nodes (normaly this is the case if you halt the package)&lt;BR /&gt;&lt;BR /&gt;      # vgchange -a n vg01&lt;BR /&gt;&lt;BR /&gt;   3. Restore the configuration from the&lt;BR /&gt;&lt;BR /&gt;      # vgcfgrestore -f /path/to/vg01.conf /dev/rdisk/disk71&lt;BR /&gt;      Volume Group configuration has been restored to /dev/rdisk/disk71&lt;BR /&gt;&lt;BR /&gt;   4. Export and Import it on the other node&lt;BR /&gt;&lt;BR /&gt;      # vgex vg01 node2&lt;BR /&gt;&lt;BR /&gt;          * vgex is included in the HPUX Tools &lt;BR /&gt;   5. Start the cluster package&lt;BR /&gt;&lt;BR /&gt;      # cmrunpkg mypkg&lt;BR /&gt;&lt;BR /&gt;Solution 2&lt;BR /&gt;&lt;BR /&gt;   1. Halt the cluster package that uses the vg01&lt;BR /&gt;&lt;BR /&gt;      # cmhaltpkg mypkg&lt;BR /&gt;&lt;BR /&gt;   2. Deactivate the vg01 on all nodes (normaly this is the case if you halt the package)&lt;BR /&gt;&lt;BR /&gt;      # vgchange -a n vg01&lt;BR /&gt;&lt;BR /&gt;   3. Export the vg01&lt;BR /&gt;&lt;BR /&gt;      # vgexport -s -m /tmp/vg01.map vg01&lt;BR /&gt;&lt;BR /&gt;   4. Change the VGID of all disks that were member of the vg01&lt;BR /&gt;&lt;BR /&gt;      # vgchgid /dev/rdisk/disk71&lt;BR /&gt;&lt;BR /&gt;   5. Reimport the vg01&lt;BR /&gt;&lt;BR /&gt;      # vgimport -m /tmp/vg01.map vg01 /dev/disk/disk71&lt;BR /&gt;      vgimport: Volume group "/dev/vg01" has been successfully created.&lt;BR /&gt;      Warning: A backup of this volume group may not exist on this machine.&lt;BR /&gt;      Please remember to take a backup using the vgcfgbackup command after activating the volume group.&lt;BR /&gt;&lt;BR /&gt;   6. Cluster activate the vg01&lt;BR /&gt;&lt;BR /&gt;      # vgchange -c y vg01&lt;BR /&gt;&lt;BR /&gt;   7. Export the vg01 on the other node&lt;BR /&gt;&lt;BR /&gt;      node2# vgexport vg01&lt;BR /&gt;&lt;BR /&gt;   8. Export and Import it on the other node&lt;BR /&gt;&lt;BR /&gt;      # vgex vg01 node2&lt;BR /&gt;&lt;BR /&gt;          * vgex is included in the HPUX Tools &lt;BR /&gt;   9. Check the newly created vg01&lt;BR /&gt;&lt;BR /&gt;      # vgchange -a r vg01&lt;BR /&gt;      Activated volume group.&lt;BR /&gt;      Volume group "vg01" has been successfully changed.&lt;BR /&gt;      # vgdisplay -v vg01&lt;BR /&gt;      --- Volume groups ---&lt;BR /&gt;      VG Name                     /dev/vg01&lt;BR /&gt;      VG Write Access             read-only      &lt;BR /&gt;      VG Status                   available                 &lt;BR /&gt;      Max LV                      255    &lt;BR /&gt;      Cur LV                      1      &lt;BR /&gt;      Open LV                     1      &lt;BR /&gt;      Max PV                      16     &lt;BR /&gt;      Cur PV                      1      &lt;BR /&gt;      Act PV                      1      &lt;BR /&gt;      Max PE per PV               25599        &lt;BR /&gt;      VGDA                        2   &lt;BR /&gt;      PE Size (Mbytes)            4               &lt;BR /&gt;      Total PE                    25599   &lt;BR /&gt;      Alloc PE                    1       &lt;BR /&gt;      Free PE                     25598   &lt;BR /&gt;      Total PVG                   0        &lt;BR /&gt;      Total Spare PVs             0              &lt;BR /&gt;      Total Spare PVs in use      0                     &lt;BR /&gt;      VG Version                  1.0       &lt;BR /&gt;      VG Max Size                 1638336m   &lt;BR /&gt;      VG Max Extents              409584        &lt;BR /&gt;&lt;BR /&gt;         --- Logical volumes ---&lt;BR /&gt;         LV Name                     /dev/vg01/lvol1&lt;BR /&gt;         LV Status                   available/syncd           &lt;BR /&gt;         LV Size (Mbytes)            4               &lt;BR /&gt;         Current LE                  1         &lt;BR /&gt;         Allocated PE                1           &lt;BR /&gt;         Used PV                     1       &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         --- Physical volumes ---&lt;BR /&gt;         PV Name                     /dev/disk/disk71&lt;BR /&gt;         PV Status                   available                &lt;BR /&gt;         Total PE                    25599   &lt;BR /&gt;         Free PE                     25598   &lt;BR /&gt;         Autoswitch                  On        &lt;BR /&gt;         Proactive Polling           On&lt;BR /&gt;&lt;BR /&gt;      # lvm.11 -p -d /dev/rdisk/disk71 | grep -i lock&lt;BR /&gt;      /* Alternate block pool length. */ 564&lt;BR /&gt;      /* Alternate block pool start.  */ 104857024&lt;BR /&gt;      /* Cluster-lock flags.          */ &lt;BR /&gt;      /* Cluster-lock area start.     */ 0&lt;BR /&gt;      /* Alternate block pool length. */ 564&lt;BR /&gt;      /* Alternate block pool start.  */ 104857024&lt;BR /&gt;      /* Cluster-lock flags.          */                      &amp;lt;-- The lock has gone away&lt;BR /&gt;      /* Cluster-lock area start.     */ 0&lt;BR /&gt;&lt;BR /&gt;  10. Deactivate the vg01 again&lt;BR /&gt;&lt;BR /&gt;      # vgchange -a n vg01&lt;BR /&gt;&lt;BR /&gt;  11. Start the cluster package&lt;BR /&gt;&lt;BR /&gt;      # cmrunpkg mypkg&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 May 2011 10:10:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-cluster-lock-flags-from-pv/m-p/5281033#M534343</guid>
      <dc:creator>davesec</dc:creator>
      <dc:date>2011-05-05T10:10:43Z</dc:date>
    </item>
  </channel>
</rss>

