Sharing Knowledge | System Admin Articles

Add a Lun to a VG in a SG cluster 11.11/23

Once disk presented to host,

# pvcreate /dev/rdsk/cxtxdx

# vgextend /dev/vgname /dev/dsk/cxtxdx

# lvcreate -L /dev/vgname/lvname

# newfs -F vxfs -o largefiles /dev/vgname/rlvname

# cp -p /etc/cmcluster/pkgname/pkg.cntl /etc/cmcluster/pkgname/

# vi /etc/cmcluster/pkgname/pkg.cntl

LV[33]=/dev/vgname/lvname; FS[33]=/oracle/ABN/sapdata20; FSMOUNT_OPT[33]="-o convosync=direct,mincache=direct,delaylog,nodatainlog"

(Add newly create Logical volume to pkg.cnt.file)

# vgexport -p -s -v -m /tmp/ /dev/vgname

# rcp /tmp/ nodee2:/tmp/

# cp -p /etc/cmcluster/pkgname/pkg.cntl /etc/cmcluster/pkgname/pkg.cntl.node2

# rcp /etc/cmcluster/pkgname/pkg.cntl.node2 nodee2:/tmp/

(mount the mount point manually on the node where the vg is active now)

# mount -o convosync=direct,mincache=direct,delaylog,nodatainlog /dev/vgname/lvolname /oracle/ABN/sapdata20

On Adoptive Node :-

# vgexport /dev/vgname

# mkdir /dev/vgname

# ll /dev/vg*/group

# mknode /dev/vgname/group c 64 0x0X0000

# vgimport -p -s -v -m /tmp/ /dev/vgname -> (preview) if no error proceed below by removing -p

# vgimport -s -v -m /tmp/ /dev/vgname

# cp /tmp/pkg.cntl.node2 /etc/cmcluster/pkgname

# cp -p /etc/cmcluster/pkgname/pkg.cntl /etc/cmcluster/pkgname/

# mv /etc/cmcluster/pkgname/pkg.cntl.node2 /etc/cmcluster/pkgname/pkg.cntl

Labels: HP-UX

My Profile PhotoAbout the Author

I'm Madesh, An UNIX System Admin by Profession. I'm having Expertise in HP-UX and Linux Administration. I have done lot of work on the infrastructure Mgmt side in UNIX system administration, Hardware, Storage (EMC/ HP EVA). I'm blogging since 2010.
Follow Me On Twitter or On Facebook

0 Comments for "Add a Lun to a VG in a SG cluster 11.11/23"

What do you think about this Article? Add your Opinion..!

Back To Top