#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
No comments:
Post a Comment