HomeClusterLabs Projects

LVM-activate: add new RA for LVM activation

Description

LVM-activate: add new RA for LVM activation

You can see the motivation and basic design idea of
this RA from the header of LVM-activate. And, learn
the input parameters in "meta_data" func to use this
RA.


Changes since v1:

  1. Comments typo fixes and enhancements.
  2. Putting cur_systemid into extra_system_ids should work for

all sources of systemID.

  1. Only stop lockspace of the shared VG when the final LV has

been deactivated.

  1. Use 'dmsetup info -c -S "vgname=${VG} && lvname=${LV}"' to

check the LV status.

Changes since v2:

  1. Check the status of all LVs in given VG.
  2. Keep the existing tagging method in LVM-activate, but refer to it as

"tagging", dropping references to "host tags".

  1. Use "/bin/sh".
  2. Remove lvs in lvm_status(), though we have to make compromise that

the VG is assumably active if any LV of the VG is active.

Signed-off-by: Eric Ren <zren@suse.com>

Details

Provenance
Eric Ren <zren@suse.com>Authored on Sep 19 2017, 4:14 AM
Parents
rRc9a623a0bba3: lvmlockd: remove all LVM activation code
Branches
Unknown
Tags
Unknown

Event Timeline