<?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: vgchange cluster filesystems in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/vgchange-cluster-filesystems/m-p/3621640#M19537</link>
    <description>even though you are not using Serviceguard, check out the latest manuals.  They have the instructions on how to prevent VG start on boot.&lt;BR /&gt;&lt;BR /&gt;docs.hp.com&lt;BR /&gt;&lt;BR /&gt;Here's what I have in a presentation.  &lt;BR /&gt;&lt;BR /&gt;On Red Hat, use the following procedure to prevent a vgscan command at boot time:&lt;BR /&gt;After your volume groups have been created on a node, back them upusing vgcfgbackup, then comment out the following lines in the /etc/rc.d/rc.sysinit file:&lt;BR /&gt;# LVM initialization&lt;BR /&gt;if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ];&lt;BR /&gt;then&lt;BR /&gt;action $"Setting up LVM:" /sbin/vgscan &amp;amp;&amp;amp; /sbin/vgchange -a y&lt;BR /&gt;fi&lt;BR /&gt;Commenting out these lines will prevent the vgscan from removing the old volume group device files.&lt;BR /&gt;</description>
    <pubDate>Thu, 08 Sep 2005 23:19:32 GMT</pubDate>
    <dc:creator>Serviceguard for Linux</dc:creator>
    <dc:date>2005-09-08T23:19:32Z</dc:date>
    <item>
      <title>vgchange cluster filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgchange-cluster-filesystems/m-p/3621638#M19535</link>
      <description>(working with RHEL AS3)&lt;BR /&gt;&lt;BR /&gt;We have some shared disk on an MSA array with a volume group created and published to 2 nodes.  Whilst not technically a cluster (we're not using serviceguard or anything, we're working with manual failver) we want this volume group to not be activated on boot, for obvious reasons.&lt;BR /&gt;&lt;BR /&gt;Now I tried changing /etc/rc.d/rc.sysinit to only vgchange vg00 but this didn't work.  I then tracked it down to being a vgchange -ay in the linuxrc in the initrd script.  Clearly I don't want to have to mount/edit/unmount the initrd file every time I change the kernel/mkinitrd, so how can I ensure that eg vg01 does not get vgchanged on bootup?&lt;BR /&gt;&lt;BR /&gt;Is it enough just to perform a vgchange -n vg01 at the end of rc.sysinit for example, since filesystems haven't actuallt been mounted?  Though this does seem a little dirty...</description>
      <pubDate>Thu, 08 Sep 2005 08:14:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgchange-cluster-filesystems/m-p/3621638#M19535</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2005-09-08T08:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: vgchange cluster filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgchange-cluster-filesystems/m-p/3621639#M19536</link>
      <description>Simon,&lt;BR /&gt;&lt;BR /&gt;In my distro (SuSE 9.3) I have the config file:/etc/sysconfig/lvm&lt;BR /&gt;&lt;BR /&gt;## Path:        System/File systems/LVM&lt;BR /&gt;## Description: LVM configuration&lt;BR /&gt;## Type:        string&lt;BR /&gt;## Default:     ""&lt;BR /&gt;#&lt;BR /&gt;# This variable allows to only activate the LVM volume groups listed at&lt;BR /&gt;# bootup. If it is empty, all LVM volume groups are activated at bootup.&lt;BR /&gt;# This variable needs setting only under very special circumstances.&lt;BR /&gt;# For almost all standard LVM installations it can safely stay empty.&lt;BR /&gt;#&lt;BR /&gt;LVM_VGS_ACTIVATED_ON_BOOT=""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;By changing this LVM_VGS_ACTIVATED_ON_BOOT you can reach what you want.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Peter</description>
      <pubDate>Thu, 08 Sep 2005 15:03:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgchange-cluster-filesystems/m-p/3621639#M19536</guid>
      <dc:creator>Hoefnix</dc:creator>
      <dc:date>2005-09-08T15:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: vgchange cluster filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgchange-cluster-filesystems/m-p/3621640#M19537</link>
      <description>even though you are not using Serviceguard, check out the latest manuals.  They have the instructions on how to prevent VG start on boot.&lt;BR /&gt;&lt;BR /&gt;docs.hp.com&lt;BR /&gt;&lt;BR /&gt;Here's what I have in a presentation.  &lt;BR /&gt;&lt;BR /&gt;On Red Hat, use the following procedure to prevent a vgscan command at boot time:&lt;BR /&gt;After your volume groups have been created on a node, back them upusing vgcfgbackup, then comment out the following lines in the /etc/rc.d/rc.sysinit file:&lt;BR /&gt;# LVM initialization&lt;BR /&gt;if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ];&lt;BR /&gt;then&lt;BR /&gt;action $"Setting up LVM:" /sbin/vgscan &amp;amp;&amp;amp; /sbin/vgchange -a y&lt;BR /&gt;fi&lt;BR /&gt;Commenting out these lines will prevent the vgscan from removing the old volume group device files.&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Sep 2005 23:19:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgchange-cluster-filesystems/m-p/3621640#M19537</guid>
      <dc:creator>Serviceguard for Linux</dc:creator>
      <dc:date>2005-09-08T23:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: vgchange cluster filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgchange-cluster-filesystems/m-p/3621641#M19538</link>
      <description>Thank Peter however that option doesn't exist in RedHat.&lt;BR /&gt;&lt;BR /&gt;Thanks "ServiceGuard", however that doesn't solve the problem.  All that does is stop the vgscan (which is actually a bad thing, because if LUNs get republished out-of-order then device filenames will mismatch - without the vgscan this will result in failed volume groups).  The problem occurs with the vgchange during the initrd execution, before rc even begins.  It is this I wish to stop.</description>
      <pubDate>Fri, 09 Sep 2005 03:44:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgchange-cluster-filesystems/m-p/3621641#M19538</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2005-09-09T03:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: vgchange cluster filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vgchange-cluster-filesystems/m-p/3621642#M19539</link>
      <description>I wouldn't have a problem with *either* option.&lt;BR /&gt;&lt;BR /&gt;I would say that adding a 'vgchange -a n ...' wouldn't be any dirtier than than how we are already modifying /etc/rc.d/rc.sysinit when installing SG.&lt;BR /&gt;&lt;BR /&gt;Changing /linuxrc after modifying the kernel would be slightly safer, I suppose.  You could modify the 'mkinitrd' script to remind you to make the change when finished.  Of course, you always have to worry about updates and patches changing mkinitrd.  You could then have a cron job that checks mkinitrd for modification (e.g., cksum) and e-mail to remind you that the mkinitrd had been changed.&lt;BR /&gt;&lt;BR /&gt;I recently installed SG on RH ES3u5.&lt;BR /&gt;That /initrd/linuxrc doesn't have any vgchange (or any reference to LVM, for that matter). However, it is also not booting from LVM (no vg00), so I suspect that that's the reason.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FWIW&lt;BR /&gt;When I made the change to rc.sysinit, I left the vgscan intact:&lt;BR /&gt;&lt;BR /&gt;#x# action $"Setting up Logical Volume Management:" /sbin/vgscan &amp;amp;&amp;amp; /sbin/vgchange -a y # #20050729jrv&lt;BR /&gt;    action $"Setting up Logical Volume Management:" /sbin/vgscan # #20050729jrv&lt;BR /&gt;    ## activate nonSG VGs here manually #                          #20050729jrv&lt;BR /&gt;    : /sbin/vgchange -a y vgXX #                                   #20050729jrv&lt;BR /&gt;&lt;BR /&gt;Here, I had no non-SG VGs (not using LVM for vg00), so just my comments are extant.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Mon, 12 Sep 2005 10:28:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vgchange-cluster-filesystems/m-p/3621642#M19539</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2005-09-12T10:28:12Z</dc:date>
    </item>
  </channel>
</rss>

