From 74aa6b56205ea8b40c5fceea94e0578f88f87d7e Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Wed, 2 Sep 2009 14:47:39 +0000 Subject: Implement write lock prioritisation for file locking and make it default. --- doc/example.conf | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc') 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" -- cgit