1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/locking
David Teigland 7f29afdb06 lvmlockd: configurable sanlock lease sizes on 4K disks
New config setting sanlock_align_size can be used to configure
the sanlock lease size that lvmlockd will use on 4K disks.

By default, lvmlockd and sanlock use 8MiB align_size (lease size)
on 4K disks, which supports up to 2000 hosts (and max host_id.)

This can be reduced to 1, 2 or 4 (in MiB), to reduce lease i/o.
The reduced sizes correspond to smaller max hosts/host_id:

1 MiB = 250 hosts
2 MiB = 500 hosts
4 MiB = 1000 hosts
8 MiB = 2000 hosts (default)

(Disks with 512 byte sectors always use 1MiB leases and support
2000 hosts/host_id, and are not affected by this.)
2024-09-27 17:59:03 -05:00
..
.exported_symbols Pre-release cleanups. 2009-05-21 03:04:52 +00:00
file_locking.c refactor: update dm_strncpy to _dm_strncpy 2024-04-04 19:38:21 +02:00
locking_types.h Implement lock-override options without locking type 2018-06-07 16:17:04 +01:00
locking.c Revert "dev-cache: move global variables into cmd struct" 2024-07-08 15:32:41 -05:00
locking.h backup: automatically store data on vg_unlock 2021-06-09 14:56:13 +02:00
lvmlockd.c lvmlockd: configurable sanlock lease sizes on 4K disks 2024-09-27 17:59:03 -05:00
lvmlockd.h lvmlockd: fix compilation with disabled lvmlockd 2024-07-02 16:58:03 +02:00