Operating System - HP-UX
1833489 Members
2980 Online
110052 Solutions
New Discussion

vgexport and vgcreate on a FC60 disk array

 
STEFFEN_1
Occasional Contributor

vgexport and vgcreate on a FC60 disk array

I have an MC/SG cluster composed of two nodes and a FC60 disk array. The cluster use two LUNs. Another LUN is use for a vg shared by the two nodes but which is not in the MC/SG cluster.
In order to remove this vg, do i need to make a vgexport or vgremove on the two nodes that are sharing the FC60 ? Moreover, if i want to create a new vg using this LUN do i need to make a pvcreate -f before creting the new vg on the FC60 ?

Thanks.
Beginner
3 REPLIES 3
Trevor Dyson
Trusted Contributor

Re: vgexport and vgcreate on a FC60 disk array

Hi,
I would use vgexport as this is quicker. If you use vgremove then you must first lvremove each logical volume (and vgreduce until there is only one PV left in the VG).

I also would be worried about running vgremove on one system making changes to the volume group headers on the disks, thereby causing a problem on the other system when trying to do the vgremove. This may or may not be cause for concern.

I think you should do a pvcreate -f on the LUN before using it in another volume group. I am not certain that this is 100% necessary but all the documentation states that you should do so.

Rerards, Trevor
I've got a little black book with me poems in
Carlos Fernandez Riera
Honored Contributor

Re: vgexport and vgcreate on a FC60 disk array

Yes, use vgexport on both boxes and then pvcreate -f in one box.

Create your lvols and then vgimport on secondary box.

This is an easy way.
unsupported
Matthias Zander
Advisor

Re: vgexport and vgcreate on a FC60 disk array

Hi,
Do you need the data on your disk?
If yes:
umount everything
vgchange -a n vgx (on both MCSG-Systems)
vgchange -c n vgx (on both MCSG-Systems)
vgexport -s -m /tmp/vgx.map vgix

copy vgx.map to new systems
mkdir /dev/vgx
mknod /dev/vgx/group c 64 0x0?0000
vgimport -s -m vgx.map vgx
vgchange -a y
create mointpoints and mount

no pvcreate necessary