Serviceguard
cancel
Showing results for 
Search instead for 
Did you mean: 

Couple questions about vgexport/import

 
SOLVED
Go to solution
Dee Jacobs
Advisor

Couple questions about vgexport/import

I created a vg on node1. Node 2 will import map.
Do I put the LVMs into the VG before exporting?
After exporting how do I get the disk names to align? The diskNN numbers are different for the same drive.
5 REPLIES 5
Torsten.
Acclaimed Contributor

Re: Couple questions about vgexport/import

Disk device files doesn't need to be the same.

Just exporting with "-s", this will include the VGID into the mapfile, so the other node can easily find and match them.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Dee Jacobs
Advisor

Re: Couple questions about vgexport/import

About LVMS. if LVM is added, removed, changed in a VG. Does it need to be exported again?
Aneesh Mohan
Honored Contributor
Solution

Re: Couple questions about vgexport/import

Hi,

If you specify -s in conjunction with the -m option vgexport simply adds the VG-ID to the mapfile.

Node1:-
========

# vgexport -v -s -m -p /tmp/vgXX.map vgXX

#cat /tmp/vgxx.map

sample o/p

# cat /tmp/vgXX.map
VGID bfb13ce63a7c07c4
1 lvol1
2 lvol2
3 lvsap
4 lvdata

# copy vgxx.map to alternative node

Node2:-
========
#mkdir /dev/vgxx
#mknod /dev/vgxx/group c 64 0x010000
# vgimport -v -s -m /tmp/vgXX.map vgXX


If you want to redefine the disk device names similar to node 1 , you may need to do ioinit procedure in node2 to change the instance id of the controller (similar to the node1)


Aneesh
Aneesh Mohan
Honored Contributor

Re: Couple questions about vgexport/import


Yes,It is better to sync the vg configuration files(shared vg) if there is any changes done in any node.


Aneesh
Dee Jacobs
Advisor

Re: Couple questions about vgexport/import

Answers directly addressed the question and provided the insight necessary to comprehend the concept.

Very fast, too. THANKS.