Operating System - HP-UX
1833771 Members
2267 Online
110063 Solutions
New Discussion

vgdisplay: Warning: couldn't query all of the physical volumes.

 

vgdisplay: Warning: couldn't query all of the physical volumes.

D220 server running hp-ux 10.20. A mirrored drive went bad and was replaced.
c3t8d0 was mirrored to c3t12d0(one that went bad). I was out when this happened, so I'm not sure what happened as far as steps or commands entered between the time the drive went bad and was replaced.

I wanted to re-mirror the drive, but when I do a vgdisplay on the VG I get:

rockcc # vgdisplay -v vg02
vgdisplay: Warning: couldn't query physical volume "":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name /dev/vg02
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 4
Max PV 16
Cur PV 2
Act PV 1
Max PE per PV 2171
VGDA 2
PE Size (Mbytes) 4
Total PE 2170
Alloc PE 2000
Free PE 2340
Total PVG 0


I tried to copy off the /etc/lvmtab and running vgscan -v to no avail.
What should I do/try?
4 REPLIES 4
Bill McNAMARA_1
Honored Contributor

Re: vgdisplay: Warning: couldn't query all of the physical volumes.

after you replace the drive you should vgcfgrestore lvmconf to the replaced disk - strings /etc/lvmtab
and attach the full vgdisplay output in a text file attachment.

The snipit of the syslog would be useful too.

Bill
It works for me (tm)
Rita C Workman
Honored Contributor

Re: vgdisplay: Warning: couldn't query all of the physical volumes.

Is it possible nothing happened?

First confirm the drive in fact was replaced.
Then try restoring the disk to the volume group and resync it.

vgcfgrestore -n /dev/vg /dev/dsk/c3t12d0
vgchange -a y /dev/vg
vgsync /dev/vg

Just a quick thought,
Rita
Steven E. Protter
Exalted Contributor

Re: vgdisplay: Warning: couldn't query all of the physical volumes.

Looks like one physical volume isn't up.

You may just need to resynch your mirrors.

Or.

post up a dmesg command and lets see if we still have lbolts.

If you have swapped out a hotswap drive, you will have an lbolt command until next boot.

This behavior may indicate a dead, unused drive in the drive cage, if these drives are internals in a drive cage.

It also might indicate a bad drive cage, which directs power and bandwidth to and from internal drives in many classes of server.

Unlikely, but a scsi cable could be causing trouble or even a scsi card.

Good luck,

I'd be happy to look at some diagnostics.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Uday_S_Ankolekar
Honored Contributor

Re: vgdisplay: Warning: couldn't query all of the physical volumes.

Run vgcfgrestore -n /dev/vg02 /dev/rdsk/dskname ,
Run this command on mirror disk too.

vgchange -a y /dev/vg02 (to activate vg)

-USA..
Good Luck..