From a38166e8498eedd2da6a5c99cb2443c772b5deb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Henrique?= <87824454+vitorhcl@users.noreply.github.com> Date: Sat, 13 Apr 2024 12:46:52 -0300 Subject: [PATCH] blkpr: add page (#12637) * blkpr: add page * blkpr: apply suggestions from code review * blkpr: add release example --------- Co-authored-by: Alejandro Cervera <96702705+tricantivu@users.noreply.github.com> --- pages/linux/blkpr.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/blkpr.md diff --git a/pages/linux/blkpr.md b/pages/linux/blkpr.md new file mode 100644 index 000000000..0288a805a --- /dev/null +++ b/pages/linux/blkpr.md @@ -0,0 +1,24 @@ +# blkpr + +> Register, reserve, release, preempt, and clear persistent reservations on a block device that supports Persistent Reservations. +> More information: . + +- Register ([c]ommand) a new reservation with a given [k]ey on a given device: + +`blkpr {{-c|--command}} register --key {{reservation_key}} {{path/to/device}}` + +- Set the [t]ype of an existing reservation to exclusive access: + +`blkpr -c reserve -k {{reservation_key}} {{-t|--type}} exclusive-access {{path/to/device}}` + +- Preempt the existing reservation with a given [K]ey and replace it with a new reservation: + +`blkpr -c preempt {{-K|--oldkey}} {{old_key}} --key {{new_key}} -t write-exclusive {{path/to/device}}` + +- Release a reservation with a given [k]ey and [t]ype on a given device: + +`blkpr -c release --key {{reservation_key}} -t {{reservation_type}} {{path/to/device}}` + +- Clear all reservations from a given device: + +`blkpr -c clear -k {{key}} {{path/to/device}}`