- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pv_lock&lvm_lock
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
05-27-2009 04:31 AM
05-27-2009 04:31 AM
Could you tell me what is the exact use of the pv_lock and lvm_lock under the directory /etc/lvmconf....
Thanks in advance......
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 06:17 AM
05-27-2009 06:17 AM
SolutionMy RHEL 5.3 box does not have /etc/lvmconf directory.
It has /etc/lvm
This tells me you are probably not using RHEL 5.x
But the fact I'm trying to guess is a problem.
http://linux.die.net/man/5/lvm.conf
All I can give you is a man page.
If I knew your distribution I could help a lot more.
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
05-27-2009 06:28 AM
05-27-2009 06:28 AM
Re: pv_lock&lvm_lock
I suspect that you are looking at a HP-UX system and not a Linux one.
The '/etc/lvmconf/lvm_lock' file is used when one-only access is needed to access or update the '/etc/lvmtab'.
The 'etc/lvmconf/pv_lock' file is used by the 'pvcreate' command.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 07:42 AM
05-27-2009 07:42 AM
Re: pv_lock&lvm_lock
You are correct, I am looking for HPUX only..
Still I am not clear, what purpose it is used for.... Could you please explain more, it would be more helpful....
Thanks,
Bala.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2009 10:28 AM
05-27-2009 10:28 AM
Re: pv_lock&lvm_lock
I will request a transfer for you.
See this document:
http://docs.hp.com/en/B3936-90135/B3936-90135.pdf
These are high availability Service Guard related lock files. The link explains better than I can.
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
05-29-2009 03:43 AM
05-29-2009 03:43 AM
Re: pv_lock&lvm_lock
I could not find any documentation for these, but the name obviously indicates they are lock files.
By examining the possible lockfile-related error messages (with "strings /sbin/pvcreate | more"), I think the use of these files is as follows:
/etc/lvmconf/lvm_lock is the basic lock file for LVM configuration. All the tools that make changes to LVM configuration will first check if this file is already open; if it is, another LVM modification operation is in process and the tool will wait for its completion before proceeding any further.
If the file is not open, the tool will open it in exclusive mode while it makes changes. This makes sure only one LVM configuration modification can be executed at a time.
In other words, the lvm_lock file acts as a binary semaphore for protecting the write access to LVM configuration:
http://en.wikipedia.org/wiki/Semaphore_(programming)
/etc/lvmconf/pv_lock is used when creating new PVIDs (i.e. when running pvcreate). Like lvm_lock, it acts as a semaphore for PV creation, but it also stores the last used PVID value. This is used to ensure the system will never create two PVs with the same PVID.
PVID is used to identify alternate paths to the same physical disk when importing VGs.
If two physical disks were to have identical PVID, they could be detected as alternate paths to one PV... and then a path failover would lead to data corruption, as the new "path" would actually be a different disk, with different data. This would be a very bad situation: it might even cause a system crash if it happens with a volume that contains a swap partition or file.
MK