1833178 Members
2795 Online
110051 Solutions
New Discussion

Re: vgscan error

 
SOLVED
Go to solution
Michael Steele_2
Honored Contributor

Re: vgscan error

OK, I don't see c2t0d0 in your ioscan. Here's what you pasted in:


# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-B
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t0d0 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s3
/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s1
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t1d0 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s3
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s1
disk 3 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0



So this looks like a typo or no one ever ran lvlnboot -r, -s, -b, or -d. So please paste in your make boot procedure as well as this pvdisplay:

pvdisplay -v /dev/dsk/c2t0d0

Why doesn't this show up in ioscan? Is this part of an array?
Support Fatherhood - Stop Family Law
James R. Ferguson
Acclaimed Contributor

Re: vgscan error

Hi (again):

Well, this is strange. The Technical Knowledge Base has one reference that I can find; document #KBRC00011792.

The description of the problem seems to match yours.

Regards!

...JRF...
Michael Steele_2
Honored Contributor

Re: vgscan error

Wow Jim, KBRC00011792. That's a good one.
Support Fatherhood - Stop Family Law
dictum9
Super Advisor

Re: vgscan error

The problem is very similar, but the solution is most unclear. What is an ENF patch, who is computer associates and what is the TNG product??

And, I am not dealing with any volume groups other than vg00.



quote----------------

This problem was solved by installing an ENF patch from Computer Associates for
the TNG product. After the patch is installed, relink libc.2 and reboot.

For further information see CA Issue # 12138274 about broken link for libc.2.

-------------------------
Torsten.
Acclaimed Contributor
Solution

Re: vgscan error

You wrote

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t0d0":


The device file "/dev/dsk/c2t0d0" is in your configuration - this is wrong. It has to be "/dev/dsk/c2t0d0s2", since this is Itanium.

Please post

# lvlnboot -v

# strings /etc/lvmtab

Post error messages also, if you get any.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
dictum9
Super Advisor

Re: vgscan error

Michael Steele,

It shows up in ioscan:


# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
===============================================
=============================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-B
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t0d0 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s2
-----------^^^^^^--------------------------------------

# pvdisplay -v /dev/dsk/c2t0d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t0d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg00".
pvdisplay: Cannot display physical volume "/dev/dsk/c2t0d0".


Torsten-,


> The device file "/dev/dsk/c2t0d0" is in your configuration - this is wrong.
> It has to be "/dev/dsk/c2t0d0s2", since this is Itanium.

In what configuration? Do you mean in /etc/lvmtab?
I realize Itanium deals with the "*s2" disks,
but I never did anything with /dev/dsk/c2t0d0. I was careful to work with /dev/dsk/c2t0d0s2.
That is surely the crux of the matter.



# lvlnboot -v
lvlnboot: Couldn't query physical volume "/dev/dsk/c2t0d0":
The specified path does not correspond to physical volume attached to
this volume group

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0
Torsten.
Acclaimed Contributor

Re: vgscan error

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0

^^^^^^^^^^^^^^^

Here it is!

and this is wrong!

Do a vgreduce!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
dictum9
Super Advisor

Re: vgscan error

# vgreduce /dev/vg00 /dev/dsk/c2t0d0
vgreduce: Couldn't query physical volume "/dev/dsk/c2t0d0":
The specified path does not correspond to physical volume attached to
this volume group
Torsten.
Acclaimed Contributor

Re: vgscan error

# vgreduce -f vg00

should work.

If vg00 is OK now, we will check the other config.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
dictum9
Super Advisor

Re: vgscan error

Torsten-,

Wow, it worked! No more errors in either vgscan or vgdisplay.
================================



# vgreduce -f vg00
vgreduce: Couldn't query physical volume "/dev/dsk/c2t0d0":
The specified path does not correspond to physical volume attached to
this volume group
PV with key 1 sucessfully deleted from vg vg00
Repair done, please do the following steps.....:
1. save /etc/lvmtab to another file
2. remove /etc/lvmtab
3. use vgscan(1m) -v to re-create /etc/lvmtab
4. NOW use vgcfgbackup(1m) to save the LVM setup




# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0

# rm /etc/lvmtab

# vgscan -a -v
Creating "/etc/lvmtab".
Couldn't stat physical volume "/dev/dsk/c0t0d0":
Invalid argument
Physical Volume "/dev/dsk/c3t2d0" contains no LVM information

Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c2t0d0s2

Scan of Physical Volumes Complete.


# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0s2
Torsten.
Acclaimed Contributor

Re: vgscan error

This is what I expected.

You used on one command the wrong device file without s2, this happened to me too.

Now you should check the LVM config on this disk and later start over with the mirroring process. Do not import the disk.

Finally post

# lvlnboot -v

# vgdisplay -v vg00

if you are in doubt.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: vgscan error

Don't forget to do these steps first:

Repair done, please do the following steps.....:
1. save /etc/lvmtab to another file
2. remove /etc/lvmtab
3. use vgscan(1m) -v to re-create /etc/lvmtab
4. NOW use vgcfgbackup(1m) to save the LVM setup


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor

Re: vgscan error

Hi Torsten!

Very well done! "...the problem is sometimes inside the system, sometimes in front of ..." :-))

/* NO POINTS PLEASE */

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: vgscan error

Thank you James.

The question is, how often the problem is touching the keyboard... ;-)

Last week I missed one time the "s2" too while mirroring, the result was strange, but things like this are easy to remember.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
dictum9
Super Advisor

Re: vgscan error

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t1d0s2
Root: lvol3 on: /dev/dsk/c2t1d0s2
Swap: lvol2 on: /dev/dsk/c2t1d0s2
Dump: lvol2 on: /dev/dsk/c2t1d0s2, 0


Torsten.
Acclaimed Contributor

Re: vgscan error

Well done etc.

Now follow this procedure to mirror to a second disk:

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000082066576


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!