System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

strings /etc/lvmtab there is a erro code entry in the list

SOLVED
Go to solution
Gary L
Super Advisor

strings /etc/lvmtab there is a erro code entry in the list

Hi

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t0d0
/dev/dsk/c2t1d0
/dev/vg01
/dev/dsk/c20t0d0
/dev/vg02
/dev/dsk/c20t0d1
/dev/vg03
/dev/dsk/c20t0d2
/dev/dsk/c20t0d3
/dev/dsk/c20t0d4
/dev/vg04
/dev/dsk/c20t0d5
/dev/dsk/c20t0d6
/dev/dsk/c20t0d7
/dev/vg09
/dev/dsk/c20t1d0
/dev/vg06
/dev/dsk/c20t1d1
/dev/vg07
/dev/dsk/c20t1d2
/dev/vg05
/dev/dsk/c20t1d3
/dev/vg10
I$_`
/dev/dsk/c20t1d5
/dev/vg08
/dev/dsk/c21t0d0

Can someone tell me what's the line "I$_`" and how to remove it, is there any impact with OS?

From vg01 to vg10 are all SAN disks. /dev/dsk/c20t1d5 was configured as /dev/vg10 and I created four LVs in vg10.

I have tried so many times
# rm -rf /etc/lvmtab

# vgscan -av

but
# strings /etc/lvmtab
still has this error line.

Any answers will be very appreciate.

-G
10 REPLIES
James R. Ferguson
Acclaimed Contributor
Solution

Re: strings /etc/lvmtab there is a erro code entry in the list

Hi Gary:

This is NOT an error. The 'strings' attempts to construct printable ASCII characters from four or more characters.

The 'lvmtab' is a binary file that not only contains device and volume group names, but also the VGID (in binary) of each volume group.

There is nothing wrong with what you see or have!

Regards!

...JRF...
Gary L
Super Advisor

Re: strings /etc/lvmtab there is a erro code entry in the list

Thanks JRF,

Got it, thanks a lot for your answers.

Have a good day.

-Gary
Dennis Handly
Acclaimed Contributor

Re: strings /etc/lvmtab there is a erro code entry in the list

>JRF: There is nothing wrong with what you see or have!

Hmm, the part that seems broken is that you have to use strings(1) rather than some more appropriate command that understands /etc/lvmtab.

I assume that's vgdisplay(1m), pvdisplay(1m) and lvdisplay(1m)?
Gary L
Super Advisor

Re: strings /etc/lvmtab there is a erro code entry in the list

Hi Dennis

Thanks for your reply.

You mentioned some "broken" there, could you provide me more details, normaly i just use # strings to check /etc/lvmtab.

There is no erro when run below commands
vgdisplay /dev/vg10
pvdisplay /dev/dsk/c20t1d5
lvdisplay /dev/vg10/lvol3

-Gary
Johnson Punniyalingam
Honored Contributor

Re: strings /etc/lvmtab there is a erro code entry in the list

Hi Gary,
Dennis >> point about
"broken" there, could you provide me more details, normaly i just use # strings to check /etc/lvmtab

you can use # strings /etc/lvmtab

better to use below commands for checking your "disk" "PV"

# vgdisplay
# pvdisplay
# lvdisplay

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Dennis Handly
Acclaimed Contributor

Re: strings /etc/lvmtab there is a erro code entry in the list

>You mentioned some "broken" there, normally I just use strings to check /etc/lvmtab.

Broken in that you have to use a hammer instead of a nice command like "printlvmtab".

Broken in that you had to ask what "I$_`" was.
Dennis Handly
Acclaimed Contributor

Re: strings /etc/lvmtab there is a erro code entry in the list

It appears that printlvmtab is really something like:
vgdisplay -v | grep Name
Or:
vgdisplay -v | grep -e "VG Name" -e "PV Name"
Johnson Punniyalingam
Honored Contributor

Re: strings /etc/lvmtab there is a erro code entry in the list

Hi Dennis ,

>> Broken in that you have to use a hammer instead of a nice command like "printlvmtab".<<

nice command never used before .?

could you help us to show example ..?

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Dennis Handly
Acclaimed Contributor

Re: strings /etc/lvmtab there is a erro code entry in the list

>Johnson: nice command never used before?
>could you help us to show example?

I had to make up that name. It is really "vgdisplay -v" as I showed above.
Dennis Handly
Acclaimed Contributor

Re: strings /etc/lvmtab there is a erro code entry in the list

> nice command never used before?

 

The 11.31 command is: lvmadm -l

http://h30499.www3.hp.com/t5/System-Administration/Question-on-LVMTAB-file/m-p/5150630#M454654