Operating System - HP-UX
1834167 Members
2460 Online
110064 Solutions
New Discussion

add disk to VG in a Cluster

 

add disk to VG in a Cluster

I need add two disk in a vg in a node of a cluster with two nodes.

After lvm commands, pvcreate,vgextend It is necessary to realize vgexport (vgexport -m -s -p -v in the active node and vgimport in another node, or the cluster internally does all that
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: add disk to VG in a Cluster

No, MC/SG will not do this on its own. Each potential adoptive node needs to do a vgimport.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: add disk to VG in a Cluster

No, the cluster does not do that automatically.

You must vgexport on one node, then on the other remove and recreate the /dev/vg?? structure for that VG, and then vgimport the VG.
Henk Geurts
Esteemed Contributor

Re: add disk to VG in a Cluster

hi Joaquin
on the other node:
vgexport vgname
mkdir /dev/vgname
mknod /dev/vgname/group c 64 0xXX0000
where XX is identical to minor number of the vg on the active node.
vgimport -s -m /dev/vgname

done....
regards.

Re: add disk to VG in a Cluster

There is no possibility of indicating the cluster that should do the export/import when it changes node?


Thanks to all and sorry for my English
renarios
Trusted Contributor

Re: add disk to VG in a Cluster

Hi Joaquin,

No, that's not possible, and you just do not want that! Because if your cluster package is switching, mostly that comes on the time when less downtime is needed. So If you change anything in your lvm-configuration, just synchronise it over the entire cluster. You might use rdist for that, but you have to be very sure that al minor numbers are in sync over all clusternodes.

Hope it helps you,

Renarios
Nothing is more successfull as failure
Nguyen Anh Tien
Honored Contributor

Re: add disk to VG in a Cluster

Hi.
You need to :
1,export vg (vg contain new disk)
2,copy all ralative file to other nodes on cluster
3, Import
Refer this doc for detail
http://www.docs.hp.com/en/B3936-90079/
====> Troubleshooting your Cluster
HTH
tienna
HP is simple