LVM and VxVM

create and add new vg on cluster environment

 
Khairul_1
Frequent Advisor

create and add new vg on cluster environment

Dear,
we want to create and add new vg on cluster.
Please check and commnet with help.
1. Backup OS and
2. Down the Oracle
3. Oracle Database (cold/offline) into DDS4 Tape and LTO Tape.
4. Check the LUN
5. create vg primary link
#mkdir /dev/vg02
#mknod /dev/vg02/group c 64 0x030000
#vgcreate -s 16 /dev/vg02 /dev/dsk/c5t2d#
6. create lv
#lvcreate -L 102400 -n lvol1 /dev/vg02
#lvcreate -L 102400 -n lvol2 /dev/vg02
#lvcreate -L 102400 -n lvol3 /dev/vg02
#lvcreate -L 102400 -n lvol4 /dev/vg02
7. Create File system
#newfs -F vxfs -o largefiles /dev/vg02/lvol1
#newfs -F vxfs -o largefiles /dev/vg02/lvol2
#newfs -F vxfs -o largefiles /dev/vg02/lvol3
#newfs -F vxfs -o largefiles /dev/vg02/lvol4
8. Extend VG alternet link
#vgextend /dev/vg02 /dev/dsk/c7t2d#
9. Display
#pvdisplay /dev/dsk/vg02
#vgdisplay -v /dev/vg02
#lvdisplay -v /dev/vg02/lvol1
10. Create mount Distectory
#mkdir /u08
#mkdir /u09
#mkdir /u10
#mkdir /u11
11. Mount directory
#mount /dev/vg02/lvol1 /u08
#mount /dev/vg02/lvol2 /u09
#mount /dev/vg02/lvol3 /u10
#mount /dev/vg02/lvol4 /u11
#bdf
12. umount
#umount /u08, /u09, /u10, /u11
13. Export new vg
#vgexport -p -s -v -m /tmp/vg02.map /dev/vg02
14. Copy vg02.map file seconday node
# rcp /tmp/vg02.map dtf:/tmp/vg02.map
#vgchange -a n /dev/vg02
On Seconday Node:
1.Create vg
#mkdir /dev/vg02
#mknode /dev/vg02/group c 64 0x030000
#vgimport -s -v -m /tmp/vg02.map /dev/vg02
#vgchange -a r /dev/vg02
#vgcfgbackup /dev/vg02
#vgchange -a n /dev/vg02
===
After that we need edit Cluster files:
1. pkg.control file for LV
2. cluster.config file for VOLUME_GROUP

Do we need any more job.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: create and add new vg on cluster environment

Shalom,

It is a good plan. Backup and everything.

At the end you should run:

cmquerycl
cmcheckconf
cmapplyconf

To update your cluster configuration.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
sujit kumar singh
Honored Contributor

Re: create and add new vg on cluster environment

hi

this is very good plan and one small thing to point out is that


make sure that before cmcheckconf and cmapplyconf also keeep this minor things in mind

1)make the mount point directories on the other node also
2)make sure that once u edit the package control file u also have the concurrent cntl file on the other node.
3)do a cmcheckconf, cmapplyconf
4)try finally by running the package on both the nodes to check that the package s shall run on the other node also in case of package failover.

regards
Sujit
Rita C Workman
Honored Contributor

Re: create and add new vg on cluster environment

I'm not sure of why you did the vgchange -a r (read only)...

But when I give a volume group to the cluster I run:
vgchange -a n
vgchange -c y
I don't this command in your plan


...and I'm not sure why you feel you need to take the whole the cluster & pkg down for every step here...

Regards,
Rita
sujit kumar singh
Honored Contributor

Re: create and add new vg on cluster environment

Hi Rita,

thats true that u can do that
#vgchange -a n vgxx
followed by
#vgchange -c y vgxx
to make that VG cluster aware.

but if u have ur VG configured on node1 and properly exported with map file and imported on the node2 and have that there, then puting an entry in the cluster ascii file when u do a cmcheckconf and cmapplyconf the VG becomec a cluster aware one.


Regards
sujit
Avinash20
Honored Contributor

Re: create and add new vg on cluster environment

As told by SEP, you need to only have
cmcheckconf, cmapplyconf run on cluster.conf and pkg.conf.
cmapplyconf will make the vg02 cluster aware.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."