<?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 Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355034#M686384</link>
    <description>Hello&lt;BR /&gt;&lt;BR /&gt;i assume that you have made an LV on a VG that is already activated and the Filesystems are already mounted by the package.&lt;BR /&gt;&lt;BR /&gt;but if this new FS is to be used by the package, this also needs to have an entry on the Filsystem Check and Mount Entries in the package Control file on both the nodes, which shall ensure that the New LV that you have created for that package gets checked and mounted automatically with the package start.&lt;BR /&gt;&lt;BR /&gt;this is additional thoght that you need to have while creating a new LV on a VG that is activated by the package.&lt;BR /&gt;also you need to craete the MountPoint directory to mount that LV on both the nodes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The actual suggested way to add a filesystem to a package is to do so by taking that package down.&lt;BR /&gt;&lt;BR /&gt;Also that helps you remain ensured after doing a package start and halt test on both the nodes.&lt;BR /&gt;&lt;BR /&gt;yes &lt;BR /&gt;&lt;BR /&gt;ON node1&lt;BR /&gt;#vgexport -p -v -s -m /tmp/vgXX.mapfile /dev/vgXX&lt;BR /&gt;#rcp -p /tmp/vgXX.mapfile &lt;NODE2&gt;:/tmp/&lt;BR /&gt;on node2&lt;BR /&gt;#vgexport /dev/vgXX&lt;BR /&gt;#mkdir /dev/vgXX&lt;BR /&gt;#mknod /dev/vgXX/group c 64 0xAAAAAA&lt;BR /&gt;keep this minor no 0xAAAAAA the same as that on the pry node node1&lt;BR /&gt;#vgimport -v -s -m /tmp/vgXX.mapfile /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;make necessary mount point dirctories on both node1 and node2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;edit the package conf file on both the nodes to add entry for checkand mount of this LV.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Check by starting/halting the package on both the nodes.&lt;BR /&gt;&lt;BR /&gt;so that you are sure that in case of a failover scenario to the node2 the package starts and runs satisfactorily.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;sujit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/NODE2&gt;</description>
    <pubDate>Tue, 10 Feb 2009 10:19:35 GMT</pubDate>
    <dc:creator>sujit kumar singh</dc:creator>
    <dc:date>2009-02-10T10:19:35Z</dc:date>
    <item>
      <title>Vgchange Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355028#M686378</link>
      <description>While a SG'ed system is running, in production, can one safely perform a "vgchange -a n" on a VG which has mounted SG filesystems?  Will it unmount the filesystems in that VG?  Will it screw up the Serviceguard package?  I created a new filesystem for a package and need to export the vgmap to the other nodes, and it says I need to vgchange -a n first.  Thanks.</description>
      <pubDate>Mon, 09 Feb 2009 19:20:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355028#M686378</guid>
      <dc:creator>cuppajo</dc:creator>
      <dc:date>2009-02-09T19:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Vgchange Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355029#M686379</link>
      <description>&amp;gt;&amp;gt;safely perform a "vgchange -a n" on a VG &lt;BR /&gt;&amp;gt;&amp;gt;which has mounted SG filesystems?&lt;BR /&gt;&lt;BR /&gt;No, you will get an error if you try to deactivate a VG without mounted file systems.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;I created a new filesystem for a package and &lt;BR /&gt;&amp;gt;&amp;gt;need to export the vgmap to the other nodes,&lt;BR /&gt;&lt;BR /&gt;Add the '-p' (preview) option.&lt;BR /&gt;&lt;BR /&gt;# vgexport -m mapfile -s -p vg??&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Feb 2009 19:31:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355029#M686379</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-02-09T19:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Vgchange Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355030#M686380</link>
      <description>I've attached a how to doc with instructions. The answer to your question depends on whether or not the volume group was created with the package up or down. &lt;BR /&gt;&lt;BR /&gt;If the VG was created with the package down, deactivate the VG:&lt;BR /&gt;# vgchange -a n vg01&lt;BR /&gt;&lt;BR /&gt;Create a map file prior to vgimport'ing the VG on other nodes.  &lt;BR /&gt;# vgexport -pvs -m /etc/lvmconf/map.vg01 vg01&lt;BR /&gt;&lt;BR /&gt;Copy the map file to the other nodes.  Example:&lt;BR /&gt;# rcp /etc/lvmconf/map.vg01(othernode):/etc/lvmconf/map.vg01&lt;BR /&gt;NOTE:  "othernode" is a reference to the hostname of the destination server&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Feb 2009 19:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355030#M686380</guid>
      <dc:creator>S. Ney</dc:creator>
      <dc:date>2009-02-09T19:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Vgchange Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355031#M686381</link>
      <description>Yes, Sandi, my instructions are like that.  Just wasn't sure if I should vgchange -a n when the vg has mounted filesystems running.  No one likes an outage.</description>
      <pubDate>Mon, 09 Feb 2009 19:54:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355031#M686381</guid>
      <dc:creator>cuppajo</dc:creator>
      <dc:date>2009-02-09T19:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Vgchange Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355032#M686382</link>
      <description>Absolutely NO NEED to deactivate the VG to create your map file.  Follow my instructions above and you will be fine!  &lt;BR /&gt;&lt;BR /&gt;How the VG was create is not relevant.</description>
      <pubDate>Mon, 09 Feb 2009 20:00:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355032#M686382</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-02-09T20:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Vgchange Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355033#M686383</link>
      <description>&lt;BR /&gt;Volume groups cannot be deactivated if filesystems are mounted and in use.&lt;BR /&gt;&lt;BR /&gt;If filesystems that a package mounts in manually umounted and a volume group deactivated while a package is running it can be done but if the package then tries to shutdown it will experience errors running the stop script since the LVs and VGs are already unmounted.  This will be a run script error.&lt;BR /&gt;&lt;BR /&gt;Normally when a serviceguard package shuts down it does a &lt;BR /&gt;&lt;BR /&gt;fuser -ku&lt;BR /&gt;&lt;BR /&gt;of each mount point that belongs to a package so it can umount the filesystems.&lt;BR /&gt;&lt;BR /&gt;You can create a new volume group and filesystem and export the volume group with a preview mode to create a map file so you can import it on the other node.&lt;BR /&gt;&lt;BR /&gt;If you are real careful you could add the vgs and LVs to the package and hope that you edited the script right when it shuts down.  &lt;BR /&gt;&lt;BR /&gt;I would suggest that you shutdown the package first, add the VG and LVs to the package and start the new larger package to test it and make sure it starts and stops everything.&lt;BR /&gt;&lt;BR /&gt;I hope this helps.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Feb 2009 00:57:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355033#M686383</guid>
      <dc:creator>Emil Velez</dc:creator>
      <dc:date>2009-02-10T00:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Vgchange Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355034#M686384</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;i assume that you have made an LV on a VG that is already activated and the Filesystems are already mounted by the package.&lt;BR /&gt;&lt;BR /&gt;but if this new FS is to be used by the package, this also needs to have an entry on the Filsystem Check and Mount Entries in the package Control file on both the nodes, which shall ensure that the New LV that you have created for that package gets checked and mounted automatically with the package start.&lt;BR /&gt;&lt;BR /&gt;this is additional thoght that you need to have while creating a new LV on a VG that is activated by the package.&lt;BR /&gt;also you need to craete the MountPoint directory to mount that LV on both the nodes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The actual suggested way to add a filesystem to a package is to do so by taking that package down.&lt;BR /&gt;&lt;BR /&gt;Also that helps you remain ensured after doing a package start and halt test on both the nodes.&lt;BR /&gt;&lt;BR /&gt;yes &lt;BR /&gt;&lt;BR /&gt;ON node1&lt;BR /&gt;#vgexport -p -v -s -m /tmp/vgXX.mapfile /dev/vgXX&lt;BR /&gt;#rcp -p /tmp/vgXX.mapfile &lt;NODE2&gt;:/tmp/&lt;BR /&gt;on node2&lt;BR /&gt;#vgexport /dev/vgXX&lt;BR /&gt;#mkdir /dev/vgXX&lt;BR /&gt;#mknod /dev/vgXX/group c 64 0xAAAAAA&lt;BR /&gt;keep this minor no 0xAAAAAA the same as that on the pry node node1&lt;BR /&gt;#vgimport -v -s -m /tmp/vgXX.mapfile /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;make necessary mount point dirctories on both node1 and node2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;edit the package conf file on both the nodes to add entry for checkand mount of this LV.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Check by starting/halting the package on both the nodes.&lt;BR /&gt;&lt;BR /&gt;so that you are sure that in case of a failover scenario to the node2 the package starts and runs satisfactorily.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;sujit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/NODE2&gt;</description>
      <pubDate>Tue, 10 Feb 2009 10:19:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355034#M686384</guid>
      <dc:creator>sujit kumar singh</dc:creator>
      <dc:date>2009-02-10T10:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Vgchange Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355035#M686385</link>
      <description>Fantastic.  Thanks for all your help.</description>
      <pubDate>Tue, 10 Feb 2009 16:01:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgchange-question/m-p/4355035#M686385</guid>
      <dc:creator>cuppajo</dc:creator>
      <dc:date>2009-02-10T16:01:34Z</dc:date>
    </item>
  </channel>
</rss>

