Can you use LVM snapshot feature while using cluster LVM locking?
This document (000019652) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise High Availability Extension 12 SP4
SUSE Linux Enterprise High Availability Extension 12 SP5
SUSE Linux Enterprise Server 15 SP1
SUSE Linux Enterprise Server 12 SP4
SUSE Linux Enterprise Server 12 SP5
SLES12 --> clvm: Trying to create a snapshot on an LVM shared volume. ACTIVE|ACTIVE
lvcreate -L 1G -s -n test_snap /dev/clustervg/lnx_node1.vda.raw lnx_node1.vda.raw must be active exclusively to create snapshot
SLES15 --> lvmlockd: Trying to create a snapshot on an LVM shared volume will fail to get a lock.
lvcreate --size 200M --snapshot --name snap_shared vg-shared/lv-shared LV locked by other host: vg-shared/lv-shared Failed to lock origin LV vg-shared/lv-shared
They are complex enough and can not be supported at this time.
LV activation sy The command activates the LV in shared mode, allowing multiple hosts to activate the LV concurrently. Before activating the LV, the command uses lvmlockd to acquire a shared lock on the LV. If the lock cannot be acquired, the LV is not activated and an error is reported. This would happen if the LV is active exclusively on another host. If the LV type prohibits shared access, such as a snapshot, the command will report an error and fail. The shared mode is intended for a multi-host/cluster application or file system. LV types that cannot be used concurrently from multiple hosts include thin, cache, raid, and snapshot. [...] limitations of shared VGs Things that do not yet work in shared VGs: · using external origins for thin LVs · splitting snapshots from LVs · splitting mirrors in sanlock VGs · pvmove of entire PVs, or under LVs activated with shared locks · vgsplit and vgmerge (convert to a local VG to do this)
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000019652
- Creation Date: 22-Jun-2020
- Modified Date:22-Jun-2020
- SUSE Linux Enterprise High Availability Extension
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: email@example.com