Re: vgextend: Physical Volume "/dev/dsk/c26t0d0" contains no LVM information (979 Views)
Reply
Occasional Visitor
Raymond_W
Posts: 3
Registered: ‎06-05-2013
Message 1 of 9 (1,038 Views)

vgextend: Physical Volume "/dev/dsk/c26t0d0" contains no LVM information

Hi,

 

The other day we had a problem where 4 paths of the 8 to our EMC SAN disk went away.    After working with EMC, we made some changes on the frame side and then rebooted.   The disks came back but now when I am trying to add some space to a voulume group, I get the following error.

 

vgextend: Physical Volume "/dev/dsk/c26t0d0" contains no LVM information
Verification of unique LVM disk id on each disk in the volume group

 

/dev/dsk/c26t0d0 is one of the paths that went away and not one of the disks I am adding with the vgextend command.    When I do a pvdisplay, I get the following:

#pvdisplay /dev/dsk/c26t0d0
Device file path "/dev/dsk/c26t0d0" is an alternate path
to the Physical Volume. Using Primary Link "/dev/dsk/c24t0d0".
--- Physical volumes ---
PV Name /dev/dsk/c24t0d0
PV Name /dev/dsk/c25t0d0 Alternate Link
PV Name /dev/dsk/c26t0d0 Alternate Link
PV Name /dev/dsk/c27t0d0 Alternate Link
PV Name /dev/dsk/c28t0d0 Alternate Link
PV Name /dev/dsk/c29t0d0 Alternate Link
PV Name /dev/dsk/c30t0d0 Alternate Link
PV Name /dev/dsk/c31t0d0 Alternate Link
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 10
PE Size (Mbytes) 32
Total PE 54392
Free PE 0
Allocated PE 54392
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

 

 

strings /etc/lvmtab shows the disk being part of the volume group.

 

 

Any ideas?

 

Thanks,

Ray

Honored Contributor
Robert_Jewell
Posts: 1,239
Registered: ‎06-26-2001
Message 2 of 9 (1,036 Views)

Re: vgextend: Physical Volume "/dev/dsk/c26t0d0" contains no LVM information

Can you run a vgdisplay -v vg01 ?

 

 

 

-Bob

Occasional Visitor
Raymond_W
Posts: 3
Registered: ‎06-05-2013
Message 3 of 9 (1,027 Views)

Re: vgextend: Physical Volume "/dev/dsk/c26t0d0" contains no LVM information

#vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 50
Cur PV 1
Act PV 1
Max PE per PV 65535
VGDA 2
PE Size (Mbytes) 32
Total PE 54392
Alloc PE 54392
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg01/lvepic
LV Status available/syncd
LV Size (Mbytes) 14336
Current LE 448
Allocated PE 448
Used PV 1

LV Name /dev/vg01/lvshd08
LV Status available/syncd
LV Size (Mbytes) 278528
Current LE 8704
Allocated PE 8704
Used PV 1

LV Name /dev/vg01/lvshd07
LV Status available/syncd
LV Size (Mbytes) 37632
Current LE 1176
Allocated PE 1176
Used PV 1

LV Name /dev/vg01/lvshd06
LV Status available/syncd
LV Size (Mbytes) 27008
Current LE 844
Allocated PE 844
Used PV 1

LV Name /dev/vg01/lvshd05
LV Status available/syncd
LV Size (Mbytes) 344160
Current LE 10755
Allocated PE 10755
Used PV 1

LV Name /dev/vg01/lvshd04
LV Status available/syncd
LV Size (Mbytes) 238592
Current LE 7456
Allocated PE 7456
Used PV 1

LV Name /dev/vg01/lvshd03
LV Status available/syncd
LV Size (Mbytes) 218112
Current LE 6816
Allocated PE 6816
Used PV 1

LV Name /dev/vg01/lvshd02
LV Status available/syncd
LV Size (Mbytes) 309248
Current LE 9664
Allocated PE 9664
Used PV 1

LV Name /dev/vg01/lvshd01
LV Status available/syncd
LV Size (Mbytes) 252928
Current LE 7904
Allocated PE 7904
Used PV 1

LV Name /dev/vg01/lvshd
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 625
Allocated PE 625
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c24t0d0
PV Name /dev/dsk/c25t0d0 Alternate Link
PV Name /dev/dsk/c26t0d0 Alternate Link
PV Name /dev/dsk/c27t0d0 Alternate Link
PV Name /dev/dsk/c28t0d0 Alternate Link
PV Name /dev/dsk/c29t0d0 Alternate Link
PV Name /dev/dsk/c30t0d0 Alternate Link
PV Name /dev/dsk/c31t0d0 Alternate Link
PV Status available
Total PE 54392
Free PE 0
Autoswitch On

 

Honored Contributor
Robert_Jewell
Posts: 1,239
Registered: ‎06-26-2001
Message 4 of 9 (1,017 Views)

Re: vgextend: Physical Volume "/dev/dsk/c26t0d0" contains no LVM information

Thanks...can you also post the command you are trying to run?

Occasional Visitor
Raymond_W
Posts: 3
Registered: ‎06-05-2013
Message 5 of 9 (1,015 Views)

Re: vgextend: Physical Volume "/dev/dsk/c26t0d0" contains no LVM information

#vgextend /dev/vg01 /dev/dsk/c31t0d2 /dev/dsk/c25t0d2 /dev/dsk/c24t0d2 /dev/d>
vgextend: Physical Volume "/dev/dsk/c26t0d0" contains no LVM information
Verification of unique LVM disk id on each disk in the volume group
/dev/vg01 failed.

Honored Contributor
Robert_Jewell
Posts: 1,239
Registered: ‎06-26-2001
Message 6 of 9 (1,012 Views)

Re: vgextend: Physical Volume "/dev/dsk/c26t0d0" contains no LVM information

Well, since /dev/dsk/c26t0d0 is an alternate link, I would just try to first remove it from the configuration...

 

     # vgreduce /dev/vg01 /dev/dsk/c26t0d0

 

..and then re-add it again:


  # vgextend /dev/vg01 /dev/dsk/c26t0d0

 

 

See if that helps.

 

-Bob

Honored Contributor
Patrick Wallek
Posts: 13,787
Registered: ‎06-21-2000
Message 7 of 9 (1,011 Views)

Re: vgextend: Physical Volume "/dev/dsk/c26t0d0" contains no LVM information

It is acting like c26t0d0 is different from the others.

 

A couple of things I'd like to see:

 

# diskinfo /dev/rdsk/c24t0d0

# diskinfo /dev/rdsk/c26t0d0

 

to compare the values.

 

To do a crude check to see what LVM info is on the disk you can do:

 

# dd if=/dev/rdsk/c24t0d0 of=/tmp/c24t0d0 bs=1024k count=2

# dd if=/dev/rdsk/c26t0d0 of=/tmp/c26t0d0 bs=1024k count=2

 

Then do a 'strings' on the files.

 

You will get output similar to this (this is from an 11.31 system):

# strings /tmp/disk12
LVMREC01f
DEFECT01
LVMREC01f
DEFECT01
*V UVGDA0001
VGSA0001Q
(`n@VGDA0001
VGSA0001Q
);y?VGDA0001
VGSA0001O
OI!q
type 10000 "mkfs"
time 1369163350 588847 (Tue May 21 15:09:10 2013 EDT)
version 7 logsize 16384 fssize 1048576000 fsndevs 1
lost+found
IamMOUNTED

 

 

Compare the output from your 2 files.  They should be exactly the same since it is from the same physical disk.  If there is a difference, then you have problems.

Honored Contributor
Patrick Wallek
Posts: 13,787
Registered: ‎06-21-2000
Message 8 of 9 (1,009 Views)

Re: vgextend: Physical Volume "/dev/dsk/c26t0d0" contains no LVM information

Attached is a script that a colleague of mine wrote.  It queries disks and displays various LVM information.

 

Transfer the script to your HP-UX server, make sure it is executable and run it.

 

For example:

 

# showLVMinfo /dev/rdsk/c1t0d0 /dev/rdsk/c2t0d0

Local CPU ID (hex=0x69ea86f7) 1776977655

/dev/rdsk/c1t0d0:
    CPUID=0x69ea86f7 (1776977655), VGID 0x4ae99fd8, PVID 0x4f5d50eb

/dev/rdsk/c2t0d0:
    CPUID=0x69ea86f7 (1776977655), VGID 0x4ae99fd8, PVID 0x4d501e32

 In your case, I would run it like:

 

# ./showLVMinfo /dev/rdsk/c24t0d0 /dev/rdsk/c26t0d0

 

The PVID should be exactly the same.  

Honored Contributor
Robert_Jewell
Posts: 1,239
Registered: ‎06-26-2001
Message 9 of 9 (979 Views)

Re: vgextend: Physical Volume "/dev/dsk/c26t0d0" contains no LVM information

Patrick - thanks for that, I suppose it is better to check that the disks are who they say they are first.  Thanks for the sharing the script as well.

 

-Bob

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.