- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgscan errors
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
09-11-2006 05:57 AM
09-11-2006 05:57 AM
vgscan errors
I have a strange issue that occured after I had a crash of my boxes.
One of my root disks was blown away as a result and I have replaced the disk physically and re-mirrored. Everything seems to be fine. Also, I had to blow away 3 lvols that I needed to recreate that had superblock issues that were easy to restore, non OS related Lvols.
Now my issue is that I can't seem to get a clean vgscan to create a new clean lvmtab. Everytime I run vgscan VG vg00 is removed from the lvmtab and dont know why.
How can i fix this?
Here is the error message from vgscan -av:
======================================
chp003g-root:/root/LVMcommands/Fix.vg00
# vgscan -av
Creating "/etc/lvmtab".
vgscan: has no correspoding valid raw device file under /dev/rdsk.
Verification of unique LVM disk id on each disk in the volume group
/dev/vg00 failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 06:01 AM
09-11-2006 06:01 AM
Re: vgscan errors
is there some other step i need to do for that to be kosher?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 06:01 AM
09-11-2006 06:01 AM
Re: vgscan errors
Did you perform a 'vgcfgrestore' as part of your replacement? Do you have '/dev/rdsk/' files for all devices that belong to 'vg00'?
Too, when recreating '/etc/lvmtab' you should rename the current copy before the 'vgscan' so old information in the old file is not factored into the rebuild.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 06:04 AM
09-11-2006 06:04 AM
Re: vgscan errors
I havent done a vgcfgrestore but I did reboot the box to check my boot capabilities.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 06:06 AM
09-11-2006 06:06 AM
Re: vgscan errors
I cant do a vgcfgrestore now since the disk is already in the VG unless I remove it according to this error.
======================================
# vgcfgrestore -n /dev/vg00 -o /dev/rdsk/c2t8d0 /dev/rdsk/c0t8d0
vgcfgrestore: Cannot restore Physical Volume "/dev/dsk/c0t8d0",
Detach the PV or detactivate the VG, before restoring the PV.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 06:08 AM
09-11-2006 06:08 AM
Re: vgscan errors
===================================
# ll /dev/rdsk/c?t8d0
crw-r----- 1 bin sys 188 0x008000 Sep 11 12:35 /dev/rdsk/c0t8d0
crw-r----- 1 bin sys 188 0x028000 Sep 11 12:35 /dev/rdsk/c2t8d0
# ll /dev/dsk/c?t8d0
brw-r----- 1 bin sys 31 0x008000 Sep 11 12:49 /dev/dsk/c0t8d0
brw-r----- 1 bin sys 31 0x028000 Sep 11 12:49 /dev/dsk/c2t8d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 06:16 AM
09-11-2006 06:16 AM
Re: vgscan errors
===================================
# vgcfgbackup vg00
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates
3 disks for "/dev/vg00"; /etc/lvmtab has 2 disks.
Cannot proceed with backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 06:53 AM
09-11-2006 06:53 AM
Re: vgscan errors
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 08:23 AM
09-11-2006 08:23 AM
Re: vgscan errors
There are no ghost devices that I can tell. I don't get the typical message for that error.
I may try to restore the raw devices from a backup before the crash and see what I get. Hopefully that will fix the problem and I can move on with this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 08:46 AM
09-11-2006 08:46 AM
Re: vgscan errors
Then do a preview vgscan:
vgscan -p -v -a
What does the system complain?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 08:58 AM
09-11-2006 08:58 AM
Re: vgscan errors
Post the results back, please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 09:08 AM
09-11-2006 09:08 AM
Re: vgscan errors
vgscan output below. I have recreated the disk devices from backup and by rmsf and recreating them with insf -e.
===============================
# vgscan -av
Creating "/etc/lvmtab".
vgscan: has no correspoding valid raw device file under /dev/rdsk.
Verification of unique LVM disk id on each disk in the volume group
/dev/vg00 failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 09:55 AM
09-11-2006 09:55 AM
Re: vgscan errors
It should rebuild all your RAW devices that are missing...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 12:14 PM
09-11-2006 12:14 PM
Re: vgscan errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 01:21 PM
09-11-2006 01:21 PM
Re: vgscan errors
How recent are your LVM patches; specifically the LVM commands cumulative patches? Are you running 11.0 or 11i?
Also, can you show us the output of 'strings /etc/lvmtab' and 'strings /etc/lvmtab.1'?
Also, I know you say that there are no ghost disks, but have you run 'lvdisplay -kv' on one (or all) of the mirrored LVs?
Now that I think about it, what I might do in your situation is to reduce LVs in vg00 to a single copy (no mirrored LVs). Then I would remove the newly installed PV from vg00.
I would also do 'pvremove /dev/rdsk/c?t8d0'.
Then try another vgscan.
I would also dust off the ignite tapes just in case. :-(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2006 07:52 PM
09-12-2006 07:52 PM
Re: vgscan errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2006 10:24 PM
09-12-2006 10:24 PM
Re: vgscan errors
I think you did not remove the broken disk from vg00, but used the replacement disk with the same device file to add a mirror, right?
vgdisplay vg00 then tells you you have 3 disks but only 2 active.
so for each lvol you run lvdisplay -v -k
the -k gives you the "key" which you have to use in order to remove the old disk and lvol extents from the LVM header (since the device file is not unique) the extents will be displayed with "????" instead of current or stale.
i.e you need to use lvreduce -k to remove all those mirrors and when you are through you can just vgreduce -f vg00 to get rid of the dead PV.
that should settle it.
Regards
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 02:10 AM
09-20-2006 02:10 AM
Re: vgscan errors
Am not a champion in LVM but as i understand this error occurs when a group files are not removed from the non-existant vg's can you please check that once.
Best Regards,
Prashanth