LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

blkpr

Manage persistent reservations on block devices

TLDR

Register reservation
$ blkpr -c register -k reservation_key /dev/sda
copy
Reserve exclusive access
$ blkpr -c reserve -k key -t exclusive-access /dev/sda
copy
Preempt existing reservation
$ blkpr -c preempt -K old_key -k new_key -t write-exclusive /dev/sda
copy
Release reservation
$ blkpr -c release -k key -t type /dev/sda
copy
Clear all reservations
$ blkpr -c clear -k key /dev/sda
copy

SYNOPSIS

blkpr [OPTIONS] device

DESCRIPTION

blkpr manages persistent reservations on block devices that support SCSI Persistent Reservations. It allows registering, reserving, releasing, preempting, and clearing reservations for shared storage access control.

PARAMETERS

-c, --command cmd

Command: register, reserve, release, preempt, clear
-k, --key key
Reservation key
-K, --oldkey key
Old key for preempt operations
-t, --type type
Reservation type (exclusive-access, write-exclusive, etc.)

INSTALL

sudo apt install util-linux-extra
copy
sudo apk add util-linux-misc
copy

CAVEATS

Requires devices that support SCSI Persistent Reservations. Used in clustered storage environments to coordinate access. Keys are typically 64-bit values.

HISTORY

blkpr is part of util-linux, providing block device persistent reservation management.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid