From 7f02b8009839735b96d8861f2d0812a00580aa5b Mon Sep 17 00:00:00 2001 From: Ali Nazzal <89179776+ali90h@users.noreply.github.com> Date: Tue, 16 Sep 2025 06:37:40 +0300 Subject: [PATCH] lvmpersist: add page (#18076) Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> --- pages/linux/lvmpersist.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/linux/lvmpersist.md diff --git a/pages/linux/lvmpersist.md b/pages/linux/lvmpersist.md new file mode 100644 index 0000000000..37ce8bce68 --- /dev/null +++ b/pages/linux/lvmpersist.md @@ -0,0 +1,32 @@ +# lvmpersist + +> Manage persistent reservations (PR) on block devices or all PVs in a volume group. +> More information: . + +- Start PR on all PVs in a VG with a local key (exclusive access by default): + +`lvmpersist start --ourkey {{0x1234abcd}} --vg {{vg_name}}` + +- Start PR for a shared VG (allow multiple hosts): + +`lvmpersist start --ourkey {{0x1234abcd}} --access {{sh}} --vg {{vg_name}}` + +- Stop PR on a VG and unregister the local key: + +`lvmpersist stop --ourkey {{0x1234abcd}} --vg {{vg_name}}` + +- Take over a local VG by preempting another host while starting PR: + +`lvmpersist start --ourkey {{0xmy_key}} --removekey {{0xother_key}} --vg {{vg_name}}` + +- Remove another host's key from a shared VG: + +`lvmpersist remove --ourkey {{0xmy_key}} --removekey {{0xother_key}} --vg {{vg_name}}` + +- Show registered keys and reservations for a VG: + +`lvmpersist read --vg {{vg_name}}` + +- Operate on specific devices instead of a VG: + +`lvmpersist start --ourkey {{0x1234abcd}} --device {{/dev/sdX}} --device {{/dev/mapper/mpathY}}`