1833873 Members
3809 Online
110063 Solutions
New Discussion

Vgexport ' Vgimport

 
Daniel Duarte
Frequent Advisor

Vgexport ' Vgimport

Hi

I have two machines in cluster, what procedure for use vgexport and vgimport.

Machine 1
vgexport -p -s -m vg_ist.map vg_ist
rcp vg_ist.map machine2:/

Machine 2
vgexport vg_ist
mkdir /dev/vg_ist
mknod /dev/vg_ist/group -c 64 0x010000
vgimport -m /vg_ist.map -s /dev/vg_ist
vgchange -a y vg_ist

Its correct ?
4 REPLIES 4
Doug O'Leary
Honored Contributor

Re: Vgexport ' Vgimport

Generally, yes, but you shouldn't try to activate the vg on machine 2 until it's deactivated on machine 1. Data corruption *will* result if you try that.

Another point is that the minor number 0x010000 can't exist on machine 2 in any other vg in order for the vgimport to work.

find /dev -name group -print | xargs -i ls -ld {} | awk '{print $5}' | sort

will give you the list of group minor numbers. Ensure you choose one that's not in there.

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Pete Randall
Outstanding Contributor

Re: Vgexport ' Vgimport

On machine 1, you should "vgchange -a n vg_ist". On machine2, I'm not sure why your doing a vgexport first - other than that, it looks fine. Make sure your minor number is unique in the mknod command.


Pete

Pete
Redhat
Trusted Contributor

Re: Vgexport ' Vgimport

Machine 1
halt the cluster (if already configured) by cmhaltcl -f

vgexport -p -s -m vg_ist.map vg_ist
rcp vg_ist.map machine2:/
vgchange -a n vg_ist

Machine 2
take a note of the minor no. of the group file .
vgexport vg_ist
mkdir /dev/vg_ist
mknod /dev/vg_ist/group -c 64 0x010000
vgimport -m /vg_ist.map -s /dev/vg_ist
vgchange -a y vg_ist
Daniel Duarte
Frequent Advisor

Re: Vgexport ' Vgimport

Ok
Thank you very much !!!!