1830503 Members
2591 Online
110006 Solutions
New Discussion

VG on cluster

 
SOLVED
Go to solution
Mauro Gatti
Valued Contributor

VG on cluster

I'd like to know how I could export VG configuration from a cluster node and re-import to another one.
The two nodes havent each one two SCSI card with different card istance. So a disk with special file like c1t1d1 on node A have special file c4t1d1 on node B.

Thank You.
Ubi maior, minor cessat!
5 REPLIES 5
Enrico P.
Honored Contributor
Solution

Re: VG on cluster

Hi,
from the primary node:

# ll /dev//group

sign the minor number of the vg you want export (example 0x010000)

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

# rcp -p /tmp/.map secondary_node:/tmp/

from secondary node:

# mkdir /dev/

# mknod /dev//group c 64 0x010000

# vgimport -v -s -m /tmp/.map

With the -s option you do not need to specify the disk belonging to the VG.
In the other way you can specify the disk with the different special file without -s option:

# vgimport -v -m /tmp/.map /dev/dsk/c4t1d1 /dev/dsk/c4...

Enrico.
Pete Randall
Outstanding Contributor

Re: VG on cluster

On the first node, run "vgexport -p -s -m /tmp/vgXX.map /dev/vgXX". You will get a complaint that the VG is still active but that's OK - we're just running in preview mode. Transfer the map file (/tmp/vgXX.map) to the second node. Then run:

mkdir /dev/vgXX
mknod /dev/vgXX/group c 64 0xXX0000
vgimport -s -m /tmp/vgXX.map /dev/vgXX
vgchange -a s /dev/vgXX

I think that should do it.


Pete


Pete
Tim Adamson_1
Honored Contributor

Re: VG on cluster

Hi,

You don't have to worry that the device files are different on the 2 nodes.

On the primary, vgexport the VG:

# vgexport --p -s -m /tmp/vg01.map /dev/vg01

assuming vg01 is the VG you want to import on the adoptive node.

Copy the file /tmp/vg01.map from the primary node to /tmp on the adoptive node.

On the adoptive node:

# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000

make sure the group minor number is the same as the primary node (ie, 0x010000 in my example).

vgimport -s -m /tmp/vg01.map /dev/vg01

Things should be fine.


Cheers!
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
Enrico P.
Honored Contributor

Re: VG on cluster

Hi,
I forgot a piece of command:

# vgimport -v -s -m /tmp/.map /dev/

or

# vgimport -v -m /tmp/.map /dev/dsk/c4t1d1 /dev/dsk/c4... /dev/

Enrico.




Enrico P.
Honored Contributor

Re: VG on cluster

and I forgot

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

Enrico.