Operating System - HP-UX
1751816 Members
5807 Online
108781 Solutions
New Discussion юеВ

Re: vgimport couldn't access pv ...

 
Russell_16
Occasional Contributor

vgimport couldn't access pv ...

Hello...

I did "vgexport -m /tmp/map_vg01 -s -v vg01" and ftp to my pc on test system(A) before OS restore from tape that belong to other(B) system.
Because B system make mirror for vg00,so i removed c2t2d0 disk by vgreduce for vg01.Then follow the step as below..

# pvcreate -f /dev/rdsk/c2t2d0
Physical volume "/dev/rdsk/c2t2d0" has been successfully created
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgimport -m /tmp/map_vg01 -s vg01
/dev/dsk/c2t2d0
Couldn't access the list of physical volumes for volume group "/dev/vg01".

Which step i lost or something error?
I'm deeply appreciate anyone's respond.

4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: vgimport couldn't access pv ...

Hi:

If you 'pvcreate'd /dev/dsk/c2t2d0 then you erased the VGID (Volume Group ID) that identified it as a member of a volume group. Hence, you cannot 'vgimport' it. Too, the use of the '-s' option (to scan and collect disks belonging to a volume group) cannot be used with a pv_path (as you have shown in your 'vgimport' statement. The idea of using the '-s' option obviates the need to explicitly state the pv_paths to seek.

Regards!

...JRF...
Russell_16
Occasional Contributor

Re: vgimport couldn't access pv ...

Hi,JRF...

Thanks for your reply.
In this case,can i vgimport from mapfile without -s option ?
Even if c2t2d0 has been grant to vg00(mirror),then i vgreduce it.
How can i grant c2t2d0 to vg01 by vgimport or other command?
Rich Wright
Trusted Contributor

Re: vgimport couldn't access pv ...

Be sure your minor number is unique.
mknod /dev/vg01/group c 64 0x010000
"ll /dev/*/group | sort -b -k6,6"
There can only be 1 0x010000
Marco Santerre
Honored Contributor

Re: vgimport couldn't access pv ...

I've never done this in the past, but the way I understand this, wouldn't you actually have to do a vgchgid because you are trying to create a second VG with an identical VGID that is already on the system.

Maybe someone can confirm this for me?
Cooperation is doing with a smile what you have to do anyhow.