April 06, 2012

Export Import VG Hpux

Halo all,

1)when we have to remove our vg we use vgexport to have initial configuration to reimport vg later.
in 1st case:- umount all the LV of this VG, then deactivate and export it:

# umount /dev/vg01/lvol1
# umount /dev/vg01/lvol2
...
# vgchange -a n vg01
# vgexport vg01



2)when we have to configure same vg with same configuration on another node.


in 2nd case:- just create a map file and import it on another node:

from one node:-
# umount /dev/vgXX/lvolXX
# vgchange -a n /dev/vgXX
# vgexport -v -p -s -m /tmp/vgXX.map vgXX
-p : tanpa merubah /etc/lvmtab
-s : Sharable option
-v : verbose
-m : map filenya
# ftp the /tmp/vgxx.map to second node
# vgchange -a y /dev/vgXX
# mount -F Vxfs /dev/vgXX /Mountpoint_name

on second node:-

# mknod /dev/vgXX/group c 64 0xXX0000 ==>> create nod as same on node one
# vgimport -s -m /tmp/vgXX.map vgXX

No comments:

Post a Comment