Operating System - HP-UX
1835079 Members
2819 Online
110073 Solutions
New Discussion

Getting Error when I do a vgdisplay on Volume Group

 
SOLVED
Go to solution
KPS
Super Advisor

Getting Error when I do a vgdisplay on Volume Group

I have a Volume Group on my HP-UX 11i System using EMC Disk and Powerpath. When I do a
vgdisplay -v vg06 | more I get the following message:

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c5t10d7":
The specified path does not correspond to physical volume attached to
this volume group

I get the above error for 9 Logical Volumes that I would like to export. Every one of the Logical Vols have no data on them so I could blow them away if I had to or reduce. My original idea was to export them and then import them on a different system, until I discovered this issue. The above disk it's complaining about seems to be the alternate path it can't see for every logical volume.
Symminq still shows both paths.

Any suggestions on how I could get this disk exported from the present system and then imported to another system????
6 REPLIES 6
Ashwani Kashyap
Honored Contributor

Re: Getting Error when I do a vgdisplay on Volume Group

I don't think so you can export a disk out . Only a volume group can be exported .

If you export a volume group , essentially you are exporting out all the LV's and all the PV's that make that volume group .
Michael Tully
Honored Contributor

Re: Getting Error when I do a vgdisplay on Volume Group

Hi Ken,

The idea of using powerpath is so that you don't need to worry about alternate links.

Even when exporting, the best way is to *not* have alternate links.

You haven't changed any zones have you for that host?

Regards
Michael
Anyone for a Mutiny ?
T G Manikandan
Honored Contributor
Solution

Re: Getting Error when I do a vgdisplay on Volume Group

I would first do a
ioscan -fnC disk

and check whether the disk dev/dsk/c5t10d7 is in CLAIMED state.
Then do a diskinfo on the disk to make sure that it is not bad.
#diskinfo dev/dsk/c5t10d7

Then you can do
#strings /etc/lvmtab

to check whether the disk in there on the particular group.

Revert
KPS
Super Advisor

Re: Getting Error when I do a vgdisplay on Volume Group

I am trying to export all the lvols. The disk I'm trying to export are zoned to another host, so that part is all set.

ioscan -fnC disk sees all the disk as claimed.
All looks good there.

Re: Getting Error when I do a vgdisplay on Volume Group

Do you see this Volume group as mounted.(bdf)

you can try
diskinfo -v /dev/rdsk/c5t10d7 and see whether this drive is working. (should show the disk size and other info about disk.)
To get out of a difficulty, one usually must go through it
Eugeny Brychkov
Honored Contributor

Re: Getting Error when I do a vgdisplay on Volume Group

To the 'mounted' questions I would add 'active' question. Do you have VG activated? 'vgchange -a y'. I believe LVM will tell you that group is not activated in this case, but let's try.
This error you receive means either disk was 'stolen' from the hardware path or this disk has invalid LVM structures. For example, try to do dd from memory to the good disk and then do vgdisplay - and you'll receive this error because VGDA and other structures on the disk will be corrupt
Eugeny