2024-04-13 16:46:52 +01:00
|
|
|
# blkpr
|
|
|
|
|
|
|
|
> Register, reserve, release, preempt, and clear persistent reservations on a block device that supports Persistent Reservations.
|
|
|
|
> More information: <https://manned.org/blkpr>.
|
|
|
|
|
2024-06-12 06:43:11 +01:00
|
|
|
- Register (command) a new reservation with a given key on a given device:
|
2024-04-13 16:46:52 +01:00
|
|
|
|
2024-06-12 06:43:11 +01:00
|
|
|
`blkpr {{-c|--command}} register {{-k|--key}} {{reservation_key}} {{path/to/device}}`
|
2024-04-13 16:46:52 +01:00
|
|
|
|
2024-06-12 06:43:11 +01:00
|
|
|
- Set the type of an existing reservation to exclusive access:
|
2024-04-13 16:46:52 +01:00
|
|
|
|
2024-06-12 06:43:11 +01:00
|
|
|
`blkpr -c reserve {{-k|--key}} {{reservation_key}} {{-t|--type}} exclusive-access {{path/to/device}}`
|
2024-04-13 16:46:52 +01:00
|
|
|
|
2024-06-12 06:43:11 +01:00
|
|
|
- Preempt the existing reservation with a given key and replace it with a new reservation:
|
2024-04-13 16:46:52 +01:00
|
|
|
|
2024-06-12 06:43:11 +01:00
|
|
|
`blkpr -c preempt {{-K|--oldkey}} {{old_key}} {{-k|--key}} {{new_key}} {{-t|--type}} write-exclusive {{path/to/device}}`
|
2024-04-13 16:46:52 +01:00
|
|
|
|
2024-06-12 06:43:11 +01:00
|
|
|
- Release a reservation with a given key and type on a given device:
|
2024-04-13 16:46:52 +01:00
|
|
|
|
2024-06-12 06:43:11 +01:00
|
|
|
`blkpr -c release {{-k|--key}} {{reservation_key}} {{-t|--type}} {{reservation_type}} {{path/to/device}}`
|
2024-04-13 16:46:52 +01:00
|
|
|
|
|
|
|
- Clear all reservations from a given device:
|
|
|
|
|
2024-06-12 06:43:11 +01:00
|
|
|
`blkpr -c clear {{-k|--key}} {{key}} {{path/to/device}}`
|