Re: PB LVM - Special Characteres into lvmtab file (514 Views)
Reply
Occasional Advisor
NAGA_4
Posts: 13
Registered: ‎10-16-2008
Message 1 of 13 (593 Views)

PB LVM - Special Characteres into lvmtab file

Hello, I've a problem whith my lvmtab file: # cat /etc/lvmtab ^CM-h^E/dev/vg00 6M-^@'M-CE\n>^B/dev/dsk/c2t1d0s2 /dev/dsk/c2t0d0s2 /dev/vglmsodarc 6M-^@'M-CIM-^VM-^RM-k^D/dev/dsk/c12t0d7 /dev/dsk/c18t0d7 /dev/dsk/c14t0d7 /dev/dsk/c16t0d7 /dev/vglmsodis 6M-^@'M-CIM-^VM-^JM-=^T/dev/dsk/c12t0d1 /dev/dsk/c12t0d2 /dev/dsk/c12t0d3 /dev/dsk/c12t0d4 /dev/dsk/c12t0d5 /dev/dsk/c18t0d1 /dev/dsk/c18t0d2 /dev/dsk/c18t0d3 /dev/dsk/c18t0d4 /dev/dsk/c18t0d5 /dev/dsk/c14t0d5 /dev/dsk/c16t0d5 /dev/dsk/c14t0d4 /dev/dsk/c16t0d4 /dev/dsk/c14t0d3 /dev/dsk/c16t0d3 /dev/dsk/c14t0d2 /dev/dsk/c16t0d2 /dev/dsk/c14t0d1 /dev/dsk/c16t0d1 /dev/vglmsodapp 6M-^@'M-CIM-^VM-^Q!^D/dev/dsk/c12t0d6 /dev/dsk/c18t0d6 /dev/dsk/c14t0d6 /dev/dsk/c16t0d6 /dev/vgswap 6M-^@'M-CJ^]^M-^R^D/dev/dsk/c12t1d0 /dev/dsk/c18t1d0 /dev/dsk/c16t1d0 /dev/dsk/c14t1d0 Do you have a solution for this problem. Thanks for advance for your help.
Acclaimed Contributor
Torsten.
Posts: 23,451
Registered: ‎10-02-2001
Message 2 of 13 (593 Views)

Re: PB LVM - Special Characteres into lvmtab file

Use

# strings /etc/lvmtab
or
# strings /etc/lvmtab_p

the file is a BINARY (!!!), so you will see strange things while doing cat or something else - no need to worry!

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!   
Occasional Advisor
NAGA_4
Posts: 13
Registered: ‎10-16-2008
Message 3 of 13 (588 Views)

Re: PB LVM - Special Characteres into lvmtab file

Thanks

 

It's better but i've a problem yet. I believe.

 

# strings /etc/lvmtab
/dev/vg00
E\n>
/dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
/dev/vglmsodarc
/dev/dsk/c12t0d7
/dev/dsk/c18t0d7
/dev/dsk/c14t0d7
/dev/dsk/c16t0d7
/dev/vglmsodis
/dev/dsk/c12t0d1
/dev/dsk/c12t0d2
/dev/dsk/c12t0d3
/dev/dsk/c12t0d4
/dev/dsk/c12t0d5
/dev/dsk/c18t0d1
/dev/dsk/c18t0d2
/dev/dsk/c18t0d3
/dev/dsk/c18t0d4
/dev/dsk/c18t0d5
/dev/dsk/c14t0d5
/dev/dsk/c16t0d5
/dev/dsk/c14t0d4
/dev/dsk/c16t0d4
/dev/dsk/c14t0d3
/dev/dsk/c16t0d3
/dev/dsk/c14t0d2
/dev/dsk/c16t0d2
/dev/dsk/c14t0d1
/dev/dsk/c16t0d1
/dev/vglmsodapp
/dev/dsk/c12t0d6
/dev/dsk/c18t0d6
/dev/dsk/c14t0d6
/dev/dsk/c16t0d6
/dev/vgswap
/dev/dsk/c12t1d0
/dev/dsk/c18t1d0
/dev/dsk/c16t1d0
/dev/dsk/c14t1d0

 

 

Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 4 of 13 (587 Views)

Re: PB LVM - Special Characteres into lvmtab file

That is perfectly normal.  Try reading the man page for strings(1).  It says "strings looks for ASCII strings in a file.  A string is any sequence of four or more printing characters ending with a newline or null character".  That is what you are seeing.  It translates as well as it can.


Pete
Acclaimed Contributor
Torsten.
Posts: 23,451
Registered: ‎10-02-2001
Message 5 of 13 (584 Views)

Re: PB LVM - Special Characteres into lvmtab file

[ Edited ]

Try

# strings -n 7 /etc/lvmtab

this will show strings with a minimum string length of 7.

But as said, it is a binary file, you cannot read it with vi, cat, or something.


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!   
HP Pro
Hiren N Dave
Posts: 97
Registered: ‎04-10-2006
Message 6 of 13 (569 Views)

Re: PB LVM - Special Characteres into lvmtab file

Hi,

 

As suggested by others, you can view /etc/lvmtab file using strings command.

 

There is a new command which is only supported in newer LVM version which will give you much better output of this file.

 

# lvmadm -l

 

Cheers...

I am an HP Employee

Was this post useful? - You may click the KUDOS! star to say thank you.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 7 of 13 (557 Views)

Re: PB LVM - Special Characteres into lvmtab file

Hi:

 

It amazes me how many times this question has been asked.  A search of this forum threads would easily assured you that there was nothing amiss.

 

Regards!

 

...JRF...

Occasional Advisor
NAGA_4
Posts: 13
Registered: ‎10-16-2008
Message 8 of 13 (553 Views)

Re: PB LVM - Special Characteres into lvmtab file

nice comment Ferguson.

Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 9 of 13 (550 Views)

Re: PB LVM - Special Characteres into lvmtab file

And that's all the feedback you have, NAGA_4???  Are you happy with the answers you've received?  Comfortable with the explanations?  Satisfied that all is well?


Pete
Occasional Advisor
NAGA_4
Posts: 13
Registered: ‎10-16-2008
Message 10 of 13 (549 Views)

Re: PB LVM - Special Characteres into lvmtab file

Hello Pete.

 

Yes I'm happy with the answers.

 

thank you all.

Acclaimed Contributor
Dennis Handly
Posts: 25,290
Registered: ‎03-06-2006
Message 11 of 13 (531 Views)

Re: PB LVM - Special Characters into lvmtab file

>It amazes me how many times this question has been asked.

 

Because we aren't telling them right command: lvmadm -l  (11.31)

(As  mentioned.)

 

As we have discussed before, since HP-UX's solution before 11.31 wasn't optimal, then people are going to ask.

(Let's see if the forum search can find it.)

 

http://h30499.www3.hp.com/t5/LVM-and-VxVM/etc-lvmtab-file-format-structure/m-p/4747185#M38739

(You can now correct your 'stings' typo. ;-)

 

http://h30499.www3.hp.com/t5/System-Administration/etc-lvmtab-contains-strange-entry/m-p/4358723#M34...

 

Ah here it is.  n, MK and I talked about it:

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

 

And  provides the $64K answer:

Use "lvmadm -l" 11.31, no stinkin' strings.

 

http://h30499.www3.hp.com/t5/System-Administration/strings-etc-lvmtab-there-is-a-erro-code-entry-in-...

http://h30499.www3.hp.com/t5/tag/lvmtab%20strings/tg-p

Occasional Advisor
NAGA_4
Posts: 13
Registered: ‎10-16-2008
Message 12 of 13 (526 Views)

Re: PB LVM - Special Characters into lvmtab file

Hello Dennis,

 

My english is poor then may search is poor too.

 

For information HPUX release  is 11.23 not specified into ma first message, it's right

 

Thanks for your help.

Occasional Visitor
ShabinMS
Posts: 2
Registered: ‎08-04-2011
Message 13 of 13 (514 Views)

Re: PB LVM - Special Characteres into lvmtab file

Yeah Its simply

strings /etc/lvmtab

 

only

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.