Operating System - HP-UX
1758557 Members
2060 Online
108872 Solutions
New Discussion юеВ

vgimport: could not access the list of physical volumes for volume group

 
SOLVED
Go to solution
Jos├и Luis Martinez
Occasional Advisor

vgimport: could not access the list of physical volumes for volume group

hi

My trouble is the next:

I've been trying to do the next command

vgimport -v -p -m /etc/lvmconf/vgtest.map vg01
but when i execute this command it sends me the next msn:

Couldn't access the list of physical volumes for volume group "/dev/vg01".

I tried making a VG whit this diretory and a PV then it sends me the next msn:

vgimport: Volume group "/dev/vg01" already exists in the "/etc/lvmtab"

i used the vgexport to erase it from the "/etc/lvmtab" but this sends me the firs msn

thanks for you help
11 REPLIES 11
Tim Nelson
Honored Contributor

Re: vgimport: could not access the list of physical volumes for volume group

If you do not give vgimport a list of disks to import then I think you have to use the -s command so it will search for the drives.

I prefer controlling it by giving it the list of disk to take action on.

BTW, -p is preview mode and will not actually import the VG. ( I am sure you knew this ).

Jos├и Luis Martinez
Occasional Advisor

Re: vgimport: could not access the list of physical volumes for volume group

sorry i missed the -s in the original msn, but i tried with the solutions in this forum and i can't do it i'm reading the mc/serviceguard to do this but i get the same error let me show you the process i do

nodo 1:
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgcreate /dev/vg01 /dev/dsk/c2t0d0
vgexport -p -v -s -m /tmp/vg01.map vg01
cat /tmp/vg01.map
scp /tmp/vg01.map user@nodo2:/tmp

nodo 2:

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -s -p -v -m /tmp/vg01.map /dev/vg01
here sends me error

Couldn't access the list of physical volumes for volume group "/dev/vg01"

then i do this
vgcreate /dev/vg01 /dev/dsk/c2t0d0

here is another error

vgimport: Volume group "/dev/vg01" already exists in the "/etc/lvmtab"

if i use de vgexport i need to do this

vgchange -a n vg01
vgexport /dev/vg01
mkdir .... vg01
mknod ...

i then i get the same error

please help me

CH2




Tim Nelson
Honored Contributor

Re: vgimport: could not access the list of physical volumes for volume group

I missed the fact that this is in a service guard cluster.

We will have to wait for others to chime in as I have long since forgotten the tricks when SG is in play.
Jos├и Luis Martinez
Occasional Advisor

Re: vgimport: could not access the list of physical volumes for volume group

ok don't worry any help is good

CH2
Sandman!
Honored Contributor

Re: vgimport: could not access the list of physical volumes for volume group

See if there are any SCSI related errors for the PVs that you are trying to import in the syslog file. And after having already created the VG on the 2nd node you cannot use the vgcreate command to manually import the PVs into vg01. You need to use vgimport followed by a list of PVs.

~hope it helps
Jos├и Luis Martinez
Occasional Advisor

Re: vgimport: could not access the list of physical volumes for volume group

hey sandman i did this

vgimport -m /tmp/vg01.map /dev/vg01 /dev/dsk/c2t0d0 but i got this msn:

Physical Volume "/dev/dsk/c2t0d0" is not part of a Volume Group

what colud be the cause?

CH2
Sandman!
Honored Contributor

Re: vgimport: could not access the list of physical volumes for volume group

>vgimport -m /tmp/vg01.map /dev/vg01 /dev/dsk/c2t0d0 but i got this msn:

>Physical Volume "/dev/dsk/c2t0d0" is not part of a Volume Group

>what colud be the cause?

There are still lots of things that could be wrong so you need to narrow it down further. You can't use the "-m" option and specify the list of PVs to be imported into the VG as the two are mutually exclusive. Take out the "-m" option and try again:

# vgimport /dev/vg01 /dev/dsk/c2t0d0

Also post the output of the below commands which will help in troubleshooting the problem further:

-- get the PVID to see if it has LVM information on it
# echo 0x2008?2D | adb /dev/dsk/c2t0d0

-- get the VGID to see if this PV is part of a VG
# echo 0x2010?2D | adb /dev/dsk/c2t0d0

-- show the HBAs that are in the 2nd node
# ioscan -funC fc

~hope it helps
Mridul Shrivastava
Honored Contributor
Solution

Re: vgimport: could not access the list of physical volumes for volume group

Are you sure that the physical disks are connected to both the nodes which are [art of this vg01??

Please confirm this once again.. I doubt that disks are not visible to second node.
Time has a wonderful way of weeding out the trivial
Jos├и Luis Martinez
Occasional Advisor

Re: vgimport: could not access the list of physical volumes for volume group

hey no, i have 2 servers individually

this is the output of de ioscan -fnc disk

server 1:

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 0/0/1/1.0.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 1 0/0/2/0.0.0 sdisk CLAIMED DEVICE SEAGATE ST336704LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 4 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 73.4GST373405LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 2 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0


server 2:

Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 0/0/1/1.0.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 1 0/0/2/0.0.0 sdisk CLAIMED DEVICE SEAGATE ST118202LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0

inthe server 1 i'm using the /dev/dsk/c2t0d0 for mi VG