Showing posts with label Import/Export volume group map in HP UNIX cluster. Show all posts
Showing posts with label Import/Export volume group map in HP UNIX cluster. Show all posts

Friday, May 1, 2020

Import/Export volume group map in HP UNIX cluster


When you have two node(Host A & Host B) cluster server and you want to  present same disk on both node. Then allocate disk on both hosts from SAN Storage. After that on host A you can create a simple volume group by using below commands: -


#ioscan -fnCdisk     (To check newly created disk)

#pvcreate /dev/rdisk/disk22     (creating a physical volume)

#vgcreate -s 32 -e 12800 /dev/dbvg /dev/disk/disk22  (volume group creating name dbvg)

#vgdisplay -v   /dev/dbvg    (To see volume group details)

#lvcreate -L 204768 -n lvol1 /dev/dbvg  (creating logical volume)

#newfs -F vxfs -o largefiles /dev/dbvg/rlvol1  

           After That export map file in below path by using below command: -

#vgexport -p -v -s -m /tmp/map/evavg.map /dev/dbvg

           Now copy it to Host B and import volume group map: -

#rcp -rp /tmp/map/evavg.map 10.241.16.76:/tmp/map/

#vgimport -v -s -m /tmp/map/evavg.map -N /dev/dbvg

#vgdisplay -v /dev/dbvg

             Then change volume group status on both nodes : -

#vgchange -a n /dev/dbvg

              After that add volume group in cluster mode and run command in both nodes :-

#vgchange -c y /dev/dbvg

              Now you can mount your logical volume on both nodes by creating a directory : -

#mkdir backup

#mount -F vxfs /dev/dbvg/lvol1 /backup













Introduction to Linux Part 1

Introduction to Linux Part 1

Introduction to Linux Linux is an operating system that works just like Windows and Mac OS X. As an operating system, Linux is a very h...