Operating System - HP-UX
1838576 Members
4105 Online
110128 Solutions
New Discussion

importvg with a lot of disks doesn't work

 
SOLVED
Go to solution

importvg with a lot of disks doesn't work

Hi,
I'm working in a HP UX N4000 server. I had a vgexport of a volume group with the following command:
vgexport -m mapfile.tmp /dev/vgkk
Now, I need to import it in the same server using the mapfile.temp. I'm trying:
vgimport -m mapfile.temp /dev/vgkk
the problem is that I have to import 13 disks and the previous command doesn't display anything in the screen. If I try it with only 12 disks, there is not problem. I think that the problem is the number of disks (13 are too much).

How I can to import the VG with the 13 disks??
(vgimport with 12 disks and then vgextend, doesn't work)

Thanks in advance
Mari
4 REPLIES 4
accent
Frequent Advisor
Solution

Re: importvg with a lot of disks doesn't work

Hi.
You can try to obtain the VGID from any of the disk running the following command

#echo 0x2010?2X | adb /dev/dsk/c3t2d6 |expand |tr -d " " | sed "s/2010:/VGID /"
You may to change the value of /dev/dsk/c3t2d6 for any of your vg disks

The value returned by the command must be like
#VGID 25738B564191D5EE

Know insert this line at the beginning of the mapfile (see one example in the lines below)
VGID 25738B564191D5EE
1 lvoldat
2 lvolind
3 lvolhis
4 lvolsys

After that, execute the following command for import the vg. This command will scan all the disk and all of then with the same VGID will used to create the VG.

#vgimport -m mapfile -s /dev/vg??????


Cheryl Griffin
Honored Contributor

Re: importvg with a lot of disks doesn't work

What was the max pv set to when you originially created the volume group? You might be hitting the limit for the number of disks allowed in the volume group.
# vgdisplay -v /dev/vg02 |more
Max PV 14

Also add the -v switch to see if this gives you more detail.
# vgimport -v -m mapfile.temp /dev/vgkk
"Downtime is a Crime."
Pete Randall
Outstanding Contributor

Re: importvg with a lot of disks doesn't work

Mari,

I don't think you need to mess with the mapfile - just use the -s option in your vgimport command:

vgimport -s -m mapfile.tmp /dev/vgkk


Pete

Pete

Re: importvg with a lot of disks doesn't work

Thanks at all.
I have solved the problem adding to the vgimport the -s option. First at all I have searched the value of VGID and added it at the beginning of the mapfile because I did the vgexport without the "-s" option. And then I have launched the vgimport -s.... and the vgchange and vgcfgbackup.