Operating System - HP-UX
1835240 Members
2395 Online
110078 Solutions
New Discussion

lvmtab, how can I access to see the content?

 
Sebastian Perez
Frequent Advisor

lvmtab, how can I access to see the content?

Hi everyone!
I need to know how to check, view or see the content of lvmtab??
Could you help me?
Thanks!
6 REPLIES 6
Mark Grant
Honored Contributor

Re: lvmtab, how can I access to see the content?

"strings /etc/lvmtab | more" is normally enough for most peoples purposes but you can look at it with od if you want but I wouldn't muck about with it unless you have a good idea of the format of /etc/lvmtab.
Never preceed any demonstration with anything more predictive than "watch this"
Michael Steele_2
Honored Contributor

Re: lvmtab, how can I access to see the content?

# strings /etc/lvmtab

# vgscan -p -a -v (* -p for preview, else, new lvmtab. *)
Support Fatherhood - Stop Family Law
James Specht
Trusted Contributor

Re: lvmtab, how can I access to see the content?

If you have a problem with your lvmtab file you can rebuild it with vgscan -av. Check your man pages for further information.

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
MANOJ SRIVASTAVA
Honored Contributor

Re: lvmtab, how can I access to see the content?

Hi Sebastian


Login as root
strings /etc/lvmttab > /tmp/test

so a view /tmp/test to vies the contents of lvmttab , it is generally in the format

vg name
physical disk1
physical disk2
.
.
.........and so on


Manoj Srivastava
Steven E. Protter
Exalted Contributor

Re: lvmtab, how can I access to see the content?

Attached script uses the strings command to check the status of every disk in /etc/lvmtab

If you use it change the email addy please.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sebastian Perez
Frequent Advisor

Re: lvmtab, how can I access to see the content?

Thank you to each one and all of you.
Useful information.