- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvmtab includes some unidentified characters
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 11:26 PM
тАО07-19-2006 11:26 PM
lvmtab includes some unidentified characters
/dev/vg00
DF%s
/dev/dsk/c2t1d0s2
if i try to delicatelly remove these characters using vi, it will be fine but after a vgscan i get that the lvmtab file is wrong and should be replaced.
the system came out of the box this way, how to fix this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 11:31 PM
тАО07-19-2006 11:31 PM
Re: lvmtab includes some unidentified characters
sapap1:root> strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t6d0s2
/dev/dsk/c2t6d0s2
/dev/vg_EPC_D01
/dev/dsk/c13t0d1
Dont modify lvmtab!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 11:31 PM
тАО07-19-2006 11:31 PM
Re: lvmtab includes some unidentified characters
DO NOT edit /etc/lvmtab with vi. You will corrupt the file. lvmtab is a BINARY file. Those unidentifiable characters are binary data.
To edit lvmtab, use lv/pv/vg commands, such as lvcreate, lvreduce, etc.
The proper way to view the contents of lvmtab is:
# strings /etc/lvmtab
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 11:37 PM
тАО07-19-2006 11:37 PM
Re: lvmtab includes some unidentified characters
strings /etc/lvmtab -->
/dev/vg00
DF%s
/dev/dsk/c2t1d0s2
what does the DF%s means, how to get rid of it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 11:44 PM
тАО07-19-2006 11:44 PM
Re: lvmtab includes some unidentified characters
# man strings
The 'strings' command returns what it believes to be printable, or ASCII, strings in a file. The junk you see is just 'strings' giving you a false positive. It is just making an educated guess, after all.
You can exclude this unwanted output by increasing the minimum string length like this (just make sure you're not excluding lines you do want):
# strings -n 8 /etc/lvmtab
or with grep:
# strings /etc/lvmtab | grep -v 'DF%s'
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2006 11:45 PM
тАО07-19-2006 11:45 PM
Re: lvmtab includes some unidentified characters
As already stated, the '/etc/lvmtab' file is a binary file. The 'strings' command attempts to produce readable output by examining groups of four characters at a time.
In reality, the '/etc/lvmtab' contains not only the volume group names and their associated device files, but the LVM VGID (Volume Group ID) that uniquely identifies each volume group.
You file is *not* corrupt!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2006 01:10 AM
тАО07-20-2006 01:10 AM
Re: lvmtab includes some unidentified characters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2006 01:48 AM
тАО07-20-2006 01:48 AM
Re: lvmtab includes some unidentified characters
If so:
mv /etc/lvmtab /etc/lvmtab.bad
vgscan
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2006 02:44 AM
тАО07-20-2006 02:44 AM
Re: lvmtab includes some unidentified characters
Ok, i will not touch it.
However i would have liked it to be without those character :).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2006 03:42 AM
тАО07-20-2006 03:42 AM
Re: lvmtab includes some unidentified characters
strings -n 6 /etc/lvmtab
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!