- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- VG activation with PVs missing
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
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
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-18-2002 12:54 PM
тАО07-18-2002 12:54 PM
How exactly does a volume group activate that has missing contituent PVs, yet still has quorum? (Assume no lvols are mirrored.) If the VG is activated, and the filesystem mounted, there stands an excellent chance that data will not be available!
Yikes!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 01:01 PM
тАО07-18-2002 01:01 PM
Re: VG activation with PVs missing
Yes, that's true. There is an option to handle this situation, although it is not advisable:
# vgchange -a y -q n /dev/vgXX
*However* as the man pages for 'vgchnage' note, "The -q n option can be used to activate the volume group when the disk quorum is not
maintained because too many disks were lost.
Since it ensures the integrity of the LVM
configuration information, it is normally not
advisable to override the quorum."
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 01:06 PM
тАО07-18-2002 01:06 PM
Re: VG activation with PVs missing
Of course, the more disks that you have, the higher the probabilty that a disk will fail.
Fot that reason, always mirror (or RAID) critical data and always have good backups so that you won't need them.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 01:09 PM
тАО07-18-2002 01:09 PM
Re: VG activation with PVs missing
While you can override the quorum using -q n option, I would do it only under the circumstances of missing PVs that are either alternate links or mirror disks. I would be atmost careful if the situation does not fall under any of the above.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 01:29 PM
тАО07-18-2002 01:29 PM
Re: VG activation with PVs missing
Whether or not a VG can be activated will depends on the quorum rules, we all know that. When it's time to mount the FS, whether it can be mounted or not will depend on the location of the superblock on the FS. If the superblock does not reside on the "failed" PV, the FS will mount until someone try to read/write to the bad blocks before the IO errors become apparent. Of course even before that happened you would know you have a problem when you see error like "missing PV", "cannot query PV" , etc, etc from any execution of LVM related command like vgdisplay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 01:30 PM
тАО07-18-2002 01:30 PM
Re: VG activation with PVs missing
What will the user see when their command fails? I have never actually tried this. (I am sure that the syslog.log will have all sorts of lovely entries.)
Oh, one more question. Will vgchange write out any errors to the console or the shell's stdout/stderr when it determines that not all of the PVs are available?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 01:33 PM
тАО07-18-2002 01:33 PM
Re: VG activation with PVs missing
If a PV is missing, it is a rare chance that you can mount the corresponding file systems. It would ask you to fsck the filesystem and it will finally fail.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 01:46 PM
тАО07-18-2002 01:46 PM
Solution=> It'll simply hang or freeze. Simple example is say you "cd" to the directory and then do "ls", it'll just hang and you'll not get the prompt back. Any yes you'll see tons of IO errors in syslog.log and "dmesg" output.
Will vgchange write out any errors to the console or the shell's stdout/stderr when it determines that not all of the PVs are available?
=> Yes it will, if I'm not mistaken it'll say something like ..
"couldn't attach to PV /dev/dsk/..."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 01:58 PM
тАО07-18-2002 01:58 PM
Re: VG activation with PVs missing
If the VG activates successfully and if the LV mounts without an error, I would suspect that you would see the same type of behavior. Lot's of hung processes waiting on I/O that you can't do anything with / to.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 10:57 PM
тАО07-18-2002 10:57 PM
Re: VG activation with PVs missing
I have encoutered similar problems. And users can not detect the question until they access the data which is unavailable at all. I think it is better to use LVM commands such as vgdisplay or lvdisplay after you import one VG.
Then you will see error like "missing PV", "cannot query PV" , etc if there is any missing PV. Correct the errors before the users access it.
Al.