Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | vgcreate: use --shared option for lockd vgsdev-dct-lvmlockd-AL | David Teigland | 2015-06-03 | 3 | -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 lv | David Teigland | 2015-06-03 | 6 | -78/+31 |
| | | | | handle them similarly | ||||
* | updates to lvm2-lvmlocking unit file | David Teigland | 2015-06-03 | 1 | -7/+5 |
| | |||||
* | spec: Comment out missing lvmlockd units | Marian Csontos | 2015-06-03 | 1 | -7/+7 |
| | |||||
* | lockd: Build lvmlockd(8) man page | Marian Csontos | 2015-06-03 | 1 | -1/+8 |
| | |||||
* | [WIP] spec+lvmpolld: attempt to add polld to spec | Marian Csontos | 2015-06-03 | 4 | -0/+18 |
| | |||||
* | fix compile warnings | David Teigland | 2015-06-03 | 4 | -13/+21 |
| | |||||
* | lvmetactl: rename from lvmeta | David Teigland | 2015-06-03 | 2 | -3/+3 |
| | |||||
* | lvmlockctl: rename from lvmlock | David Teigland | 2015-06-03 | 2 | -8/+5 |
| | |||||
* | check and extend sanlock lv earlier | David Teigland | 2015-06-03 | 8 | -40/+250 |
| | | | | at the start of lvcreate | ||||
* | lvmlockd: move sanlock lease allocation | David Teigland | 2015-06-03 | 3 | -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 function | David Teigland | 2015-06-03 | 1 | -0/+4 |
| | |||||
* | lvmlockd: use LV ids for LV lock names | David Teigland | 2015-06-03 | 7 | -165/+169 |
| | |||||
* | lvmlockd: fix syslog option | David Teigland | 2015-06-02 | 1 | -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 default | David Teigland | 2015-06-02 | 2 | -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 locks | David Teigland | 2015-06-02 | 3 | -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 locks | David Teigland | 2015-06-02 | 1 | -46/+48 |
| | |||||
* | lib lvmlockd: print a warning when overriding locking | David Teigland | 2015-06-02 | 1 | -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 init | David Teigland | 2015-06-02 | 1 | -7/+14 |
| | | | | | Print one simple warning message if the command cannot properly use lvmlockd. | ||||
* | lib lvmlockd: add comments about locking functions | David Teigland | 2015-06-02 | 1 | -3/+111 |
| | | | | | Add explanations of when and why to use the basic lvmlockd locking functions. | ||||
* | tools: add comments about the global lock | David Teigland | 2015-06-02 | 18 | -12/+53 |
| | | | | | State the reason that the global lock is needed in each place it is taken. | ||||
* | test: structure for lvmlockd testing | David Teigland | 2015-06-02 | 13 | -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 start | David Teigland | 2015-06-02 | 2 | -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 flags | David Teigland | 2015-06-02 | 1 | -10/+8 |
| | |||||
* | lvmlockd: clean up the use/connect/connected logic | David Teigland | 2015-06-02 | 6 | -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 check | David Teigland | 2015-06-02 | 1 | -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_args | David Teigland | 2015-06-02 | 7 | -0/+78 |
| | | | | | -o locktype,lockargs can be used to display the lock_type and lock_args of VGs or LVs. | ||||
* | lvmlock: drop old -c option | David Teigland | 2015-06-02 | 1 | -95/+3 |
| | | | | was used for early testing, no purpose any more. | ||||
* | lvmlockd: use libdevmapper to get active LVs | David Teigland | 2015-06-02 | 2 | -50/+72 |
| | | | | | | | rather than reading /dev dirs. This identifies LVs that need to have locks adopted if lvmlockd is restarted while in use. | ||||
* | lvmlockd: use xlate.h for endian macros | David Teigland | 2015-06-02 | 4 | -37/+65 |
| | | | | and add the clearer macros to xlate.h | ||||
* | lvmlockd: include time.h and link with rt | David Teigland | 2015-06-02 | 2 | -1/+2 |
| | |||||
* | lvmlockd: rename socket variable | David Teigland | 2015-06-02 | 1 | -2/+2 |
| | | | | to avoid shadowing warning | ||||
* | lvmlockd: fix setup_structs | David Teigland | 2015-06-02 | 2 | -5/+47 |
| | | | | | | | The alloc/free loop was not populating the list of unused structs. Also print the number of structs when reporting info from daemon. | ||||
* | lvmlockd: apply consistent buffer strategy to client | David Teigland | 2015-06-02 | 2 | -2/+2 |
| | |||||
* | lvmlockd: put GNU_SOURCE in source files | David Teigland | 2015-06-02 | 3 | -1/+3 |
| | |||||
* | lvmlockd: use libsanlock_client | David Teigland | 2015-06-02 | 1 | -1/+1 |
| | | | | instead of the full libsanlock which isn't needed | ||||
* | lib: define constant for NO_LOCKD_RESULT | David Teigland | 2015-06-02 | 1 | -4/+9 |
| | |||||
* | lib: rename flags variables | David Teigland | 2015-06-02 | 1 | -59/+59 |
| | |||||
* | lib: use static inline stubs for lockd functions | David Teigland | 2015-06-02 | 1 | -19/+100 |
| | | | | when lvm is built without lvmlockd enabled. | ||||
* | configure: use pc checks for lvmlockd | David Teigland | 2015-06-02 | 1 | -0/+7 |
| | |||||
* | lvconvert, pvmove, polldaemon: add locking for lvmlockd | David Teigland | 2015-06-02 | 3 | -14/+205 |
| | |||||
* | scripts: lvmlockd related service files | David Teigland | 2015-06-02 | 2 | -0/+43 |
| | |||||
* | man: add lvmlockd man page | David Teigland | 2015-06-02 | 1 | -0/+794 |
| | |||||
* | liblvm: new unused arg for vg_read | David Teigland | 2015-06-02 | 1 | -1/+1 |
| | |||||
* | tools: use locks from lvmlockd | David Teigland | 2015-06-02 | 22 | -76/+765 |
| | |||||
* | tools: locking support for tools | David Teigland | 2015-06-02 | 4 | -16/+61 |
| | |||||
* | lib: use locks from lvmlockd | David Teigland | 2015-06-02 | 13 | -31/+310 |
| | |||||
* | lib: client side locking interface to lvmlockd | David Teigland | 2015-06-02 | 2 | -0/+2425 |
| | |||||
* | lvmlockd: add daemon | David Teigland | 2015-06-02 | 7 | -0/+8960 |
| | |||||
* | libdaemon: allow main processing function to be specified | David Teigland | 2015-06-02 | 2 | -1/+8 |
| |