2024-04-13 12:46:52 -03: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 07:43:11 +02:00
|
|
|
- Register (command) a new reservation with a given key on a given device:
|
2024-04-13 12:46:52 -03:00
|
|
|
|
2025-03-09 01:35:31 +02:00
|
|
|
`blkpr {{[-c|--command]}} register {{[-k|--key]}} {{reservation_key}} {{path/to/device}}`
|
2024-04-13 12:46:52 -03:00
|
|
|
|
2024-06-12 07:43:11 +02:00
|
|
|
- Set the type of an existing reservation to exclusive access:
|
2024-04-13 12:46:52 -03:00
|
|
|
|
2025-03-15 23:32:36 +02:00
|
|
|
`blkpr {{[-c|--command]}} reserve {{[-k|--key]}} {{reservation_key}} {{[-t|--type]}} exclusive-access {{path/to/device}}`
|
2024-04-13 12:46:52 -03:00
|
|
|
|
2024-06-12 07:43:11 +02:00
|
|
|
- Preempt the existing reservation with a given key and replace it with a new reservation:
|
2024-04-13 12:46:52 -03:00
|
|
|
|
2025-03-15 23:32:36 +02:00
|
|
|
`blkpr {{[-c|--command]}} preempt {{[-K|--oldkey]}} {{old_key}} {{[-k|--key]}} {{new_key}} {{[-t|--type]}} write-exclusive {{path/to/device}}`
|
2024-04-13 12:46:52 -03:00
|
|
|
|
2024-06-12 07:43:11 +02:00
|
|
|
- Release a reservation with a given key and type on a given device:
|
2024-04-13 12:46:52 -03:00
|
|
|
|
2025-03-15 23:32:36 +02:00
|
|
|
`blkpr {{[-c|--command]}} release {{[-k|--key]}} {{reservation_key}} {{[-t|--type]}} {{reservation_type}} {{path/to/device}}`
|
2024-04-13 12:46:52 -03:00
|
|
|
|
|
|
|
- Clear all reservations from a given device:
|
|
|
|
|
2025-03-15 23:32:36 +02:00
|
|
|
`blkpr {{[-c|--command]}} clear {{[-k|--key]}} {{key}} {{path/to/device}}`
|