Operating System - HP-UX
1834838 Members
3479 Online
110070 Solutions
New Discussion

Funny character in /etc/lvmtab

 
SOLVED
Go to solution
Jason Ng Teng Po
Frequent Advisor

Funny character in /etc/lvmtab

Hi gurus,

OS: HP-UX 10.20 (K Class)

I couldn't mount and couldn't pvdisplay one of my hard disk(K Class storage enclosure) and it gave the following error below when I pvdisplay one of the device path.

#pvdisplay /dev/dsk/c1t9d0
pvdisplay: Warning: Couldn't query physical volume "/dev/dsk/c1t9d0": The specified path does not correspond to physical volume attached to this volume group

pvdisplay: Warning: Couldn't query physical volume "/dev/dsk/c1t10d0": The specified path does not correspond to physical volume attached to this volume group

pvdisplay: Warning: Couldn't query all teh physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes belonging to volume group "/dev/vg09".
pvdisplay: Couldn't display physical volume "/dev/dsk/c1t9d0"


When I do a...
#strings /etc/lvmtab
... I get the following output for vg09

vg09
m6e?
/dev/dsk/c1t9d0
/dev/dsk/c1t10d0

What is m6e? ?

And how do I rebuild the VG without interfering with the lvols and the data?

Thanks in advance.
8 REPLIES 8
Johnson Punniyalingam
Honored Contributor

Re: Funny character in /etc/lvmtab

vgchange -a y /dev/vg09

vgdisplay -v /dev/vg09

Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor
Solution

Re: Funny character in /etc/lvmtab

if the /etc/lvmtab is lost or corrupted, It can be reconstructed by scanning the PVGRA/VGRA headers on all your disks,

cp -pi /etc/lvmtab /etc/lvmtab.old

mv /etc/lvmtab /etc/lvmtab.

/usr/sbin/vgscan -v

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Jason Ng Teng Po
Frequent Advisor

Re: Funny character in /etc/lvmtab

after the vgscan, do I need to re-create back my lvols? because I have existing data inside there and I wish to retrieve it back.
Johnson Punniyalingam
Honored Contributor

Re: Funny character in /etc/lvmtab

No need,

vgscan will reconstructed lvmtab only,

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Torsten.
Acclaimed Contributor

Re: Funny character in /etc/lvmtab

Please see

man strings

what strings does.

"strings looks for ASCII strings in a file. If no file is specified, standard input is used. A string is any sequence of four or more printing characters ending with a newline or null character."

/etc/lvmtab is a **binary** file, strings only extracts characters if they "look like" a string.


So don't care about

"m6e"!!!

Check your ioscan if you have a problem with your external (?) disks.

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!   
Jason Ng Teng Po
Frequent Advisor

Re: Funny character in /etc/lvmtab

I did an "#ioscan -fnC disk" and all disk are claimed.
Torsten.
Acclaimed Contributor

Re: Funny character in /etc/lvmtab

Is vg09 activated alreaedy?

Try for example

# vgchange -a y vg09

followed by

# vgdisplay -v vg09

Any errors during this?

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!   
Jason Ng Teng Po
Frequent Advisor

Re: Funny character in /etc/lvmtab

I'm not at my customer place right now but I remember clearly that I can't do a vgchange -a y vg09. There are errors but can't remember.