<?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: vgscan at system boot in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929743#M58464</link>
    <description>Your workaround is not appropriate.&lt;BR /&gt;&lt;BR /&gt;On Linux LVM, the vgchange command will write the new status to disk(s) of the volume group in question.&lt;BR /&gt;&lt;BR /&gt;If your cluster is down, you can get away with your workaround. &lt;BR /&gt;&lt;BR /&gt;But consider a situation when the cluster is active and node A fails. The node B takes over the disks and starts running the application.&lt;BR /&gt;You shutdown the node A and do some hardware maintenance. After that, you start it up again.&lt;BR /&gt;&lt;BR /&gt;Now, the disks and the application are active on the node B, so node A *MUST NOT TOUCH* the disks *AT ALL* until node B stops using them.&lt;BR /&gt;&lt;BR /&gt;If you use your workaround, node A will make a mark to the LVM data area of the disk, stating that the volume group is not active... without the knowledge that node B is actually using the disks and the volume group at the time!&lt;BR /&gt;&lt;BR /&gt;With luck, your node B might not notice this immediately... but when it is time to do a LVM operation on node B (say, deactivate the volume group when preparing to move the package back to node A) it will get very confused.&lt;BR /&gt;</description>
    <pubDate>Thu, 20 Oct 2005 07:09:44 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2005-10-20T07:09:44Z</dc:date>
    <item>
      <title>vgscan at system boot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929735#M58456</link>
      <description>I am installing ServiceGuard on RedHat 2.4.21-20. I have problem with "Prevent Boot-Time vgscan". I have followd the instruction on page 40 in Version A.11.16 Release Notes, Second Edition. It dosen't work, some idea?</description>
      <pubDate>Wed, 28 Sep 2005 08:07:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929735#M58456</guid>
      <dc:creator>Ulf Sandberg</dc:creator>
      <dc:date>2005-09-28T08:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: vgscan at system boot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929736#M58457</link>
      <description>Are you trying to prevent volume group activation. LVM on HP-UX requires you change auto activation from 1(do it) to 0(don't). The file is /etc/lvmrc&lt;BR /&gt;&lt;BR /&gt;This may be the same on Linux. &lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 28 Sep 2005 08:31:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929736#M58457</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-09-28T08:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: vgscan at system boot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929737#M58458</link>
      <description>There is no /etc/lvmrc in RedHat, i have done the chnges in /etc/rc.d/rc.sysinit</description>
      <pubDate>Wed, 28 Sep 2005 08:37:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929737#M58458</guid>
      <dc:creator>Ulf Sandberg</dc:creator>
      <dc:date>2005-09-28T08:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: vgscan at system boot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929738#M58459</link>
      <description>Please put in a call to support.&lt;BR /&gt;&lt;BR /&gt;I also have asked someone in the lab but it may take a day (or so) to get an answer back here.</description>
      <pubDate>Thu, 29 Sep 2005 07:19:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929738#M58459</guid>
      <dc:creator>Serviceguard for Linux</dc:creator>
      <dc:date>2005-09-29T07:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: vgscan at system boot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929739#M58460</link>
      <description>Hi,&lt;BR /&gt;did you comment both LVM initialization sections in /etc/rc.d/rc.sysinit file ?</description>
      <pubDate>Thu, 29 Sep 2005 07:59:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929739#M58460</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2005-09-29T07:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: vgscan at system boot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929740#M58461</link>
      <description>Yes I have now a call at support.&lt;BR /&gt;I have done the change on the two places.&lt;BR /&gt;I am now running an up2tape, perhaps it will help.</description>
      <pubDate>Thu, 29 Sep 2005 08:47:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929740#M58461</guid>
      <dc:creator>Ulf Sandberg</dc:creator>
      <dc:date>2005-09-29T08:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: vgscan at system boot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929741#M58462</link>
      <description>Here is the solution from HP:&lt;BR /&gt;&amp;gt; So the customer has 2 choices:&lt;BR /&gt;&amp;gt; - change the "vgchange -ay" command to "vgchange -ay Volume00" in&lt;BR /&gt;&amp;gt; initrd-2.4.21-37.ELsmp.img/linuxrc every time a new initrd is created&lt;BR /&gt;&amp;gt; - reinstall the system without using LVM for the root filesystem&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; The script /sbin/mkinitrd, which creates the linuxrc file, could be changed&lt;BR /&gt;&amp;gt; to have the required result:&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; - make a copy of  /sbin/mkinitrd&lt;BR /&gt;&amp;gt; # mv /sbin/mkinitrd /sbin/mkinitrd.orig&lt;BR /&gt;&amp;gt; # cp /sbin/mkinitrd.orig /sbin/mkinitrd&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; - edit the script /sbin/mkinitrd&lt;BR /&gt;&amp;gt; # vi  /sbin/mkinitrd&lt;BR /&gt;&amp;gt; Change the line:&lt;BR /&gt;&amp;gt;     echo "vgchange -ay" &amp;gt;&amp;gt; $RCFILE&lt;BR /&gt;&amp;gt; To:&lt;BR /&gt;&amp;gt;     echo "vgchange -ay Volume00" &amp;gt;&amp;gt; $RCFILE&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; - create a new initrd file with the mkinitrd command or the&lt;BR /&gt;&amp;gt; /opt/hp/src/hp_qla2x00src/set_parm command.&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; - reboot the system</description>
      <pubDate>Wed, 19 Oct 2005 09:01:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929741#M58462</guid>
      <dc:creator>Ulf Sandberg</dc:creator>
      <dc:date>2005-10-19T09:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: vgscan at system boot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929742#M58463</link>
      <description>It is solved by HP support.&lt;BR /&gt;I have also made a workaround, that runs&lt;BR /&gt;"vgchange -a n my_vg" in rc3.d before the cluster starts.</description>
      <pubDate>Wed, 19 Oct 2005 09:05:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929742#M58463</guid>
      <dc:creator>Ulf Sandberg</dc:creator>
      <dc:date>2005-10-19T09:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: vgscan at system boot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929743#M58464</link>
      <description>Your workaround is not appropriate.&lt;BR /&gt;&lt;BR /&gt;On Linux LVM, the vgchange command will write the new status to disk(s) of the volume group in question.&lt;BR /&gt;&lt;BR /&gt;If your cluster is down, you can get away with your workaround. &lt;BR /&gt;&lt;BR /&gt;But consider a situation when the cluster is active and node A fails. The node B takes over the disks and starts running the application.&lt;BR /&gt;You shutdown the node A and do some hardware maintenance. After that, you start it up again.&lt;BR /&gt;&lt;BR /&gt;Now, the disks and the application are active on the node B, so node A *MUST NOT TOUCH* the disks *AT ALL* until node B stops using them.&lt;BR /&gt;&lt;BR /&gt;If you use your workaround, node A will make a mark to the LVM data area of the disk, stating that the volume group is not active... without the knowledge that node B is actually using the disks and the volume group at the time!&lt;BR /&gt;&lt;BR /&gt;With luck, your node B might not notice this immediately... but when it is time to do a LVM operation on node B (say, deactivate the volume group when preparing to move the package back to node A) it will get very confused.&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Oct 2005 07:09:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929743#M58464</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2005-10-20T07:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: vgscan at system boot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929744#M58465</link>
      <description>Matti,&lt;BR /&gt;    Did you try this?&lt;BR /&gt;&lt;BR /&gt;One of our engineers did on RedHat 4 (LVM2) and did not see that the deactivate on one node had any affect on the activated volume on the other.  We've never seen any problems on RedHat 3.  Also, you can deactivate a volume multiple times with no affect.&lt;BR /&gt;&lt;BR /&gt;If you did try this, maybe there is something that we've missed and we may appreceate more details.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 21 Oct 2005 00:59:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929744#M58465</guid>
      <dc:creator>Serviceguard for Linux</dc:creator>
      <dc:date>2005-10-21T00:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: vgscan at system boot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929745#M58466</link>
      <description>Thank you for the information, I see that my workaround is not useable.&lt;BR /&gt;I will implement the HP Support solution: &lt;BR /&gt;&lt;BR /&gt;change the "vgchange -ay" command to "vgchange -ay Volume00" in&lt;BR /&gt; initrd-2.4.21-37.ELsmp.img/linuxrc every time a new initrd is created&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Oct 2005 01:02:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929745#M58466</guid>
      <dc:creator>Ulf Sandberg</dc:creator>
      <dc:date>2005-10-21T01:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: vgscan at system boot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929746#M58467</link>
      <description>Sorry, my experience was from older Linux installation. I checked back and found that it was using LVM1.&lt;BR /&gt;&lt;BR /&gt;This seems to have changed in LVM2; if so, that is a good change.&lt;BR /&gt;&lt;BR /&gt;Nevertheless, I would feel uneasy about blindly activating and deactivating cluster VGs while ServiceGuard is not yet running: after all, VG activation is the primary "lock" that prevents the  node from writing to the cluster disks.&lt;BR /&gt;&lt;BR /&gt;If this lock is defeated during boot, it may be harmless by itself; but it allows an opportunity for further damage.&lt;BR /&gt;&lt;BR /&gt;For example, at least here I've seen cluster (originally stand-alone application servers, converted to two-node clusters when more  availability was needed) in which the cluster volumes were still listed in /etc/fstab. A small mistake, which usually causes some error messages at boot time, nothing more.&lt;BR /&gt;&lt;BR /&gt;If the VG gets activated at boot, this will easily lead to the booting node running a fsck on the cluster disks... while yet unaware that the other node is actively using that disk. This WILL lead to corruption and data loss. &lt;BR /&gt;</description>
      <pubDate>Mon, 24 Oct 2005 05:02:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgscan-at-system-boot/m-p/4929746#M58467</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2005-10-24T05:02:32Z</dc:date>
    </item>
  </channel>
</rss>

