summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2009-09-02 14:47:39 +0000
committerPetr Rockai <prockai@redhat.com>2009-09-02 14:47:39 +0000
commit74aa6b56205ea8b40c5fceea94e0578f88f87d7e (patch)
treecc338c97f9ef6e386208664e9313ed746629091a /doc
parentc99b9fa9461561c1f40f040bd9ec146d093ce3c1 (diff)
downloadlvm2-74aa6b56205ea8b40c5fceea94e0578f88f87d7e.tar.gz
lvm2-74aa6b56205ea8b40c5fceea94e0578f88f87d7e.tar.xz
lvm2-74aa6b56205ea8b40c5fceea94e0578f88f87d7e.zip
Implement write lock prioritisation for file locking and make it default.
Diffstat (limited to 'doc')
-rw-r--r--doc/example.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/example.conf b/doc/example.conf
index 5bb20722..eaf922ba 100644
--- a/doc/example.conf
+++ b/doc/example.conf
@@ -288,6 +288,13 @@ global {
# in progress. A directory like /tmp that may get wiped on reboot is OK.
locking_dir = "/var/lock/lvm"
+ # Whenever a read-only and read-write access compete on a single volume
+ # group, ensure that the write lock gets priority over the read lock.
+ # Without this setting, write access may be stalled by high volume of
+ # read-only traffic on LVM metadata. NB. This option only affects
+ # locking_type = 1, i.e. local file-based locking.
+ prioritise_write_locks = 1
+
# Other entries can go here to allow you to load shared libraries
# e.g. if support for LVM1 metadata was compiled as a shared library use
# format_libraries = "liblvm2format1.so"