Operating System - HP-UX
1748205 Members
3881 Online
108759 Solutions
New Discussion юеВ

Re: PB LVM - Special Characteres into lvmtab file

 
NAGA_4
Occasional Advisor

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.
12 REPLIES 12
Torsten.
Acclaimed Contributor

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!   
NAGA_4
Occasional Advisor

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

 

 

Pete Randall
Outstanding Contributor

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
Torsten.
Acclaimed Contributor

Re: PB LVM - Special Characteres into lvmtab file

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!   
Hiren N Dave
Valued Contributor

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.
James R. Ferguson
Acclaimed Contributor

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...

NAGA_4
Occasional Advisor

Re: PB LVM - Special Characteres into lvmtab file

nice comment Ferguson.

Pete Randall
Outstanding Contributor

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
NAGA_4
Occasional Advisor

Re: PB LVM - Special Characteres into lvmtab file

Hello Pete.

 

Yes I'm happy with the answers.

 

thank you all.