summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* spec: Add lvmlockctldev-dct-lvmlockd-ANMarian Csontos2015-06-101-0/+1
|
* lvmlockd: vg_validate and vgcreate/vgchange changesDavid Teigland2015-06-106-41/+167
| | | | | | | | Check lock_type and lock_args in vg_validate. Make some minor changes to when lock_type and lock_args are written during vgcreate and vgchange to eliminate intermediate states of the VG.
* lvmlockd: remove lv lock_typeDavid Teigland2015-06-0916-142/+122
|
* vgchange --lock-start: improve error when lvmlockd not runningDavid Teigland2015-06-081-2/+5
|
* lvmlockd Makefile: install lvmlockctlDavid Teigland2015-06-081-1/+4
|
* lvmetactl Makefile: remove DL_LIBSDavid Teigland2015-06-081-2/+1
|
* lvmlockd Makefile: remove DL_LIBS and rdyamaicDavid Teigland2015-06-081-4/+2
| | | | not needed
* new dehyphenationDavid Teigland2015-06-081-53/+20
| | | | avoid malloc/free entirely
* fix some new build warningsDavid Teigland2015-06-082-2/+2
|
* fix prev commitDavid Teigland2015-06-081-1/+1
|
* test with argv dehyphenation disabledDavid Teigland2015-06-081-0/+7
|
* lvmlockd test suite updateDavid Teigland2015-06-085-15/+9
| | | | | | These both now work: make check_lvmlockd_sanlock T=shell/sanlock-hello-world.sh make check_lvmlockd_dlm T=shell/dlm-hello-world.sh
* vgcreate, vgchange: unlock gl while waiting for startDavid Teigland2015-06-082-0/+4
|
* man lvmlockd: updatesDavid Teigland2015-06-081-27/+42
|
* tidy previous dehyphenation commitDavid Teigland2015-06-081-6/+4
|
* remove hyphens from long option names before processingDavid Teigland2015-06-082-9/+62
| | | | | | | | | | | lvextend --use-policies ee/lv1 Policy-based resize is supported only for snapshot and thin pool volumes. lvextend --usepolicies ee/lv1 Policy-based resize is supported only for snapshot and thin pool volumes. lvextend --us-ep-oli---cies ee/lv1 Policy-based resize is supported only for snapshot and thin pool volumes.
* fix stub function for handle_sanlock_lvDavid Teigland2015-06-081-1/+1
|
* vg attr for lockd VGDavid Teigland2015-06-081-1/+8
|
* lvconvert: fixes for lvmlockdDavid Teigland2015-06-081-43/+52
| | | | | A new thin pool LV gets a new lock in lvmlockd. The locks from data and meta LVs are unlocked and freed.
* man lvmlockd: updatesDavid Teigland2015-06-081-313/+257
|
* toollib: fix clustered and shared option combinationsDavid Teigland2015-06-081-24/+19
| | | | --clustered n was failing when it shouldn't.
* mkdir later is not creating parent directories.Marian Csontos2015-06-081-0/+2
| | | | | | | The parent directory (DIR) should either exist or should be created. It is not desirable to use `mkdir -p` which could lead to existing directory reuse.
* vgcreate: use --shared option for lockd vgsDavid Teigland2015-06-083-74/+69
| | | | | | | | | 'vgcreate --shared' is only used with lvmlockd and selects lock_type sanlock|dlm depending on which lock manager is running. It will not create clvm VGs. 'vgcreate --clustered' is only used with clvmd, only creates clvm VGs, and will not create lockd VGs.
* lvmlockd: make sanlock lv like metadata spare lvDavid Teigland2015-06-086-78/+31
| | | | handle them similarly
* updates to lvm2-lvmlocking unit fileDavid Teigland2015-06-081-7/+5
|
* spec: Comment out missing lvmlockd unitsMarian Csontos2015-06-081-7/+7
|
* lockd: Build lvmlockd(8) man pageMarian Csontos2015-06-081-1/+8
|
* [WIP] spec+lvmpolld: attempt to add polld to specMarian Csontos2015-06-084-0/+18
|
* fix compile warningsDavid Teigland2015-06-084-13/+21
|
* lvmetactl: rename from lvmetaDavid Teigland2015-06-082-3/+3
|
* lvmlockctl: rename from lvmlockDavid Teigland2015-06-082-8/+5
|
* check and extend sanlock lv earlierDavid Teigland2015-06-088-40/+250
| | | | at the start of lvcreate
* lvmlockd: move sanlock lease allocationDavid Teigland2015-06-083-5/+44
| | | | | | | | | | The lockd_init_lv() function no longer calls lvmlockd to ask for the sanlock lease to be allocated for the LV, i.e. lockd_init_lv_args(). Instead, it waits until vg_write() to do that, so the sanlock lease does not need to be freed in all the cases where lvcreate may quit before actually finishing.
* lib lvmlockd: add missing stub functionDavid Teigland2015-06-081-0/+4
|
* lvmlockd: use LV ids for LV lock namesDavid Teigland2015-06-087-165/+169
|
* lvmlockd: fix syslog optionDavid Teigland2015-06-081-14/+63
| | | | | Use standard syslog level names as option args to specify the level at which to send to syslog.
* vgcreate/vgchange: wait for lock start by defaultDavid Teigland2015-06-082-3/+16
| | | | | | | By default, vgcreate and vgchange --lock-start will wait for the lockspace to start. Adding --lock-opt nowait will cause them not to wait. The waiting can always be canceled by Ctrl-C without any harm.
* lib lvmlockd: retry busy locksDavid Teigland2015-06-083-0/+36
| | | | | | | | | | | By default retry lock operations that return EAGAIN because the lock is held by another host. These retries occur at the client/command level, and can be adjusted using global/lock_retries. lvmlockd already has some automatic retries to handle most incidental lock conflicts.
* man lvmlockd: remove section about recovering lost locksDavid Teigland2015-06-081-46/+48
|
* lib lvmlockd: print a warning when overriding lockingDavid Teigland2015-06-081-19/+32
| | | | | In addition to requiring lvm.conf configuration to override lock modes, also print a warning if it is done.
* client lvmlockd: improve warnings during initDavid Teigland2015-06-081-7/+14
| | | | | Print one simple warning message if the command cannot properly use lvmlockd.
* lib lvmlockd: add comments about locking functionsDavid Teigland2015-06-081-3/+111
| | | | | Add explanations of when and why to use the basic lvmlockd locking functions.
* tools: add comments about the global lockDavid Teigland2015-06-0818-12/+53
| | | | | State the reason that the global lock is needed in each place it is taken.
* test: structure for lvmlockd testingDavid Teigland2015-06-0813-0/+334
| | | | | | | | | | | | | | | | | | | | | | | make check_lvmlockd_sanlock T=shell/sanlock-hello-world.sh will run: shell/sanlock-prepare.sh to prepare sanlock and lvmlockd on the system shell/sanlock-hello-work.sh to test using lvmlockd and sanlock shell/sanlock-remove.sh to undo the things from sanlock-prepare.sh TODO: - use alias vgcreate="vgcreate --lock-type sanlock" in sanlock-prepare so that existing shell tests can just call vgcreate can be used to create and test sanlock vgs. - when using existing shell tests with sanlock, we need prepare_devs/prepare_pvs to create adequately large devs. See the necessity of sanlock-hello-world of specifying a large device size. This is needed for all the ondisk leases that are created by vgcreate. - get check_lvmlockd_dlm working
* vgcreate: option to allow waiting for lock startDavid Teigland2015-06-082-4/+18
| | | | | | | vgcreate with '--lock-opt wait' will cause the command to wait for the lock start to complete before returning, the same as when starting explicitly with 'vgchange --lock-start --lock-opt wait'
* lib lvmlockd: fix segfault in logging result flagsDavid Teigland2015-06-081-10/+8
|
* lvmlockd: clean up the use/connect/connected logicDavid Teigland2015-06-086-110/+105
| | | | | Get rid of the round about logic that was copied from lvmetad. Make it simple and clear.
* lvmlockd: fix dm checks of active lvs and add uuid checkDavid Teigland2015-06-081-8/+76
| | | | | | | The split names function wasn't used correct, it just accidentally worked before. Check for the LVM prefix on dm uuids.
* report: display lock_type and lock_argsDavid Teigland2015-06-087-0/+78
| | | | | -o locktype,lockargs can be used to display the lock_type and lock_args of VGs or LVs.
* lvmlock: drop old -c optionDavid Teigland2015-06-081-95/+3
| | | | was used for early testing, no purpose any more.