LinuxCommandLibrary

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.)

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community