Operating System - HP-UX
1834935 Members
2262 Online
110071 Solutions
New Discussion

Re: vgimport and alternate paths

 
Aaron_82
Frequent Advisor

vgimport and alternate paths

I have a vg on one node that does not have alternate paths defined in the vg. There are alternate paths to the disks but I have not defined them in the VG. When I vgexport and vgimport to another node the newly imported vg has alternate paths. Here is the commands that I am using: vgexport -p -v -s -m vga04a /dev/vga04b, vgimport -v -s -m vga04b /dev/vga04b.
The reason I ask is because when I run a cmquery to create the template file it complains about the alternate paths not being seen on the other node.

environment: hpux 11.11, rp8400, service guard 11.15, powerpath, EMC DMX
12 REPLIES 12
John Poff
Honored Contributor

Re: vgimport and alternate paths

Hi,

All you need to do is run a 'vgextend' on the first node and specify the alternate paths. This will add them to the VG and should make them the same on both systems, which will make cmquery happy. You can do this online without stopping anything.

JP
Aaron_82
Frequent Advisor

Re: vgimport and alternate paths

Thanks for the reply.
Problem is that I only have two paths configured on the first node. Is there a way I can have vgimport not grab the alternate paths?
Sridhar Bhaskarla
Honored Contributor

Re: vgimport and alternate paths

Hi,

Does it simply complain or fail?. It may say the VG is configured differently on the ohter node but should go ahead with the configuration.

But it is a good idea to configure the VGs in the same way so that maintenance will be a lot easier in future.

You can export the VGs on the first node and import them back with the same command you used if you have connectivity to alternate paths to the disks.

I have powerpath installed on my systems and I configure lvmtab with alternate links too.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Aaron_82
Frequent Advisor

Re: vgimport and alternate paths

They are errors thus it doesn't create the template:
Error: Volume group /dev/vga04a on node hp30 does not appear to have a physic
al volume corresponding to /dev/dsk/c26t1d6 on node hp70 (1760387490108566673
0).

I'm probabaly just going to vgreduce to get past this. Any other ideas?

John Poff
Honored Contributor

Re: vgimport and alternate paths

Is the disk that it is complaining about [c26t1d6] in the volume group for vg04a? If not, is it in your /etc/lvmtab file (strings /etc/lvmtab)? I'm guessing that maybe it is in lvmtab but not in the volume group, and that maybe you just need to fix the lvmtab file? Check the lvmtab file on both systems.

JP
Tonya Underwood
Regular Advisor

Re: vgimport and alternate paths

You could simply vgreduce the alternate links out of the vg on the second node... retry your cmquery and it should be fine.

Tonya Underwood
Aaron_82
Frequent Advisor

Re: vgimport and alternate paths

After I do a vgreduce on the second node won't I run into this again when I do cmcheckconf?
Ashwani Kashyap
Honored Contributor

Re: vgimport and alternate paths

Areyou using the same mapfile to import the VG as you used it when exporting the VG .
Is it just a typo because you are using the map file vga04a to export the vg vga04b , but using the map file vga04b to import it .

are these files and their contents the same ?
Aaron_82
Frequent Advisor

Re: vgimport and alternate paths

Good catch! That was a typo. vga04a all around
Ashwani Kashyap
Honored Contributor

Re: vgimport and alternate paths

THe use vgreduce and take out the alternate paths on both the nodes . Then run you cmquery stuff . It should not complain .
When you need the alternate paths , use vgextend to add the paths .
Tonya Underwood
Regular Advisor

Re: vgimport and alternate paths

Yes... use vgreduce to make both nodes the same.

Thanks,
Tonya Underwood
Aaron_82
Frequent Advisor

Re: vgimport and alternate paths

OK, they both only have one path and I am still getting the errors. I'm going to call HP now.

Regards,
Aaron