<?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: Cluster Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444637#M357872</link>
    <description>Hi Razi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;is it possible to do this without halting the package &amp;lt;&amp;lt; &lt;BR /&gt;&lt;BR /&gt;step1 :- vgextend /dev/vgxx &lt;DISK_NAME&gt; &lt;BR /&gt;&lt;BR /&gt;step2:- lvcreate -L &lt;LV_SIZE&gt; /dev/vgxx/lvolxx &lt;BR /&gt;fsadm -F vxfs -o largefiles /dev/vgxx/lvolxx &lt;BR /&gt;&lt;BR /&gt;step3 :- vgexport -pvs -m &lt;MAPFILE&gt; /dev/vgxx &lt;BR /&gt;&lt;BR /&gt;step3:- Copy the mapfile to the other node &lt;BR /&gt;&lt;BR /&gt;step4 :- Activate in share mode &lt;BR /&gt;vgchange -a s /dev/vgxx &lt;BR /&gt;&lt;BR /&gt;On the other node: &lt;BR /&gt;&lt;BR /&gt;1. Export the VG &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;vgexport /dev/vgxx &lt;BR /&gt;&lt;BR /&gt;2. Recreate the directory &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;mkdir -p /dev/vgxx &lt;BR /&gt;&lt;BR /&gt;3. Recreate the VG group file &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;mknod /dev/vgxx/group c 64 0xMM0000 &lt;BR /&gt;where MM is a unique identifier (ex 01 for vg01) &lt;BR /&gt;&lt;BR /&gt;4. Preview the vgimport to check for any possible error &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;vgimport -pvs -m &lt;MAPFILE&gt; /dev/vgxx &lt;BR /&gt;where mapfile is the one copied from the first node &lt;BR /&gt;&lt;BR /&gt;5. If no error, remove the preview mode &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;vgimport -vs -m &lt;MAPFILE&gt; /dev/vgxx &lt;BR /&gt;&lt;BR /&gt;6. Activate in share mode &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;vgchange -a s /dev/vgxx &lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;CREATE a="" new="" filesystem=""&gt;&amp;gt; &lt;BR /&gt;&lt;BR /&gt;need add entry to pkg.ctnl.file on the both nodes (if you mount the file system by package)&lt;BR /&gt;&lt;BR /&gt;Rgds-Kranti&lt;/CREATE&gt;&lt;/MAPFILE&gt;&lt;/MAPFILE&gt;&lt;/MAPFILE&gt;&lt;/LV_SIZE&gt;&lt;/DISK_NAME&gt;</description>
    <pubDate>Tue, 23 Jun 2009 02:37:02 GMT</pubDate>
    <dc:creator>Kranti Mahmud</dc:creator>
    <dc:date>2009-06-23T02:37:02Z</dc:date>
    <item>
      <title>Cluster Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444633#M357868</link>
      <description>I have one question regarding adding logical volume or a file system to a cluster package. Do we need to shutdown the package for that? I know its recommended but is that necessary? Is there any way we can add logical volume to a cluster without halting the package?</description>
      <pubDate>Mon, 22 Jun 2009 18:45:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444633#M357868</guid>
      <dc:creator>Waqar Razi</dc:creator>
      <dc:date>2009-06-22T18:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444634#M357869</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The answer is it depends.&lt;BR /&gt;&lt;BR /&gt;Adding a logical volume to a volume group on shared storage alone does not require package shutdown.&lt;BR /&gt;&lt;BR /&gt;lvextend an existing logical volume to a new physical volume in the volume group also does not require a package shutdown.&lt;BR /&gt;&lt;BR /&gt;extendfs, which extends a filesystem to a new physical disk requires umount and would require a package shut down. OnlineJFS would avoid this problem if installed.&lt;BR /&gt;&lt;BR /&gt;To read your question literally. To add a new logical volume to a volume group that is activated by a SG/Cluster package does not require package shut down.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 22 Jun 2009 19:02:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444634#M357869</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-06-22T19:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444635#M357870</link>
      <description>Hey steven,&lt;BR /&gt;&lt;BR /&gt;Here are the steps for adding a logical volume to a package. I got these from HP SG guide.  Can you make some amendments in it to make this plan perfect so that we just not need to shutdown the application or halt the package.&lt;BR /&gt;&lt;BR /&gt;On the primary:&lt;BR /&gt;&lt;BR /&gt;# cmhaltpkg -v package_name&lt;BR /&gt;&lt;BR /&gt;# vgchange -a e vg02&lt;BR /&gt;&lt;BR /&gt;# lvcreate -L size -n lvol_name /dev/vg02&lt;BR /&gt;&lt;BR /&gt;# newfs -F vxfs /dev/vg02/rlvol_name&lt;BR /&gt;&lt;BR /&gt;# mkdir /new_mount_point&lt;BR /&gt;&lt;BR /&gt;# vgexport -v -s -p -m /etc/lvmconf/vg02.map vg02&lt;BR /&gt;&lt;BR /&gt;(this will create a new map file that now includes new logical volume)&lt;BR /&gt;&lt;BR /&gt;# vgchange -a n vg02&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;â ¢ On the adoptive:&lt;BR /&gt;&lt;BR /&gt;# cd /etc/lvmconf&lt;BR /&gt;&lt;BR /&gt;# rcp &lt;PRIMARY_NODE&gt;:/etc/lvmconf/vg02.map .&lt;BR /&gt;&lt;BR /&gt;# mkdir /new_mount_point (needed on both systems)&lt;BR /&gt;&lt;BR /&gt;# vgexport -v /dev/vg02&lt;BR /&gt;&lt;BR /&gt;# mkdir /dev/vg02&lt;BR /&gt;&lt;BR /&gt;# mknod /dev/vg02/group c 64 0x020000&lt;BR /&gt;&lt;BR /&gt;# vgimport -v -s -m /etc/lvmconf/vg02.map vg02&lt;BR /&gt;&lt;BR /&gt;# vgchange â  a r vg02&lt;BR /&gt;&lt;BR /&gt;# vgcfgbackup vg02&lt;BR /&gt;&lt;BR /&gt;# vgchange â  a n vg02&lt;BR /&gt;&lt;BR /&gt;&lt;/PRIMARY_NODE&gt;</description>
      <pubDate>Mon, 22 Jun 2009 19:13:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444635#M357870</guid>
      <dc:creator>Waqar Razi</dc:creator>
      <dc:date>2009-06-22T19:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444636#M357871</link>
      <description>well, the procedure you copied is fine even if you skip shutting down the package on the primary node. It works fine.&lt;BR /&gt;&lt;BR /&gt;One caveat:&lt;BR /&gt;There is a missing point in it. If you edit the package control script, you will see lines looking like :&lt;BR /&gt;&lt;BR /&gt;LV[1]=/dev/vg01/lvol2; FS[1]=/pkg01b; FS_MOUNT_OPT[1]="-o rw" &lt;BR /&gt;&lt;BR /&gt;you need to add another one of these into the package control script, of course using the index of the last similar line +1. &lt;BR /&gt;&lt;BR /&gt;Then it should be fine</description>
      <pubDate>Tue, 23 Jun 2009 00:21:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444636#M357871</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-06-23T00:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444637#M357872</link>
      <description>Hi Razi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;is it possible to do this without halting the package &amp;lt;&amp;lt; &lt;BR /&gt;&lt;BR /&gt;step1 :- vgextend /dev/vgxx &lt;DISK_NAME&gt; &lt;BR /&gt;&lt;BR /&gt;step2:- lvcreate -L &lt;LV_SIZE&gt; /dev/vgxx/lvolxx &lt;BR /&gt;fsadm -F vxfs -o largefiles /dev/vgxx/lvolxx &lt;BR /&gt;&lt;BR /&gt;step3 :- vgexport -pvs -m &lt;MAPFILE&gt; /dev/vgxx &lt;BR /&gt;&lt;BR /&gt;step3:- Copy the mapfile to the other node &lt;BR /&gt;&lt;BR /&gt;step4 :- Activate in share mode &lt;BR /&gt;vgchange -a s /dev/vgxx &lt;BR /&gt;&lt;BR /&gt;On the other node: &lt;BR /&gt;&lt;BR /&gt;1. Export the VG &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;vgexport /dev/vgxx &lt;BR /&gt;&lt;BR /&gt;2. Recreate the directory &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;mkdir -p /dev/vgxx &lt;BR /&gt;&lt;BR /&gt;3. Recreate the VG group file &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;mknod /dev/vgxx/group c 64 0xMM0000 &lt;BR /&gt;where MM is a unique identifier (ex 01 for vg01) &lt;BR /&gt;&lt;BR /&gt;4. Preview the vgimport to check for any possible error &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;vgimport -pvs -m &lt;MAPFILE&gt; /dev/vgxx &lt;BR /&gt;where mapfile is the one copied from the first node &lt;BR /&gt;&lt;BR /&gt;5. If no error, remove the preview mode &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;vgimport -vs -m &lt;MAPFILE&gt; /dev/vgxx &lt;BR /&gt;&lt;BR /&gt;6. Activate in share mode &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;vgchange -a s /dev/vgxx &lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;CREATE a="" new="" filesystem=""&gt;&amp;gt; &lt;BR /&gt;&lt;BR /&gt;need add entry to pkg.ctnl.file on the both nodes (if you mount the file system by package)&lt;BR /&gt;&lt;BR /&gt;Rgds-Kranti&lt;/CREATE&gt;&lt;/MAPFILE&gt;&lt;/MAPFILE&gt;&lt;/MAPFILE&gt;&lt;/LV_SIZE&gt;&lt;/DISK_NAME&gt;</description>
      <pubDate>Tue, 23 Jun 2009 02:37:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444637#M357872</guid>
      <dc:creator>Kranti Mahmud</dc:creator>
      <dc:date>2009-06-23T02:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444638#M357873</link>
      <description>I have one more question here, what is the difference between activating the VG in shared (-s) and exclusive (-e) mode. &lt;BR /&gt;&lt;BR /&gt;Lets say on the primary node if the pkg is up:&lt;BR /&gt;&lt;BR /&gt;1- Can we switch the modes of VG (vgchange) while the package is up or do we need to halt the pkg?&lt;BR /&gt;&lt;BR /&gt;2- Do we need to switch to shared mode with -s switch if we want to add some LV or file system to the pkg?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3- While transferring the changes to the adoptive node, while we activate the VG there with -s, Do we need to deactivate it on the primary node first.&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Jun 2009 14:07:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444638#M357873</guid>
      <dc:creator>Waqar Razi</dc:creator>
      <dc:date>2009-06-23T14:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444639#M357874</link>
      <description>shared mode activation is used for volume groups which are going to be simultaneously activated on more than one node. &lt;BR /&gt;&lt;BR /&gt;exclusive activation, as far as I know is only for cluster controlled volume groups. Once activated in this mode, the volume group can not be simultaneously activated on another node sharing the same storage but when the exclusivity lock gets removed, i.e. package goes down on the original node, it can be activated on one other place. It actually is a flag that tells peple who want to activate this volume group with straight activation as in &lt;BR /&gt;&lt;BR /&gt;vgchange -a y vgname&lt;BR /&gt;&lt;BR /&gt;that volume group is under cluster control and should not be treated as a regular vg. Wheras shared activation, i.e.&lt;BR /&gt;&lt;BR /&gt;vgchange -a s vgname &lt;BR /&gt;&lt;BR /&gt;can be activated on multiple nodes at the same time. At this point, it is upto the application to track the sanity of data by employing file locking and what not. Again, as far as I know, LVM does not provide any file locking for shared activated vg's. &lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Jun 2009 15:17:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444639#M357874</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-06-23T15:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444640#M357875</link>
      <description>hi Waqar, u need to do the followinng to add an lv to a cluster package.&lt;BR /&gt;&lt;BR /&gt;1) create the lv.&lt;BR /&gt;2) put in the package control file its entry.&lt;BR /&gt;3) RCP it to the other nodes control file.&lt;BR /&gt;&lt;BR /&gt;Ofcourse do an insf -e disk on the other node as well because incase the packsge fails over the other node should have the device files for the disks on which the new lv was made.&lt;BR /&gt;&lt;BR /&gt;You never really shutdown a package but u move it around different cluster nodes if u need to do maintainance on one node.</description>
      <pubDate>Wed, 24 Jun 2009 15:17:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444640#M357875</guid>
      <dc:creator>khilari</dc:creator>
      <dc:date>2009-06-24T15:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444641#M357876</link>
      <description>Hi Waqar,&lt;BR /&gt;&lt;BR /&gt;Check the following link for more info:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cs.bgu.ac.il/~arik/usail/man/hpux/vgchange.1.html" target="_blank"&gt;http://www.cs.bgu.ac.il/~arik/usail/man/hpux/vgchange.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds-kranti</description>
      <pubDate>Thu, 25 Jun 2009 02:07:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cluster-question/m-p/4444641#M357876</guid>
      <dc:creator>Kranti Mahmud</dc:creator>
      <dc:date>2009-06-25T02:07:03Z</dc:date>
    </item>
  </channel>
</rss>

