blkpr

Register, reserve, release, preempt, and clear persistent reservations on a block device that supports Persistent Reservations. More information: https://manned.org/blkpr.

blkpr -c|--command register --key reservation_key path/to/device

blkpr -c reserve -k reservation_key -t|--type exclusive-access path/to/device

blkpr -c preempt -K|--oldkey old_key --key new_key -t write-exclusive path/to/device

blkpr -c release --key reservation_key -t reservation_type path/to/device

blkpr -c clear -k key path/to/device