Operating System - HP-UX
1829103 Members
2313 Online
109986 Solutions
New Discussion

how to align vg configuration between two servers of a cluster

 
SOLVED
Go to solution
Stefano_10
Advisor

how to align vg configuration between two servers of a cluster

I have modify a volume group configuration of my cluster, adding a phisical volume to a volume group (on node 1).
I would know what i have to do to align the configuration of this vg also on node 2.
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: how to align vg configuration between two servers of a cluster

Run vgexport (in preview mode: -p) on the modified system. Then vgexport the vg on the second system and vgimport the new definition from the other system.


Pete


Pete
Ron Cornwell
Trusted Contributor

Re: how to align vg configuration between two servers of a cluster

On node1
vgexport -v -s -p -m /tmp/clustervg.map clustervg
ll /dev/clustervg/group
ftp /tmp/clustervg.map to node2 /tmp/clustervg.map
On node2
deactivate clustervg if in use
vgexport -v clustervg
mkdir /dev/clustervg
mknod /dev/clustervg/group c 64 0x?????? (see ll from node1)
vgimport -v -s -m /tmp/clustervg.map clustervg
Kent Ostby
Honored Contributor
Solution

Re: how to align vg configuration between two servers of a cluster

Sanjay_6
Honored Contributor

Re: how to align vg configuration between two servers of a cluster

The way we do this is,

shutdown the package that has this vg. Then activate the vg on one node.

vgchange -a e /dev/vgname

add the new pv to this vg and then do a vgexport and then deactivate the vg,

vgexport -p -s -m /tmp/vgname.map /dev/vgname
vgchange -a n /dev/vgname

rcp this map file to the /tmp on the 2nd node.

Now remove the vgname vg info from this node and then do a vgimport and then do a vgactivate,

vgexport /dev/vgname

mkdir /dev/vgname
mknod /dev/vgname/group c 64 0x0n0000
vgimport -s -m /tmp/vgname.map /dev/vgname
vgchange -a n /dev/vgname
vgchange -a e /dev/vgname

mount the filesystems and check.

Hope this helps.

Regds