- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Uses of vgscan
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
тАО10-30-2001 01:14 AM
тАО10-30-2001 01:14 AM
I would like to know when it???s useful command ???vgscan???, during system administration, and if possible, an advise about a good book/document which treats of LVM.
Regards, Angelo
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2001 01:27 AM
тАО10-30-2001 01:27 AM
Re: Uses of vgscan
If you have a corrupt lvmtab, you can use the vgscan command for the re-creation of the lvmtab file.
for documentation, see http://docs.hp.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2001 01:33 AM
тАО10-30-2001 01:33 AM
Re: Uses of vgscan
vgscan is used to update (repare or recreate) the /etc/lvmtab.
Fr??d??ric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2001 01:34 AM
тАО10-30-2001 01:34 AM
Re: Uses of vgscan
The LVM commans vgscan recreates the /etc/lvmtab file. You should use this command when this file is corrupted. This file stores the bindings of physical volumes to their corresponsing volume groups. Do a "strings /etc/lvmtab" in order to view this file.
If you do a man lvm, you will find a good introduction to LVM. also, follow this link:
http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/os/11i/kcparams/KCparam.LVMparmsOverview.html&searchterms=LVM&queryid=20011030-013153
Hope this helps,
Vince
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2001 01:46 AM
тАО10-30-2001 01:46 AM
SolutionAs for manuals, see "Configuring HPUX for Peripheral" especially the section on Configuring Disk Drives:
http://docs.hp.com/hpux/onlinedocs/B2355-90698/B2355-90698.html
And "Managing Systems and Workgroups", especially the section on Managing Disks and File:
http://docs.hp.com/cgi-bin/onlinedocs.py?mpn=B2355-90742&service=hpux&path=../B2355-90742/00/00/1&title=Managing%20Systems%20and%20Workgroups%3A%20A%20Guide%20for%20HP-UX%20System%20Administrators
Hope this helps.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2001 02:12 AM
тАО10-30-2001 02:12 AM
Re: Uses of vgscan
cp /etc/lvmtab /etc/lvmtab.OK
now vgscan -p -v -a # preview first
It could be dangerous.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2001 03:10 AM
тАО10-30-2001 03:10 AM
Re: Uses of vgscan
The man pages (1M) for 'vgscan' note some very important information. You should read them *before* you use 'vgscan'. In particular, they note that the "command should be run only in the event of a catastrophic error such as the deletion of the /etc/lvmtab file or the mismatch of names of the physical volumes in the /etc/lvmtab file to the actual physical volume path configuration."
You should also be aware that "The designated primary and alternate link might not be the same as it was configured before...[and]...The boot information might be incorrect due to different order of disks in the new /etc/lvmtab file."
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2001 05:26 AM
тАО10-30-2001 05:26 AM
Re: Uses of vgscan
First rule with vgscan : think twice before
running this command! and even when you
run it, first try it with the -p (preview)
option which shows what it does , without
actually doing it.
Now to some theory, Vgscan creates the
/etc/lvmtab file. This can be run, in case
there is a corruption in the existing lvmtab
file. What is the lvmtab file? To use
an analogy, Lvmtab file is to Volumegroups, just like fstab file is to filesystems.
It has the VG <-> Physical disk mapping info.
It contains the VGid(names) existing in
the system and the physical volumes(disks)
paths they contain.
When vgscan is executed, it searches
through all the disks connected to the system
and collects the VG information stored in
the disk (VGDA?) and groups disks with
the same Vg info together. It then looks
at the /dev directory to find the Vg names
corresponding to the VGinfo (major number)
it collected from the disks. It then
builds the lvmtab file with this info.
You can look at the contents of your
exisiting lvmtab file, by doing
strings /etc/lvmtab >/tmp/xyz .
This is a good site for getting to know the anatomy of LVM :
http://tech.sistina.com/lvm/doc/lvm_howto/2864Contents2864.html
cheers
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2001 06:07 AM
тАО10-30-2001 06:07 AM
Re: Uses of vgscan
For good training books, look at Tom Madell's book "Disk and File Management Tasks on HP-UX" published by HP Press (available at most online book sellers), and Marty Poniatowski's books on HP-UX How-To. There are some differences between 10.20 and 11.xx revisions so pick the books that match you operating system(s).
Bill Hassell, sysadmin