- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Inconsistent values on the lvmtab files
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
Forums
Discussions
Discussions
Discussions
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
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-28-2003 09:56 PM
07-28-2003 09:56 PM
Inconsistent values on the lvmtab files
I created the following volume groups using SAM on my new rp7410 production servers.
Then in viewing the etc/lvmtab file using strings I get the following abnormal entries.
/dev/vg01
a?%M#
/dev/dsk/c15t0d5
/dev/vg03
a?%R
/dev/dsk/c15t1d0
/dev/dsk/c16t1d0
/dev/dsk/c5t1d0
/dev/dsk/c9t1d0
When I shutdown the server and start the server , these volumes are not mounted.
A vgdisplay says that they are not there.
When I do a vgchange on these volume groups, it allows me to mount my file systems.
how to fix it
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 10:07 PM
07-28-2003 10:07 PM
Re: Inconsistent values on the lvmtab files
a?%M#, etc.
These is normal.
Try this command and compare :
vgscan -a -v -p (* -p for preview *)
'vgscan' will read every disk for LVM config.
Cross reference with:
vgcfgrestore -f /etc/lvmconf/vg01 -l
This command will also list out disks belonging to its vg.
Any MC/ServiceGuard? Because this is /etc/lvmrc if so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 10:09 PM
07-28-2003 10:09 PM
Re: Inconsistent values on the lvmtab files
vgscan -v
vgchange -a n vg01
vgchange -a y vg01
strings /etc/lvmtab
vgdisplay -v
If there are invalid volume groups you will have to vgreduce first.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 10:11 PM
07-28-2003 10:11 PM
Re: Inconsistent values on the lvmtab files
Check your /etc/lvmrc file and i guess
AUTO_VG_ACTIVATE= is set to 0
if its 0 it wont activate the volume groups by itself and you have to manually to it or put the entries in custome_vg_activate if you go more below in this file.
So set it 1 and reboot it should activate the volume group automaticallly and then mount it.
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 10:38 PM
07-28-2003 10:38 PM
Re: Inconsistent values on the lvmtab files
best way is
mv /etc/lvmatb /etc/lvmtab.old
vgscan -v
vgchange
this will work....
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 10:43 PM
07-28-2003 10:43 PM
Re: Inconsistent values on the lvmtab files
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 10:54 PM
07-28-2003 10:54 PM
Re: Inconsistent values on the lvmtab files
i think that the problem, as already stated, is in the /etc/lvmrc, ant not in the /etc/lvmtab.
The lvmtab is NOT a text file, it's a binary file.
Some junk may well be present, you can ignore it.
I would not do anything like vgscan, is used not properly can do more damage than benefit.
Second thing: check your /etc/fstab, vg are opened if some of their lvol are present in the fstab for mounting (and AUTOVG_ACTIVATE=1 in /etc/lvmrc).
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 10:59 PM
07-28-2003 10:59 PM
Re: Inconsistent values on the lvmtab files
Your ouput shows:
/dev/vg01
a?%M# <<<<<<<<<< This is NORMAL
/dev/dsk/c15t0d5
/dev/vg03
a?%R <<<<<<<<<< This is NORMAL
/dev/dsk/c15t1d0
/dev/dsk/c16t1d0
/dev/dsk/c5t1d0
/dev/dsk/c9t1d0
So they are NOT abnormal entries in lvmtab. The lvmtab file is binary and the strings command will print any sequence of four or more
printing characters ending with a newline or null character. Be assured, the entries are fine.
As for the volume groups not being activated, that could be caused by several things.
Are all the disks available when the server boots so that quorum for the volume group is achieved for activation? Are there any errors in the startup log files?
Is this server part of a Service Guard cluster?
Cheers!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 12:01 AM
07-29-2003 12:01 AM
Re: Inconsistent values on the lvmtab files
This is not normal text/ascii file.
so what you see in it is OK.
Do vgscan -pva, check if you get all pvs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 09:04 AM
07-29-2003 09:04 AM
Re: Inconsistent values on the lvmtab files
The reason for these weird characters is that the lvmtab file stores the volume groups ID (vgid) whithin it. However it "hides" this information, sometimes this hiding is more successfull than at other times!! you can look at the vgid using "od"
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2003 10:08 PM
08-01-2003 10:08 PM
Re: Inconsistent values on the lvmtab files
Check the file /etc/lvmtab file using string command as it is a binary file , u can not view it using more or any other command.
check these volumegroups using the command vgdispaly -v /dev/vg01 & vgdispaly -v /dev/vg03
check ioscan output for these disk which are mentioned under the /dev/vg01 & /dev/vg02 in lvmtab file
if they are acessibly then try to use
vgchange -a e /dev/vg01
vgchange -a e /dev/vg03