- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc/lvmtab and kernel do not agree
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
06-06-2000 07:26 AM
06-06-2000 07:26 AM
/etc/lvmtab and kernel do not agree
This is one I have not seen before.
Got a K420 with 10.20 HP-UX. In the /etc/lvmtab it shows 4 disks being used. In SAM it shows 6 disks being used. Try to do vgcfgbackup and I get the following message:
/etc/lvmtab is out of date with the running kernel; kernel indicates 6 disks for /dev/vg30; /etc/lvmtab has 4 disks
Not a major problem, haven't seen any issues because of it - yet. It does prevent the addition of addition logical volumes.
What could be the matter and how to fix?
Many thanks!
Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2000 07:29 AM
06-06-2000 07:29 AM
Re: /etc/lvmtab and kernel do not agree
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2000 11:40 AM
06-06-2000 11:40 AM
Re: /etc/lvmtab and kernel do not agree
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -v
After doing the above step's to verify the lvmconf file and lvmtab file contains same info.
strings /etc/lvmtab
vgcfgrestore -n /dev/vg30 -l
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2000 12:03 PM
06-06-2000 12:03 PM
Re: /etc/lvmtab and kernel do not agree
/etc/lvmtab out of date with the running kernel; kernel indicates 6 disks for /dev/vg30; /etc/lvmtab has 4
The vgscan only sees 4 disks. Doing the list of vgcfgrestore shows 4 disks as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2000 12:12 PM
06-06-2000 12:12 PM
Re: /etc/lvmtab and kernel do not agree
With no users on the system, try:
vgchange -a n vg01
vgchange -a y vg01
strings /etc/lvmtab
vgdisplay -v
They should now match.
Good Luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 12:56 AM
06-07-2000 12:56 AM
Re: /etc/lvmtab and kernel do not agree
Looks like we can't go the easy way?
If lvmtab and kernel disagree there is one important question: who is right? Do you how many disks are really part of the VG?
What does vgdisplay display for Cur PV and Act PV?
Use: vgcfgrestore -n /dev/VG_NAME -l to see the list of physical volumes contained within the last good backup.
Maybe the answer on this question get us closer to the cause of your problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 06:05 AM
06-07-2000 06:05 AM
Re: /etc/lvmtab and kernel do not agree
The vg.conf indicates the right number and the right devices.
strings /etc/lvmtab indicate the right number of disks with the correct devices.
vgcfgrestore -n /dev/vg30 -l indicates the right number of disks and the correct devices.
vgdisplay -v /dev/vg30 shows CUR PV = 6 with ACT PV = 4
There were 6. This was before my time at this job. Apparently, somebody just physically removed them with exporting or anything else. This is where I believe the original problem started.
I have checked out the /dev/vg30 directory and am able to match up all the lvols to the correct devices.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 06:14 AM
06-07-2000 06:14 AM
Re: /etc/lvmtab and kernel do not agree
# vgreduce -f /dev/vg00
The manual page for vgreduce has a good explanation what it does to your VG...
good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 06:20 AM
06-07-2000 06:20 AM
Re: /etc/lvmtab and kernel do not agree
# vgreduce -f /dev/vg_name
The manual page for vgreduce has a good explanation what it does to your VG...
good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 06:24 AM
06-07-2000 06:24 AM
Re: /etc/lvmtab and kernel do not agree
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 06:55 AM
06-07-2000 06:55 AM
Re: /etc/lvmtab and kernel do not agree
Many thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 01:19 PM
06-07-2000 01:19 PM
Re: /etc/lvmtab and kernel do not agree
vgchange -f vgxx
are right. This can be done online without making the vg unavailable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2000 10:16 AM
06-12-2000 10:16 AM
Re: /etc/lvmtab and kernel do not agree
Did the vgreduce -f /dev/vg30 and it did not work. Still have the CUR PV=6 and ACT PV=4. Still have the other problems as well.
I have read the docs for vgreduce and with the -f option, it describes exactly what I am looking to do but doesn't do it.
Any ideas why it did't work?
Thanks -- Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2000 11:26 AM
06-12-2000 11:26 AM
Re: /etc/lvmtab and kernel do not agree
What do you mean by other problems? Perhaps a hardware issue is masquerading as a config issue. You might have to crack the case and see 'how' the 2 drives where removed.
Are the drives sleds that auto-select some SCSI ID? Something sounds very odd here. Have you tried to rebuild the kernel?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2000 11:24 PM
06-12-2000 11:24 PM
Re: /etc/lvmtab and kernel do not agree
Why can't the real live not be that easy as a manual page?
Have you tried to export and re-import the VG?
1) Use: ll /dev/vg30/group to get 0x###### minor number.
2) vgdisplay -v /dev/vg30 to get physical volumes
3) vgchange -a n /dev/vg30
4) vgexport -m /mapfile /dev/vg30
5) mkdir /dev/vg30
6) mknod /dev/vg_name/group c 64 0x0#0000
Re-use minor number obtained from step 1.
7) vgimport -m /mapfile /dev/vg30 pv_name pv_name pv_name pv_name
Activate the vg30 and verify if the CUR PV and ACT PV have the same value. If not, try again the vgreduce -f
I hope this will make it. Otherwise I run out of ideas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2000 06:04 AM
06-13-2000 06:04 AM
Re: /etc/lvmtab and kernel do not agree
I am at a loss as well. The man pages state, almost exactly, what I want to do and it is with the vgreduce -f command.
Go figure?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2000 08:24 AM
07-12-2000 08:24 AM
Re: /etc/lvmtab and kernel do not agree
I have seen some cases, that you have to vgreduce twice in succession and follow it up by using vgscan -v to recreate the /etc/lvmtab.
# vgreduce -f /dev/vg04
# vgreduce -f /dev/vg04
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2000 11:00 AM
07-12-2000 11:00 AM
Re: /etc/lvmtab and kernel do not agree
Solved your problem?
How many disks have you in this vg? I mean does it match with what you know of, like ioscan results. I once had something of the sort going thru sam, also on a K with 10.20, and in fact it was a misconfiguration to do with in my case of alternate paths not matching properly...(almost like AIX ghost disks).
If I remember right I had to remove all the disks of th volume group:
vgreduce /dev/vgXX /dev/dsk/cYd0s2..
vgremove /dev/vgXX
and start again
Hope It will help
Regards
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2000 11:09 AM
07-12-2000 11:09 AM
Re: /etc/lvmtab and kernel do not agree
Still exists. The kernel is still seeing CUR PV=6 and ACT PV=4. There are only 4 disks in the PV so the ACT is correct. Also in vgdisplay, shows CUR LV=14 and the Open LV=10. The 10 figure is correct. Somehow I need to find out what the lvols were on the disks that were removed, do the lvremove command, then I believe I can do the vgreduce -f command.
You are correct in that removing the VG and starting over again will solve the problem but I find it hard to believe that thisd would be the only cure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2000 11:26 AM
07-12-2000 11:26 AM
Re: /etc/lvmtab and kernel do not agree
If you do a strings on /etc/lvmtab how many devices and lvols are shown?
Did you specify all four disks when issuing the vgimport?
Did you try doing a vgscan while the vg was exported?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2000 11:55 AM
07-12-2000 11:55 AM
Re: /etc/lvmtab and kernel do not agree
You're right! There has to be a better way!
The answers to the questions, lvmtab shows 4 PVs, the vgexport showed 4 PVs, when the vgimport was done, only 4 PVs were specified.
Is there a way to find out what the missing lvols are? I ask because when doing the vgreduce -f /dev/vg30 I get the following:
Not all extents are free, i.e., out of 2170 PEs, only 370 are free. Must free all PEs using the lvreduce/lvremove command before PV can be removed.
As stated earlier, 2 disks were removed without doing the lvremove - vgreduce commands.
So it shows 14 LVs when there are only 10 and 6 PVs when there are only 4.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2000 12:05 PM
07-12-2000 12:05 PM
Re: /etc/lvmtab and kernel do not agree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2000 12:15 PM
07-12-2000 12:15 PM
Re: /etc/lvmtab and kernel do not agree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2000 12:25 PM
07-12-2000 12:25 PM
Re: /etc/lvmtab and kernel do not agree
Do you have an old backup (pre disk removal) that might show you the files in /dev/vg30/?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2000 12:29 PM
07-12-2000 12:29 PM