<?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: create new vg under SG cluster in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267901#M659898</link>
    <description>&lt;!--!*#--&gt;Hey;&lt;BR /&gt;&lt;BR /&gt;You can't export a single disk out of a three disk vg so the mirroring suggestion won't work as advertised.&lt;BR /&gt;&lt;BR /&gt;You'll have to take an outage on the database so my suggestion would be to shut down the package then manually activate the volume groups.&lt;BR /&gt;&lt;BR /&gt;You'll also want to temporarily shut down cron so that nothing kicks off automatically while you're running your copy - backups and automatic database restarts will ruin your day.&lt;BR /&gt;&lt;BR /&gt;Lastly, you didn't say what flavor of database - raw/cooked filesystems, nor how large.  &lt;BR /&gt;&lt;BR /&gt;So, before doing anything: create a table of the lvs that need to be copied over.&lt;BR /&gt;&lt;BR /&gt;/dev/vgvedas/ora_sys.dbf     500 RAW oraedas:dba&lt;BR /&gt;/dev/vgvedas/ora_users.dbf 10240 RAW oraedas:dba&lt;BR /&gt;/dev/vgvedas/oracle         2048 /oracle oraedas:dba&lt;BR /&gt;&lt;BR /&gt;etc&lt;BR /&gt;&lt;BR /&gt;Create the new volume group and new lvs:&lt;BR /&gt;&lt;BR /&gt;# assuming lvm ver1&lt;BR /&gt;mkdir /dev/vgdb&lt;BR /&gt;mknod /dev/vgdb c 64 0x0#0000&lt;BR /&gt;pvcreate /dev/rdsk/${new_pv}&lt;BR /&gt;vgcreate -e 10000 -s 8 -i 255 -p 64 vgdb /dev/dsk/${new_pv}&lt;BR /&gt;vgchange -a y vgdb&lt;BR /&gt;&lt;BR /&gt;cat table| while read lv size mp owner&lt;BR /&gt;do&lt;BR /&gt;echo "############################"&lt;BR /&gt;echo lvcreate -L ${size} -n ${lv##*/} vgdb&lt;BR /&gt;vcreate -L ${size} -n ${lv##*/} vgdb&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;All that can (and should) be done prior to the outage start.&lt;BR /&gt;&lt;BR /&gt;When the outage starts:&lt;BR /&gt;&lt;BR /&gt;1.  Shutdown the database and package.  (cmhaltpkg)&lt;BR /&gt;2.  /sbin/init.d/cron stop.  &lt;BR /&gt;3.  vgchange -a e vgvedas&lt;BR /&gt;4.  Copy the data&lt;BR /&gt;&lt;BR /&gt;cat table | while read olv size mp owner&lt;BR /&gt;do&lt;BR /&gt;echo ${olv}&lt;BR /&gt;nlv=/dev/vgdb/${olv##*/}&lt;BR /&gt;echo dd if=${olv} of=${nlv} bs=1024k&lt;BR /&gt;dd if=${olv} of=${nlv} bs=1024k &amp;amp;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;5.  When the dd's finish, update raw volume ownership (if needed) and any database definitions to point the database to the new volume group.  You'll want to bring the database up on the new volume group to make sure everything's working right before continuing.&lt;BR /&gt;&lt;BR /&gt;If you're using oracle and raw volumes, if you're smart, your datafiles are symlinks to the actual raw volumes.  That being the case, it's simply a matter of updating the symlinks.  If you're using cooked or direct raw volumes, you're in for a whole bunch of &lt;BR /&gt;&lt;BR /&gt;alter database rename file '${old_file}' to '${new_file}';&lt;BR /&gt;&lt;BR /&gt;The key point here, though, is to make sure the database comes up on the new disk before proceeding further.&lt;BR /&gt;&lt;BR /&gt;6.  Deactivate the volume groups:&lt;BR /&gt;&lt;BR /&gt;vgchange -a n vgvedas&lt;BR /&gt;vgchange -a n vgdb&lt;BR /&gt;vgchange -c y vgdb&lt;BR /&gt;&lt;BR /&gt;7.  Update the package configuration to reflect the new vgs &lt;BR /&gt;&lt;BR /&gt;8.  Update the package configuration to reflect the new lvs if they're to be mounted.&lt;BR /&gt;&lt;BR /&gt;9.  start the package &lt;BR /&gt;&lt;BR /&gt;10.  restart cron: /sbin/init.d/cron start&lt;BR /&gt;&lt;BR /&gt;11.  Go get a beer.&lt;BR /&gt;&lt;BR /&gt;Even on small migrations, there's a lot of things that need to be kept in sync.  Oracle, in particular, is *very* twitchy about datafiles being out of sync.  If you're copying filesystems, you want to make sure no one is logging into the box and changing files while you're copying.  That's also the reason to stop cron - no changes while you're copying.&lt;BR /&gt;&lt;BR /&gt;wow. That's a lot of typing; but, I was bored.  Everyone else is on vacation this week and there's not even service calls to do at work :)&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;Doug</description>
    <pubDate>Thu, 30 Dec 2010 16:30:14 GMT</pubDate>
    <dc:creator>Doug O'Leary</dc:creator>
    <dc:date>2010-12-30T16:30:14Z</dc:date>
    <item>
      <title>create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267896#M659893</link>
      <description>Hi exparts,&lt;BR /&gt;&lt;BR /&gt;i have rp8440 with 11iv1 in SG cluster environment with EVA8400.&lt;BR /&gt;&lt;BR /&gt;currently i have one volume group name "vgvedas" with two PV running application and DB. now i have another new pv. i like to make new vg name "vgdb" with that new pv. after that i need to copy all 10 lvols (database) from "vgvedas" to "vgdb" finally i will have two vg.&lt;BR /&gt;how can i copy data from one vg to another vg.&lt;BR /&gt;what i have to do for cluster and package.&lt;BR /&gt;&lt;BR /&gt;please help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Morshed.</description>
      <pubDate>Thu, 30 Dec 2010 06:30:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267896#M659893</guid>
      <dc:creator>mrmo07</dc:creator>
      <dc:date>2010-12-30T06:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267897#M659894</link>
      <description>Is that new PV is big enough / same size of vgvedas size ?  &lt;BR /&gt;&lt;BR /&gt;Best option, you add this new LUN to vgdevas, then mirror it to all lvols.  After that split the mirror, remove your old LUNs.  So, your data is in your new LUN ( PV ).  Now, you may have to do vgexport and vgimport to rename this or to create a new VG called vgdb.&lt;BR /&gt;&lt;BR /&gt;Another good discussion can be found here.  Similar thought.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1293697803548+28353475&amp;amp;threadId=542172" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1293697803548+28353475&amp;amp;threadId=542172&lt;/A&gt;</description>
      <pubDate>Thu, 30 Dec 2010 08:35:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267897#M659894</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2010-12-30T08:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267898#M659895</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;could you please explain little bit more with command line. &lt;BR /&gt;&lt;BR /&gt;plzzzzzzz&lt;BR /&gt;&lt;BR /&gt;Rgds/Morshed</description>
      <pubDate>Thu, 30 Dec 2010 08:47:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267898#M659895</guid>
      <dc:creator>mrmo07</dc:creator>
      <dc:date>2010-12-30T08:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267899#M659896</link>
      <description>You haven't answered to my query yet.  Is this new PV is bigger than, the size of your existing vg vgvedas ?  If it is bigger, then the following procedure will work out.&lt;BR /&gt;&lt;BR /&gt;1. pvcreate /dev/rdsk/&lt;NEWDISK&gt;&lt;BR /&gt;2. vgextend /dev/vgvedas /dev/dsk/&lt;NEWDISK&gt;&lt;BR /&gt;3. lvextend -m 1 /dev/vgvedas/lvol1 /dev/dsk/&lt;NEWDISK&gt;&lt;BR /&gt;4. Repeat the above till you completely mirroring to all lvols.&lt;BR /&gt;5.  Make sure, your all lvols have mirror copy 1 and sync status.&lt;BR /&gt;6.  Now, break the mirror.  &lt;BR /&gt;lvreduce -m 0 /dev/vgvedas/lvol1 /dev/dsk/&lt;NEWDISK&gt;&lt;BR /&gt;&lt;BR /&gt;7.  Repeat it till you break all mirror copies from all lvols.&lt;BR /&gt;&lt;BR /&gt;8. Now, remove the disk from vg&lt;BR /&gt;vgreduce /dev/vgvedas /dev/dsk/&lt;NEWDISK&gt;&lt;BR /&gt;&lt;BR /&gt;Now, you have data on your new disk.&lt;BR /&gt;&lt;BR /&gt;Now, create directories and group files for your new vg.&lt;BR /&gt;&lt;BR /&gt;1 mkdir /dev/vgdb&lt;BR /&gt;2 mknod /dev/vgdb/group c 64 &lt;MINOR no=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now, export your existing VG structure.&lt;BR /&gt;&lt;BR /&gt;vgexport -pvs -m /tmp/vgvedas.map /dev/vgvedas&lt;BR /&gt;&lt;BR /&gt;Now, import this VG structure to your new disk.&lt;BR /&gt;&lt;BR /&gt;vgimport -v -m /tmp/vgvedas.map /dev/vgdb/dev/dsk/&lt;NEWDISK&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I HAVEN'T TESTED THIS.  But I believe, this will work out.  Please test with at lease one small lv before doing it on all lvols.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/NEWDISK&gt;&lt;/MINOR&gt;&lt;/NEWDISK&gt;&lt;/NEWDISK&gt;&lt;/NEWDISK&gt;&lt;/NEWDISK&gt;&lt;/NEWDISK&gt;</description>
      <pubDate>Thu, 30 Dec 2010 12:04:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267899#M659896</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2010-12-30T12:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267900#M659897</link>
      <description>Almost...but you must remember that when you added that disk to the vgedas volume group it became a member of that vg, with the vgid existing on that disk - so that vgimport will not work.&lt;BR /&gt;&lt;BR /&gt;Just simply create a new volume group like normal, with a new file system and mount it.&lt;BR /&gt;It is a simple matter of copying the data from one f/s to the new f/s.  Or you could tar it up and untar it on the new f/s. Or you could back up the data and restore it to the new f/s.&lt;BR /&gt;So many options...&lt;BR /&gt;&lt;BR /&gt;Then just update the new volume group into the cluster/package - clean up the old f/s - &lt;BR /&gt;...and your done!&lt;BR /&gt;&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita</description>
      <pubDate>Thu, 30 Dec 2010 15:36:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267900#M659897</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2010-12-30T15:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267901#M659898</link>
      <description>&lt;!--!*#--&gt;Hey;&lt;BR /&gt;&lt;BR /&gt;You can't export a single disk out of a three disk vg so the mirroring suggestion won't work as advertised.&lt;BR /&gt;&lt;BR /&gt;You'll have to take an outage on the database so my suggestion would be to shut down the package then manually activate the volume groups.&lt;BR /&gt;&lt;BR /&gt;You'll also want to temporarily shut down cron so that nothing kicks off automatically while you're running your copy - backups and automatic database restarts will ruin your day.&lt;BR /&gt;&lt;BR /&gt;Lastly, you didn't say what flavor of database - raw/cooked filesystems, nor how large.  &lt;BR /&gt;&lt;BR /&gt;So, before doing anything: create a table of the lvs that need to be copied over.&lt;BR /&gt;&lt;BR /&gt;/dev/vgvedas/ora_sys.dbf     500 RAW oraedas:dba&lt;BR /&gt;/dev/vgvedas/ora_users.dbf 10240 RAW oraedas:dba&lt;BR /&gt;/dev/vgvedas/oracle         2048 /oracle oraedas:dba&lt;BR /&gt;&lt;BR /&gt;etc&lt;BR /&gt;&lt;BR /&gt;Create the new volume group and new lvs:&lt;BR /&gt;&lt;BR /&gt;# assuming lvm ver1&lt;BR /&gt;mkdir /dev/vgdb&lt;BR /&gt;mknod /dev/vgdb c 64 0x0#0000&lt;BR /&gt;pvcreate /dev/rdsk/${new_pv}&lt;BR /&gt;vgcreate -e 10000 -s 8 -i 255 -p 64 vgdb /dev/dsk/${new_pv}&lt;BR /&gt;vgchange -a y vgdb&lt;BR /&gt;&lt;BR /&gt;cat table| while read lv size mp owner&lt;BR /&gt;do&lt;BR /&gt;echo "############################"&lt;BR /&gt;echo lvcreate -L ${size} -n ${lv##*/} vgdb&lt;BR /&gt;vcreate -L ${size} -n ${lv##*/} vgdb&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;All that can (and should) be done prior to the outage start.&lt;BR /&gt;&lt;BR /&gt;When the outage starts:&lt;BR /&gt;&lt;BR /&gt;1.  Shutdown the database and package.  (cmhaltpkg)&lt;BR /&gt;2.  /sbin/init.d/cron stop.  &lt;BR /&gt;3.  vgchange -a e vgvedas&lt;BR /&gt;4.  Copy the data&lt;BR /&gt;&lt;BR /&gt;cat table | while read olv size mp owner&lt;BR /&gt;do&lt;BR /&gt;echo ${olv}&lt;BR /&gt;nlv=/dev/vgdb/${olv##*/}&lt;BR /&gt;echo dd if=${olv} of=${nlv} bs=1024k&lt;BR /&gt;dd if=${olv} of=${nlv} bs=1024k &amp;amp;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;5.  When the dd's finish, update raw volume ownership (if needed) and any database definitions to point the database to the new volume group.  You'll want to bring the database up on the new volume group to make sure everything's working right before continuing.&lt;BR /&gt;&lt;BR /&gt;If you're using oracle and raw volumes, if you're smart, your datafiles are symlinks to the actual raw volumes.  That being the case, it's simply a matter of updating the symlinks.  If you're using cooked or direct raw volumes, you're in for a whole bunch of &lt;BR /&gt;&lt;BR /&gt;alter database rename file '${old_file}' to '${new_file}';&lt;BR /&gt;&lt;BR /&gt;The key point here, though, is to make sure the database comes up on the new disk before proceeding further.&lt;BR /&gt;&lt;BR /&gt;6.  Deactivate the volume groups:&lt;BR /&gt;&lt;BR /&gt;vgchange -a n vgvedas&lt;BR /&gt;vgchange -a n vgdb&lt;BR /&gt;vgchange -c y vgdb&lt;BR /&gt;&lt;BR /&gt;7.  Update the package configuration to reflect the new vgs &lt;BR /&gt;&lt;BR /&gt;8.  Update the package configuration to reflect the new lvs if they're to be mounted.&lt;BR /&gt;&lt;BR /&gt;9.  start the package &lt;BR /&gt;&lt;BR /&gt;10.  restart cron: /sbin/init.d/cron start&lt;BR /&gt;&lt;BR /&gt;11.  Go get a beer.&lt;BR /&gt;&lt;BR /&gt;Even on small migrations, there's a lot of things that need to be kept in sync.  Oracle, in particular, is *very* twitchy about datafiles being out of sync.  If you're copying filesystems, you want to make sure no one is logging into the box and changing files while you're copying.  That's also the reason to stop cron - no changes while you're copying.&lt;BR /&gt;&lt;BR /&gt;wow. That's a lot of typing; but, I was bored.  Everyone else is on vacation this week and there's not even service calls to do at work :)&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Thu, 30 Dec 2010 16:30:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267901#M659898</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2010-12-30T16:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267902#M659899</link>
      <description>Morshed,&lt;BR /&gt;&lt;BR /&gt;The simplest way of approach is here&lt;BR /&gt;&lt;BR /&gt;1. Backup all configuration files on system(s) like /etc/lvmtab to /etc/lvmtab.orig&lt;BR /&gt;# cp â  Rp  /etc/cmcluster/package_file/etc/cmcluster/package_file.orig&lt;BR /&gt;&lt;BR /&gt;On node 1&lt;BR /&gt;2. Create the physical volume&lt;BR /&gt;#pvcreate /dev/rdsk/cxtyd1&lt;BR /&gt;#pvcreate /dev/rdsk/cxtyd2&lt;BR /&gt;3. #mkdir /dev/vgdb&lt;BR /&gt;4. Create device file to new Volume group&lt;BR /&gt; #mknod /dev/vgdb/group c 64 0x#0000&lt;BR /&gt;5. Create the new volume groups&lt;BR /&gt;#vgcreate /dev/vgdb /dev/rdsk/cxtyd1 /dev/rdsk/cxtyd2&lt;BR /&gt;6. Create the new logical volumes&lt;BR /&gt;#lvcreate â  L size_in_MB â  n lvol_name /dev/vgdb&lt;BR /&gt;&lt;BR /&gt;7. Create the new filesystems&lt;BR /&gt;#newfs â  F vxfs â  o largefiles /dev/vgdb/rlvol_name&lt;BR /&gt;8. Create the new mount point directory&lt;BR /&gt;# mkdir /vgdbdata ( as per your requirement)&lt;BR /&gt;9. Mount the new vgdb filesystem&lt;BR /&gt;# mount /dev/vgdb/lvol_name /vgdbdata&lt;BR /&gt;&lt;BR /&gt;From here onwards we need the downtime of Database , application and cluster package.&lt;BR /&gt;As you mentioned in your query , assuming your esisting vg is in cluster mode&lt;BR /&gt;10. Halt the package(s)&lt;BR /&gt; #cmhaltpkg  -v pkg_name&lt;BR /&gt;&lt;BR /&gt;11. Activate the all cluster VGs manually.&lt;BR /&gt; # vgchange â  a e vgvedas  &amp;lt;- assuming this is in lcuster&lt;BR /&gt;&lt;BR /&gt;12. Mount the all cluster filesystems manually&lt;BR /&gt;#mount /dev/vgvedas/lvol_name  /current_mount&lt;BR /&gt;13. Copy the data from existing filesystems to new filesytesms&lt;BR /&gt;# cp â  Rp /current_mount/* /vgdbdata&lt;BR /&gt;#bdf check the size of the copied is same as on old existing mount&lt;BR /&gt;&lt;BR /&gt;Note: If you are running Oracle database it is advisable to use dd command. As I have personal experience that not able to copy using cp command for Oracle mounts&lt;BR /&gt;&lt;BR /&gt;# /usr/bin/dd if=/current_mount of vgvedas of=/vgdbdata&lt;BR /&gt;&lt;BR /&gt;#bdf check the size of the copied is same as on old existing mount&lt;BR /&gt;14. Once copy is completed, unmount both filesystems&lt;BR /&gt;&lt;BR /&gt;# umount /vgdbdata&lt;BR /&gt;# umount /current_mount of vgvedas&lt;BR /&gt;&lt;BR /&gt;15.  Edit the cluster cntl file and made changes below.&lt;BR /&gt; #vi /etc/cmcluster/pakg_dir/pkg.cntl&lt;BR /&gt; VG[0]=vgvedas&lt;BR /&gt; VG[1]=vgdb&lt;BR /&gt;&lt;BR /&gt;And&lt;BR /&gt; LV[0]="/dev/vgvedas/lv_name"; FS[0]="/mount_name";  FS_TYPE[0]="vxfs"&lt;BR /&gt;LV[1]="/dev/vgdb/lvol_name"; FS[1]="/vgdbdata"; FS_MOUNT_OPT[1]="-o&lt;BR /&gt;&lt;BR /&gt;save and exit&lt;BR /&gt;&lt;BR /&gt;16.  Deactivated the new volume group and convert it in cluster mode.&lt;BR /&gt;# vgchange â  a n vgdb&lt;BR /&gt;# vgchange â  c y vgdb&lt;BR /&gt;&lt;BR /&gt;17. Start the cluster package&lt;BR /&gt; #cmrunpkg â  v pkg_name&lt;BR /&gt;&lt;BR /&gt;On primary node&lt;BR /&gt;#vgexport â  p -s -m /etc/lvmconf/vgdb.map vgdb&lt;BR /&gt;&lt;BR /&gt;On adoptive node, copy the cluster configuration file and VG configuration&lt;BR /&gt;&lt;BR /&gt;18.  Copy the packge control file from primary node to adotive node&lt;BR /&gt;  # rcp node1:/etc/cmcluster/pkg/pkg.cntl   /etc/cmcluster/pkg&lt;BR /&gt;&lt;BR /&gt;#vgimport -s -m /etc/lvmconf/vgdb.map vgdb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The above procedure I have implemented &amp;amp; on four node cluster. It worked fine.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;INH</description>
      <pubDate>Fri, 31 Dec 2010 08:32:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267902#M659899</guid>
      <dc:creator>INH</dc:creator>
      <dc:date>2010-12-31T08:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267903#M659900</link>
      <description>Posting it again as my previous reply shows some junk charectors&lt;BR /&gt;&lt;BR /&gt;-------------------------------------&lt;BR /&gt;&lt;BR /&gt;Morshed,&lt;BR /&gt;&lt;BR /&gt;The simplest way of approach is here&lt;BR /&gt;&lt;BR /&gt;Backup all configuration files on system(s) like /etc/lvmtab to /etc/lvmtab.orig&lt;BR /&gt;# cp â  Rp  /etc/cmcluster/package_file/etc/cmcluster/package_file.orig&lt;BR /&gt;&lt;BR /&gt;On node 1&lt;BR /&gt;Create the physical volume&lt;BR /&gt;#pvcreate /dev/rdsk/cxtyd1&lt;BR /&gt;#pvcreate /dev/rdsk/cxtyd2&lt;BR /&gt;#mkdir /dev/vgdb&lt;BR /&gt;Create device file to new Volume group&lt;BR /&gt;#mknod /dev/vgdb/group c 64 0x#0000&lt;BR /&gt;Create the new volume groups&lt;BR /&gt;#vgcreate /dev/vgdb /dev/rdsk/cxtyd1 /dev/rdsk/cxtyd2&lt;BR /&gt;Create the new logical volumes&lt;BR /&gt;#lvcreate â  L size_in_MB â  n lvol_name /dev/vgdb&lt;BR /&gt;&lt;BR /&gt;Create the new filesystems&lt;BR /&gt;#newfs â  F vxfs â  o largefiles /dev/vgdb/rlvol_name&lt;BR /&gt;Create the new mount point directory&lt;BR /&gt;# mkdir /vgdbdata ( as per your requirement)&lt;BR /&gt;Mount the new vgdb filesystem&lt;BR /&gt;# mount /dev/vgdb/lvol_name /vgdbdata&lt;BR /&gt;&lt;BR /&gt;From here onwards we need the downtime of Database , application and cluster package.&lt;BR /&gt;As you mentioned in your query , assuming your esisting vg is in cluster mode&lt;BR /&gt;Halt the package(s)&lt;BR /&gt;#cmhaltpkg  -v pkg_name&lt;BR /&gt;&lt;BR /&gt;Activate the all cluster VGs manually.&lt;BR /&gt;# vgchange â  a e vgvedas  &amp;lt;- assuming this is in lcuster&lt;BR /&gt;&lt;BR /&gt;Mount the all cluster filesystems manually&lt;BR /&gt;#mount /dev/vgvedas/lvol_name  /current_mount&lt;BR /&gt;Copy the data from existing filesystems to new filesytesms&lt;BR /&gt;# cp â  Rp /current_mount/* /vgdbdata&lt;BR /&gt;#bdf check the size of the copied is same as on old existing mount&lt;BR /&gt;&lt;BR /&gt;Note: If you are running Oracle database it is advisable to use dd command. As I have personal experience that not able to copy using cp command for Oracle mounts&lt;BR /&gt;&lt;BR /&gt;# /usr/bin/dd if=/current_mount of vgvedas of=/vgdbdata&lt;BR /&gt;&lt;BR /&gt;#bdf check the size of the copied is same as on old existing mount&lt;BR /&gt;Once copy is completed, unmount both filesystems&lt;BR /&gt;&lt;BR /&gt;# umount /vgdbdata&lt;BR /&gt;# umount /current_mount of vgvedas&lt;BR /&gt;&lt;BR /&gt; Edit the cluster cntl file and made changes below.&lt;BR /&gt;#vi /etc/cmcluster/pakg_dir/pkg.cntl&lt;BR /&gt;VG[0]=vgvedas&lt;BR /&gt;VG[1]=vgdb&lt;BR /&gt;&lt;BR /&gt;And&lt;BR /&gt;LV[0]="/dev/vgvedas/lv_name"; FS[0]="/mount_name";  FS_TYPE[0]="vxfs"&lt;BR /&gt;LV[1]="/dev/vgdb/lvol_name"; FS[1]="/vgdbdata"; FS_MOUNT_OPT[1]="-o&lt;BR /&gt;&lt;BR /&gt;save and exit&lt;BR /&gt;&lt;BR /&gt; Deactivated the new volume group and convert it in cluster mode.&lt;BR /&gt;# vgchange â  a n vgdb&lt;BR /&gt;# vgchange â  c y vgdb&lt;BR /&gt;&lt;BR /&gt;Start the cluster package&lt;BR /&gt;#cmrunpkg â  v pkg_name&lt;BR /&gt;&lt;BR /&gt;On primary node&lt;BR /&gt;#vgexport â  p -s -m /etc/lvmconf/vgdb.map vgdb&lt;BR /&gt;&lt;BR /&gt;On adoptive node, copy the cluster configuration file and VG configuration&lt;BR /&gt;&lt;BR /&gt; Copy the packge control file from primary node to adotive node&lt;BR /&gt;# rcp node1:/etc/cmcluster/pkg/pkg.cntl   /etc/cmcluster/pkg&lt;BR /&gt;&lt;BR /&gt;#vgimport -s -m /etc/lvmconf/vgdb.map vgdb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The above procedure I have implemented &amp;amp; on four node cluster. It worked fine.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;INH</description>
      <pubDate>Fri, 31 Dec 2010 08:34:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267903#M659900</guid>
      <dc:creator>INH</dc:creator>
      <dc:date>2010-12-31T08:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267904#M659901</link>
      <description>Hi INH,&lt;BR /&gt;&lt;BR /&gt;still some some junk characters are here. could u please attach the file instead of pasting.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Morshed.</description>
      <pubDate>Sun, 02 Jan 2011 06:58:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267904#M659901</guid>
      <dc:creator>mrmo07</dc:creator>
      <dc:date>2011-01-02T06:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267905#M659902</link>
      <description>Hi exparts,&lt;BR /&gt;&lt;BR /&gt;i am planning to create new vg as vgdb. then i will copy all database lvols from existing vg to new vg.  only one confusion is what can be best way to copy data( safe and faster and easier).&lt;BR /&gt;&lt;BR /&gt;this is 750 GB oracle 8i database on hpux11iv1.&lt;BR /&gt;&lt;BR /&gt;Plz help.&lt;BR /&gt;&lt;BR /&gt;Regards/Morshed.</description>
      <pubDate>Sun, 02 Jan 2011 11:22:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267905#M659902</guid>
      <dc:creator>mrmo07</dc:creator>
      <dc:date>2011-01-02T11:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267906#M659903</link>
      <description>Hey;&lt;BR /&gt;&lt;BR /&gt;dd the volumes.  As I mentioned in my previous post, you create a table of the lvs that comprise your database, then loop through them to dd the old volumes to the new ones:&lt;BR /&gt;&lt;BR /&gt;dd if=${old_vol} of=${new_vol} bs=1024k&lt;BR /&gt;&lt;BR /&gt;dd will copy the volume at a bit level so any filesystem definitions will get copied as well.  &lt;BR /&gt;&lt;BR /&gt;So, start out with both volume groups activated, but with nothing mounted, then dd the appropriate volumes to the new vg.&lt;BR /&gt;&lt;BR /&gt;Then, remount the filesystems using the new vg.  Remember to update your package control file to reflect the new vg - both in the ^VG* lines and the in the section that defines the LVs and their mount points.&lt;BR /&gt;&lt;BR /&gt;How you proceed from there is dependent on how your oracle datafiles are identified as there are a number of options.  So, *befrore you do any migration*, identify your oracle datafiles:&lt;BR /&gt;&lt;BR /&gt;sqlplus / as sysdba&lt;BR /&gt;col file_name format a45&lt;BR /&gt;col tablespace_name format a45&lt;BR /&gt;col member format a45&lt;BR /&gt;&lt;BR /&gt;select file_name, tablespace_name&lt;BR /&gt;from dba_data_files&lt;BR /&gt;order by file_name;&lt;BR /&gt;&lt;BR /&gt;select member from v$logfile&lt;BR /&gt;order by member;&lt;BR /&gt;&lt;BR /&gt;option 1: if your oracle database is using raw volumes and symbolic links to them, update the symbolic links to point to the raw volumes in the new vg.&lt;BR /&gt;&lt;BR /&gt;option 2: if your oracle database is using cooked filesystems, you should be good to go as everything is mounted in exactly the same spot.&lt;BR /&gt;&lt;BR /&gt;Any other option, pretty much means you're running multiple instances of &lt;BR /&gt;&lt;BR /&gt;alter database rename file '${old_file}' to '${new_file}';&lt;BR /&gt;&lt;BR /&gt;HTH;&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Sun, 02 Jan 2011 13:24:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267906#M659903</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2011-01-02T13:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267907#M659904</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;if i like to take cold backup of database and restore into newvg instead of using dd. will it ok ?? what should be the procedure??&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Morshed.</description>
      <pubDate>Mon, 03 Jan 2011 10:43:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267907#M659904</guid>
      <dc:creator>mrmo07</dc:creator>
      <dc:date>2011-01-03T10:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267908#M659905</link>
      <description>Morshed,&lt;BR /&gt;Please find the attached procedure.&lt;BR /&gt;copy option can be used if your Oracle data file size is not in GBs.&lt;BR /&gt;Else go for dd option.&lt;BR /&gt;more safer option is go backup and restore option once you have new vg.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;INH</description>
      <pubDate>Mon, 03 Jan 2011 22:32:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267908#M659905</guid>
      <dc:creator>INH</dc:creator>
      <dc:date>2011-01-03T22:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267909#M659906</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;if i like To restore is the sequence is right?&lt;BR /&gt;&lt;BR /&gt;1. take cold backup to tape ( 2 set)&lt;BR /&gt;2. create vgdb and same number of lvols with same size as existing lvols under vgvedas.&lt;BR /&gt;3.unmount all existing  lvols&lt;BR /&gt;4.mount all newly created lvols with the same directory ( existing)&lt;BR /&gt;5.restore from tape to same location as Data protector will restore under mount point.&lt;BR /&gt;&lt;BR /&gt;i am not changing mount point but lvols.&lt;BR /&gt;&lt;BR /&gt;plz advise.&lt;BR /&gt;&lt;BR /&gt;Regards/MOrshed.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jan 2011 13:21:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267909#M659906</guid>
      <dc:creator>mrmo07</dc:creator>
      <dc:date>2011-01-05T13:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267910#M659907</link>
      <description>Morshed,&lt;BR /&gt;--------------------&lt;BR /&gt;i am planning to create new vg as vgdb. then i will copy all database lvols from existing vg to new vg. only one confusion is what can be best way to copy data( safe and faster and easier).&lt;BR /&gt;&lt;BR /&gt;this is 750 GB oracle 8i database on hpux11iv1.&lt;BR /&gt;------- As said above, &lt;BR /&gt;1) BAckup and rstore &lt;BR /&gt;2) dd or copy option&lt;BR /&gt;As i said in my last in my last post. my personal experiance that if Oracle file size is in GB then copy will not work. So go for dd or else the most safe and easy way perfrom backup and restore.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;INH</description>
      <pubDate>Wed, 05 Jan 2011 23:02:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267910#M659907</guid>
      <dc:creator>INH</dc:creator>
      <dc:date>2011-01-05T23:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: create new vg under SG cluster</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267911#M659908</link>
      <description>hi ,&lt;BR /&gt;&lt;BR /&gt;thnaks all.&lt;BR /&gt;&lt;BR /&gt;i have restore from tape.&lt;BR /&gt;&lt;BR /&gt;it was fine.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Morshed.</description>
      <pubDate>Sun, 09 Jan 2011 07:22:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-vg-under-sg-cluster/m-p/5267911#M659908</guid>
      <dc:creator>mrmo07</dc:creator>
      <dc:date>2011-01-09T07:22:43Z</dc:date>
    </item>
  </channel>
</rss>

