Operating System - HP-UX
1855840 Members
2618 Online
104107 Solutions
New Discussion

Re: vgimport fail on hp-ux 11.31

 
La_4
Advisor

vgimport fail on hp-ux 11.31

i tried to vgimport -s -m mapfile vgname on the fail over node in cluster
after using vgexport -v -p -s -m mafile vgname

it give me error:
/etc/cmcluster/aafcexp$ xp-11082010.map vgaafcexp <
vgimport: Volume group "/dev/vgaafcexp" already exists in the "/etc/lvmtab" file.

any help would be appreciated.
10 REPLIES 10
Torsten.
Acclaimed Contributor

Re: vgimport fail on hp-ux 11.31

If existing you need to export it before import.

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!   
La_4
Advisor

Re: vgimport fail on hp-ux 11.31

so i have to do vgexport on the adoptive node (fail over node). what is the parameter to use. Please give details...

thanks
melvyn burnard
Honored Contributor

Re: vgimport fail on hp-ux 11.31

vgexport vgaafcexp
You then need to use the vgimport command. In 11.31 it shoul dcreate the directroy and group file automatically, but MAY not give it the name you want.
So I would then do:
mkdir /dev/vgaafcexp
mknod /dev/vgaafcexp/group c 64 0x??0000
Where ?? is the number as per the primary node.
Unless you are looking to use LVM2, in which case it is:

mknod /dev/vgaafcexp/group c 128 0x???000
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
La_4
Advisor

Re: vgimport fail on hp-ux 11.31

the volume group is already exist on the adoptive node for fail over. I added more disks on the primary node so now i need to update the vg on the adoptive node with vgimport.

by doing vgimport vgname, it won't delete other volumes group on this node since this node has more then 10 packages up and running as well.

thanks
Viktor Balogh
Honored Contributor

Re: vgimport fail on hp-ux 11.31

Hi,

>the volume group is already exist on the adoptive node for fail over. I added more disks on the primary node so now i need to update the vg on the adoptive node with vgimport.

The only way to update the VG with the newly added disks on the adoptive node is to export and re-import the vg with the mapfile taken on the primary node. So you should do a vgexport first on the adoptive (failover) node, and then a vgimport.

> "by doing vgimport vgname, it won't delete other volumes group on this node since this node has more then 10 packages up and running as well."

Don't be afraid, this won't affect the other packages. ;)

Regards,
Viktor
****
Unix operates with beer.
La_4
Advisor

Re: vgimport fail on hp-ux 11.31

That's right that what i did.
- first i vgexport -v -p -s -m mapfile vgname
- second, copy mapfile to fail over node
- third, vgimport -s -m mapfile vgname
error:
/etc/cmcluster/ xp-11082010.map vgaafcexp <
vgimport: Volume group "/dev/vgaafcexp" already exists in the "/etc/lvmtab" file.

Torsten.
Acclaimed Contributor

Re: vgimport fail on hp-ux 11.31

If existing you need to export the VG before import on the second node.

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!   
chris huys_4
Honored Contributor

Re: vgimport fail on hp-ux 11.31

Hi La,

Torsten means that you should adapt your procedure

[from]

primary node

- first i vgexport -v -p -s -m mapfile vgname
- second, copy mapfile to fail over node

failover node

- third, vgimport -s -m mapfile vgname



[to]

primary node

- first i vgexport -v -p -s -m mapfile vgname

- second, copy mapfile to fail over node

failover node

- secondandahalf, vgexport -v vgname

- third, vgimport -s -m mapfile vgname

You forgot to execute, the "real" vgexport, on the failover node.

Greetz,
Chris
La_4
Advisor

Re: vgimport fail on hp-ux 11.31

Thanks for all of you, i will try it later today.

Much appreciated!
La_4
Advisor

Re: vgimport fail on hp-ux 11.31

Tthanks alot,

it worked! i even had to do mknod to create again vg before importing it.