configurable sector size and align size
Through the library, set flags in the resource or
lockspace structs corresponding to the desired
sector size and align size. Both flags should be
set. max_hosts is determined by this combination.
From the command line, use -Z 512|4096 and -A 1M|2M|4M|8M.
A lockspace and all the resources in that lockspace should
use the same sector size and align size. This is required
when using the rindex.
Both sector size and align size are recorded in the ondisk
format for leases, and are set when a lockspace or
resource is initially created.
Accepted combinations are:
ALIGN1M | SECTOR512: max_hosts 2000
ALIGN1M | SECTOR4K: max_hosts 250
ALIGN2M | SECTOR4K: max_hosts 500
ALIGN4M | SECTOR4K: max_hosts 1000
ALIGN8M | SECTOR4K: max_hosts 2000
To create lockspaces/resources that can be used by sanlock
version 3.6 and earlier:
- on disks reporting sector size 512, use ALIGN1M | SECTOR512
- on disks reporting sector size 4096, use ALIGN8M | SECTOR4K
- on files use ALIGN1M | SECTOR512
Other combinations will either not be usable, or will be
corrupted if used by sanlock <= 3.6.
(Also includes fixes for rindex.)