.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "RBD" "8" "Mar 10, 2024" "dev" "Ceph" .SH NAME rbd \- manage rados block device (RBD) images .SH SYNOPSIS .nf \fBrbd\fP [ \-c \fIceph.conf\fP ] [ \-m \fImonaddr\fP ] [\-\-cluster \fIcluster\-name\fP] [ \-p | \-\-pool \fIpool\fP ] [ \fIcommand\fP ... ] .fi .sp .SH DESCRIPTION .sp \fBrbd\fP is a utility for manipulating rados block device (RBD) images, used by the Linux rbd driver and the rbd storage driver for QEMU/KVM. RBD images are simple block devices that are striped over objects and stored in a RADOS object store. The size of the objects the image is striped over must be a power of two. .SH OPTIONS .INDENT 0.0 .TP .B \-c ceph.conf, \-\-conf ceph.conf Use ceph.conf configuration file instead of the default /etc/ceph/ceph.conf to determine monitor addresses during startup. .UNINDENT .INDENT 0.0 .TP .B \-m monaddress[:port] Connect to specified monitor (instead of looking through ceph.conf). .UNINDENT .INDENT 0.0 .TP .B \-\-cluster cluster\-name Use different cluster name as compared to default cluster name \fIceph\fP\&. .UNINDENT .INDENT 0.0 .TP .B \-p pool\-name, \-\-pool pool\-name Interact with the given pool. Required by most commands. .UNINDENT .INDENT 0.0 .TP .B \-\-namespace namespace\-name Use a pre\-defined image namespace within a pool .UNINDENT .INDENT 0.0 .TP .B \-\-no\-progress Do not output progress information (goes to standard error by default for some commands). .UNINDENT .SH PARAMETERS .INDENT 0.0 .TP .B \-\-image\-format format\-id Specifies which object layout to use. The default is 2. .INDENT 7.0 .IP \(bu 2 format 1 \- (deprecated) Use the original format for a new rbd image. This format is understood by all versions of librbd and the kernel rbd module, but does not support newer features like cloning. .IP \(bu 2 format 2 \- Use the second rbd format, which is supported by librbd since the Bobtail release and the kernel rbd module since kernel 3.10 (except for \(dqfancy\(dq striping, which is supported since kernel 4.17). This adds support for cloning and is more easily extensible to allow more features in the future. .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \-s size\-in\-M/G/T, \-\-size size\-in\-M/G/T Specifies the size of the new rbd image or the new size of the existing rbd image in M/G/T. If no suffix is given, unit M is assumed. .UNINDENT .INDENT 0.0 .TP .B \-\-object\-size size\-in\-B/K/M Specifies the object size in B/K/M. Object size will be rounded up the nearest power of two; if no suffix is given, unit B is assumed. The default object size is 4M, smallest is 4K and maximum is 32M. .sp The default value can be changed with the configuration option \fBrbd_default_order\fP, which takes a power of two (default object size is \fB2 ^ rbd_default_order\fP). .UNINDENT .INDENT 0.0 .TP .B \-\-stripe\-unit size\-in\-B/K/M Specifies the stripe unit size in B/K/M. If no suffix is given, unit B is assumed. See striping section (below) for more details. .UNINDENT .INDENT 0.0 .TP .B \-\-stripe\-count num Specifies the number of objects to stripe over before looping back to the first object. See striping section (below) for more details. .UNINDENT .INDENT 0.0 .TP .B \-\-snap snap Specifies the snapshot name for the specific operation. .UNINDENT .INDENT 0.0 .TP .B \-\-id username Specifies the username (without the \fBclient.\fP prefix) to use with the map command. .UNINDENT .INDENT 0.0 .TP .B \-\-keyring filename Specifies a keyring file containing a secret for the specified user to use with the map command. If not specified, the default keyring locations will be searched. .UNINDENT .INDENT 0.0 .TP .B \-\-keyfile filename Specifies a file containing the secret key of \fB\-\-id user\fP to use with the map command. This option is overridden by \fB\-\-keyring\fP if the latter is also specified. .UNINDENT .INDENT 0.0 .TP .B \-\-shared lock\-tag Option for \fIlock add\fP that allows multiple clients to lock the same image if they use the same tag. The tag is an arbitrary string. This is useful for situations where an image must be open from more than one client at once, like during live migration of a virtual machine, or for use underneath a clustered file system. .UNINDENT .INDENT 0.0 .TP .B \-\-format format Specifies output formatting (default: plain, json, xml) .UNINDENT .INDENT 0.0 .TP .B \-\-pretty\-format Make json or xml formatted output more human\-readable. .UNINDENT .INDENT 0.0 .TP .B \-o krbd\-options, \-\-options krbd\-options Specifies which options to use when mapping or unmapping an image via the rbd kernel driver. krbd\-options is a comma\-separated list of options (similar to mount(8) mount options). See kernel rbd (krbd) options section below for more details. .UNINDENT .INDENT 0.0 .TP .B \-\-read\-only Map the image read\-only. Equivalent to \-o ro. .UNINDENT .INDENT 0.0 .TP .B \-\-image\-feature feature\-name Specifies which RBD format 2 feature should be enabled when creating an image. Multiple features can be enabled by repeating this option multiple times. The following features are supported: .INDENT 7.0 .IP \(bu 2 layering: layering support .IP \(bu 2 striping: striping v2 support .IP \(bu 2 exclusive\-lock: exclusive locking support .IP \(bu 2 object\-map: object map support (requires exclusive\-lock) .IP \(bu 2 fast\-diff: fast diff calculations (requires object\-map) .IP \(bu 2 deep\-flatten: snapshot flatten support .IP \(bu 2 journaling: journaled IO support (requires exclusive\-lock) .IP \(bu 2 data\-pool: erasure coded pool support .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \-\-image\-shared Specifies that the image will be used concurrently by multiple clients. This will disable features that are dependent upon exclusive ownership of the image. .UNINDENT .INDENT 0.0 .TP .B \-\-whole\-object Specifies that the diff should be limited to the extents of a full object instead of showing intra\-object deltas. When the object map feature is enabled on an image, limiting the diff to the object extents will dramatically improve performance since the differences can be computed by examining the in\-memory object map instead of querying RADOS for each object within the image. .UNINDENT .INDENT 0.0 .TP .B \-\-limit Specifies the limit for the number of snapshots permitted. .UNINDENT .SH COMMANDS .INDENT 0.0 .TP \fBbench\fP \-\-io\-type [\-\-io\-size \fIsize\-in\-B/K/M/G/T\fP] [\-\-io\-threads \fInum\-ios\-in\-flight\fP] [\-\-io\-total \fIsize\-in\-B/K/M/G/T\fP] [\-\-io\-pattern seq | rand] [\-\-rw\-mix\-read \fIread proportion in readwrite\fP] \fIimage\-spec\fP Generate a series of IOs to the image and measure the IO throughput and latency. If no suffix is given, unit B is assumed for both \-\-io\-size and \-\-io\-total. Defaults are: \-\-io\-size 4096, \-\-io\-threads 16, \-\-io\-total 1G, \-\-io\-pattern seq, \-\-rw\-mix\-read 50. .TP \fBchildren\fP \fIsnap\-spec\fP List the clones of the image at the given snapshot. This checks every pool, and outputs the resulting poolname/imagename. .sp This requires image format 2. .TP \fBclone\fP [\-\-object\-size \fIsize\-in\-B/K/M\fP] [\-\-stripe\-unit \fIsize\-in\-B/K/M\fP \-\-stripe\-count \fInum\fP] [\-\-image\-feature \fIfeature\-name\fP] [\-\-image\-shared] \fIparent\-snap\-spec\fP \fIchild\-image\-spec\fP Will create a clone (copy\-on\-write child) of the parent snapshot. Object size will be identical to that of the parent image unless specified. Size will be the same as the parent snapshot. The \-\-stripe\-unit and \-\-stripe\-count arguments are optional, but must be used together. .sp The parent snapshot must be protected (see \fIrbd snap protect\fP). This requires image format 2. .TP \fBconfig global get\fP \fIconfig\-entity\fP \fIkey\fP Get a global\-level configuration override. .TP \fBconfig global list\fP [\-\-format plain | json | xml] [\-\-pretty\-format] \fIconfig\-entity\fP List global\-level configuration overrides. .TP \fBconfig global set\fP \fIconfig\-entity\fP \fIkey\fP \fIvalue\fP Set a global\-level configuration override. .TP \fBconfig global remove\fP \fIconfig\-entity\fP \fIkey\fP Remove a global\-level configuration override. .TP \fBconfig image get\fP \fIimage\-spec\fP \fIkey\fP Get an image\-level configuration override. .TP \fBconfig image list\fP [\-\-format plain | json | xml] [\-\-pretty\-format] \fIimage\-spec\fP List image\-level configuration overrides. .TP \fBconfig image set\fP \fIimage\-spec\fP \fIkey\fP \fIvalue\fP Set an image\-level configuration override. .TP \fBconfig image remove\fP \fIimage\-spec\fP \fIkey\fP Remove an image\-level configuration override. .TP \fBconfig pool get\fP \fIpool\-name\fP \fIkey\fP Get a pool\-level configuration override. .TP \fBconfig pool list\fP [\-\-format plain | json | xml] [\-\-pretty\-format] \fIpool\-name\fP List pool\-level configuration overrides. .TP \fBconfig pool set\fP \fIpool\-name\fP \fIkey\fP \fIvalue\fP Set a pool\-level configuration override. .TP \fBconfig pool remove\fP \fIpool\-name\fP \fIkey\fP Remove a pool\-level configuration override. .TP \fBcp\fP (\fIsrc\-image\-spec\fP | \fIsrc\-snap\-spec\fP) \fIdest\-image\-spec\fP Copy the content of a src\-image into the newly created dest\-image. dest\-image will have the same size, object size, and image format as src\-image. Note: snapshots are not copied, use \fIdeep cp\fP command to include snapshots. .TP \fBcreate\fP (\-s | \-\-size \fIsize\-in\-M/G/T\fP) [\-\-image\-format \fIformat\-id\fP] [\-\-object\-size \fIsize\-in\-B/K/M\fP] [\-\-stripe\-unit \fIsize\-in\-B/K/M\fP \-\-stripe\-count \fInum\fP] [\-\-thick\-provision] [\-\-no\-progress] [\-\-image\-feature \fIfeature\-name\fP]... [\-\-image\-shared] \fIimage\-spec\fP Will create a new rbd image. You must also specify the size via \-\-size. The \-\-stripe\-unit and \-\-stripe\-count arguments are optional, but must be used together. If the \-\-thick\-provision is enabled, it will fully allocate storage for the image at creation time. It will take a long time to do. Note: thick provisioning requires zeroing the contents of the entire image. .TP \fBdeep cp\fP (\fIsrc\-image\-spec\fP | \fIsrc\-snap\-spec\fP) \fIdest\-image\-spec\fP Deep copy the content of a src\-image into the newly created dest\-image. Dest\-image will have the same size, object size, image format, and snapshots as src\-image. .TP \fBdevice list\fP [\-t | \-\-device\-type \fIdevice\-type\fP] [\-\-format plain | json | xml] \-\-pretty\-format Show the rbd images that are mapped via the rbd kernel module (default) or other supported device. .TP \fBdevice map\fP [\-t | \-\-device\-type \fIdevice\-type\fP] [\-\-cookie \fIdevice\-cookie\fP] [\-\-show\-cookie] [\-\-snap\-id \fIsnap\-id\fP] [\-\-read\-only] [\-\-exclusive] [\-o | \-\-options \fIdevice\-options\fP] \fIimage\-spec\fP | \fIsnap\-spec\fP Map the specified image to a block device via the rbd kernel module (default) or other supported device (\fInbd\fP on Linux or \fIggate\fP on FreeBSD). .sp The \-\-options argument is a comma separated list of device type specific options (opt1,opt2=val,...). .TP \fBdevice unmap\fP [\-t | \-\-device\-type \fIdevice\-type\fP] [\-o | \-\-options \fIdevice\-options\fP] [\-\-snap\-id \fIsnap\-id\fP] \fIimage\-spec\fP | \fIsnap\-spec\fP | \fIdevice\-path\fP Unmap the block device that was mapped via the rbd kernel module (default) or other supported device. .sp The \-\-options argument is a comma separated list of device type specific options (opt1,opt2=val,...). .TP \fBdevice attach\fP [\-t | \-\-device\-type \fIdevice\-type\fP] \-\-device \fIdevice\-path\fP [\-\-cookie \fIdevice\-cookie\fP] [\-\-show\-cookie] [\-\-snap\-id \fIsnap\-id\fP] [\-\-read\-only] [\-\-exclusive] [\-\-force] [\-o | \-\-options \fIdevice\-options\fP] \fIimage\-spec\fP | \fIsnap\-spec\fP Attach the specified image to the specified block device (currently only \fInbd\fP on Linux). This operation is unsafe and should not be normally used. In particular, specifying the wrong image or the wrong block device may lead to data corruption as no validation is performed by \fInbd\fP kernel driver. .sp The \-\-options argument is a comma separated list of device type specific options (opt1,opt2=val,...). .TP \fBdevice detach\fP [\-t | \-\-device\-type \fIdevice\-type\fP] [\-o | \-\-options \fIdevice\-options\fP] [\-\-snap\-id \fIsnap\-id\fP] \fIimage\-spec\fP | \fIsnap\-spec\fP | \fIdevice\-path\fP Detach the block device that was mapped or attached (currently only \fInbd\fP on Linux). This operation is unsafe and should not be normally used. .sp The \-\-options argument is a comma separated list of device type specific options (opt1,opt2=val,...). .TP \fBdiff\fP [\-\-from\-snap \fIsnap\-name\fP] [\-\-whole\-object] \fIimage\-spec\fP | \fIsnap\-spec\fP Dump a list of byte extents in the image that have changed since the specified start snapshot, or since the image was created. Each output line includes the starting offset (in bytes), the length of the region (in bytes), and either \(aqzero\(aq or \(aqdata\(aq to indicate whether the region is known to be zeros or may contain other data. .TP \fBdu\fP [\-p | \-\-pool \fIpool\-name\fP] [\fIimage\-spec\fP | \fIsnap\-spec\fP] [\-\-merge\-snapshots] Will calculate the provisioned and actual disk usage of all images and associated snapshots within the specified pool. It can also be used against individual images and snapshots. .sp If the RBD fast\-diff feature is not enabled on images, this operation will require querying the OSDs for every potential object within the image. .sp The \-\-merge\-snapshots will merge snapshots used space into their parent images. .TP \fBencryption format\fP \fIimage\-spec\fP \fIformat\fP \fIpassphrase\-file\fP [\-\-cipher\-alg \fIalg\fP] Formats image to an encrypted format. All data previously written to the image will become unreadable. Supported formats: \fIluks1\fP, \fIluks2\fP\&. Supported cipher algorithms: \fIaes\-128\fP, \fIaes\-256\fP (default). .TP \fBexport\fP [\-\-export\-format \fIformat (1 or 2)\fP] (\fIimage\-spec\fP | \fIsnap\-spec\fP) [\fIdest\-path\fP] Export image to dest path (use \- for stdout). The \-\-export\-format accepts \(aq1\(aq or \(aq2\(aq currently. Format 2 allow us to export not only the content of image, but also the snapshots and other properties, such as image_order, features. .TP \fBexport\-diff\fP [\-\-from\-snap \fIsnap\-name\fP] [\-\-whole\-object] (\fIimage\-spec\fP | \fIsnap\-spec\fP) \fIdest\-path\fP Export an incremental diff for an image to dest path (use \- for stdout). If an initial snapshot is specified, only changes since that snapshot are included; otherwise, any regions of the image that contain data are included. The end snapshot is specified using the standard \-\-snap option or @snap syntax (see below). The image diff format includes metadata about image size changes, and the start and end snapshots. It efficiently represents discarded or \(aqzero\(aq regions of the image. .TP \fBfeature disable\fP \fIimage\-spec\fP \fIfeature\-name\fP\&... Disable the specified feature on the specified image. Multiple features can be specified. .TP \fBfeature enable\fP \fIimage\-spec\fP \fIfeature\-name\fP\&... Enable the specified feature on the specified image. Multiple features can be specified. .TP \fBflatten\fP [\-\-encryption\-format \fIencryption\-format\fP \-\-encryption\-passphrase\-file \fIpassphrase\-file\fP]... \fIimage\-spec\fP If image is a clone, copy all shared blocks from the parent snapshot and make the child independent of the parent, severing the link between parent snap and child. The parent snapshot can be unprotected and deleted if it has no further dependent clones. .sp This requires image format 2. .TP \fBgroup create\fP \fIgroup\-spec\fP Create a group. .TP \fBgroup image add\fP \fIgroup\-spec\fP \fIimage\-spec\fP Add an image to a group. .TP \fBgroup image list\fP \fIgroup\-spec\fP List images in a group. .TP \fBgroup image remove\fP \fIgroup\-spec\fP \fIimage\-spec\fP Remove an image from a group. .TP \fBgroup ls\fP [\-p | \-\-pool \fIpool\-name\fP] List rbd groups. .TP \fBgroup rename\fP \fIsrc\-group\-spec\fP \fIdest\-group\-spec\fP Rename a group. Note: rename across pools is not supported. .TP \fBgroup rm\fP \fIgroup\-spec\fP Delete a group. .TP \fBgroup snap create\fP \fIgroup\-snap\-spec\fP Make a snapshot of a group. .TP \fBgroup snap list\fP \fIgroup\-spec\fP List snapshots of a group. .TP \fBgroup snap rm\fP \fIgroup\-snap\-spec\fP Remove a snapshot from a group. .TP \fBgroup snap rename\fP \fIgroup\-snap\-spec\fP \fIsnap\-name\fP Rename group\(aqs snapshot. .TP \fBgroup snap rollback\fP \fIgroup\-snap\-spec\fP Rollback group to snapshot. .TP \fBimage\-meta get\fP \fIimage\-spec\fP \fIkey\fP Get metadata value with the key. .TP \fBimage\-meta list\fP \fIimage\-spec\fP Show metadata held on the image. The first column is the key and the second column is the value. .TP \fBimage\-meta remove\fP \fIimage\-spec\fP \fIkey\fP Remove metadata key with the value. .TP \fBimage\-meta set\fP \fIimage\-spec\fP \fIkey\fP \fIvalue\fP Set metadata key with the value. They will displayed in \fIimage\-meta list\fP\&. .TP \fBimport\fP [\-\-export\-format \fIformat (1 or 2)\fP] [\-\-image\-format \fIformat\-id\fP] [\-\-object\-size \fIsize\-in\-B/K/M\fP] [\-\-stripe\-unit \fIsize\-in\-B/K/M\fP \-\-stripe\-count \fInum\fP] [\-\-image\-feature \fIfeature\-name\fP]... [\-\-image\-shared] \fIsrc\-path\fP [\fIimage\-spec\fP] Create a new image and imports its data from path (use \- for stdin). The import operation will try to create sparse rbd images if possible. For import from stdin, the sparsification unit is the data block size of the destination image (object size). .sp The \-\-stripe\-unit and \-\-stripe\-count arguments are optional, but must be used together. .sp The \-\-export\-format accepts \(aq1\(aq or \(aq2\(aq currently. Format 2 allow us to import not only the content of image, but also the snapshots and other properties, such as image_order, features. .TP \fBimport\-diff\fP \fIsrc\-path\fP \fIimage\-spec\fP Import an incremental diff of an image and applies it to the current image. If the diff was generated relative to a start snapshot, we verify that snapshot already exists before continuing. If there was an end snapshot we verify it does not already exist before applying the changes, and create the snapshot when we are done. .TP \fBinfo\fP \fIimage\-spec\fP | \fIsnap\-spec\fP Will dump information (such as size and object size) about a specific rbd image. If image is a clone, information about its parent is also displayed. If a snapshot is specified, whether it is protected is shown as well. .TP \fBjournal client disconnect\fP \fIjournal\-spec\fP Flag image journal client as disconnected. .TP \fBjournal export\fP [\-\-verbose] [\-\-no\-error] \fIsrc\-journal\-spec\fP \fIpath\-name\fP Export image journal to path (use \- for stdout). It can be make a backup of the image journal especially before attempting dangerous operations. .sp Note that this command may not always work if the journal is badly corrupted. .TP \fBjournal import\fP [\-\-verbose] [\-\-no\-error] \fIpath\-name\fP \fIdest\-journal\-spec\fP Import image journal from path (use \- for stdin). .TP \fBjournal info\fP \fIjournal\-spec\fP Show information about image journal. .TP \fBjournal inspect\fP [\-\-verbose] \fIjournal\-spec\fP Inspect and report image journal for structural errors. .TP \fBjournal reset\fP \fIjournal\-spec\fP Reset image journal. .TP \fBjournal status\fP \fIjournal\-spec\fP Show status of image journal. .TP \fBlock add\fP [\-\-shared \fIlock\-tag\fP] \fIimage\-spec\fP \fIlock\-id\fP Lock an image. The lock\-id is an arbitrary name for the user\(aqs convenience. By default, this is an exclusive lock, meaning it will fail if the image is already locked. The \-\-shared option changes this behavior. Note that locking does not affect any operation other than adding a lock. It does not protect an image from being deleted. .TP \fBlock ls\fP \fIimage\-spec\fP Show locks held on the image. The first column is the locker to use with the \fIlock remove\fP command. .TP \fBlock rm\fP \fIimage\-spec\fP \fIlock\-id\fP \fIlocker\fP Release a lock on an image. The lock id and locker are as output by lock ls. .TP \fBls\fP [\-l | \-\-long] [\fIpool\-name\fP] Will list all rbd images listed in the rbd_directory object. With \-l, also show snapshots, and use longer\-format output including size, parent (if clone), format, etc. .TP \fBmerge\-diff\fP \fIfirst\-diff\-path\fP \fIsecond\-diff\-path\fP \fImerged\-diff\-path\fP Merge two continuous incremental diffs of an image into one single diff. The first diff\(aqs end snapshot must be equal with the second diff\(aqs start snapshot. The first diff could be \- for stdin, and merged diff could be \- for stdout, which enables multiple diff files to be merged using something like \(aqrbd merge\-diff first second \- | rbd merge\-diff \- third result\(aq. Note this command currently only support the source incremental diff with stripe_count == 1 .TP \fBmigration abort\fP \fIimage\-spec\fP Cancel image migration. This step may be run after successful or failed migration prepare or migration execute steps and returns the image to its initial (before migration) state. All modifications to the destination image are lost. .TP \fBmigration commit\fP \fIimage\-spec\fP Commit image migration. This step is run after a successful migration prepare and migration execute steps and removes the source image data. .TP \fBmigration execute\fP \fIimage\-spec\fP Execute image migration. This step is run after a successful migration prepare step and copies image data to the destination. .TP \fBmigration prepare\fP [\-\-order \fIorder\fP] [\-\-object\-size \fIobject\-size\fP] [\-\-image\-feature \fIimage\-feature\fP] [\-\-image\-shared] [\-\-stripe\-unit \fIstripe\-unit\fP] [\-\-stripe\-count \fIstripe\-count\fP] [\-\-data\-pool \fIdata\-pool\fP] [\-\-import\-only] [\-\-source\-spec \fIjson\fP] [\-\-source\-spec\-path \fIpath\fP] \fIsrc\-image\-spec\fP [\fIdest\-image\-spec\fP] Prepare image migration. This is the first step when migrating an image, i.e. changing the image location, format or other parameters that can\(aqt be changed dynamically. The destination can match the source, and in this case \fIdest\-image\-spec\fP can be omitted. After this step the source image is set as a parent of the destination image, and the image is accessible in copy\-on\-write mode by its destination spec. .sp An image can also be migrated from a read\-only import source by adding the \fI\-\-import\-only\fP optional and providing a JSON\-encoded \fI\-\-source\-spec\fP or a path to a JSON\-encoded source\-spec file using the \fI\-\-source\-spec\-path\fP optionals. .TP \fBmirror image demote\fP \fIimage\-spec\fP Demote a primary image to non\-primary for RBD mirroring. .TP \fBmirror image disable\fP [\-\-force] \fIimage\-spec\fP Disable RBD mirroring for an image. If the mirroring is configured in \fBimage\fP mode for the image\(aqs pool, then it can be explicitly disabled mirroring for each image within the pool. .TP \fBmirror image enable\fP \fIimage\-spec\fP \fImode\fP Enable RBD mirroring for an image. If the mirroring is configured in \fBimage\fP mode for the image\(aqs pool, then it can be explicitly enabled mirroring for each image within the pool. .sp The mirror image mode can either be \fBjournal\fP (default) or \fBsnapshot\fP\&. The \fBjournal\fP mode requires the RBD journaling feature. .TP \fBmirror image promote\fP [\-\-force] \fIimage\-spec\fP Promote a non\-primary image to primary for RBD mirroring. .TP \fBmirror image resync\fP \fIimage\-spec\fP Force resync to primary image for RBD mirroring. .TP \fBmirror image status\fP \fIimage\-spec\fP Show RBD mirroring status for an image. .TP \fBmirror pool demote\fP [\fIpool\-name\fP] Demote all primary images within a pool to non\-primary. Every mirroring enabled image will demoted in the pool. .TP \fBmirror pool disable\fP [\fIpool\-name\fP] Disable RBD mirroring by default within a pool. When mirroring is disabled on a pool in this way, mirroring will also be disabled on any images (within the pool) for which mirroring was enabled explicitly. .TP \fBmirror pool enable\fP [\fIpool\-name\fP] \fImode\fP Enable RBD mirroring by default within a pool. The mirroring mode can either be \fBpool\fP or \fBimage\fP\&. If configured in \fBpool\fP mode, all images in the pool with the journaling feature enabled are mirrored. If configured in \fBimage\fP mode, mirroring needs to be explicitly enabled (by \fBmirror image enable\fP command) on each image. .TP \fBmirror pool info\fP [\fIpool\-name\fP] Show information about the pool mirroring configuration. It includes mirroring mode, peer UUID, remote cluster name, and remote client name. .TP \fBmirror pool peer add\fP [\fIpool\-name\fP] \fIremote\-cluster\-spec\fP Add a mirroring peer to a pool. \fIremote\-cluster\-spec\fP is [\fIremote client name\fP@]\fIremote cluster name\fP\&. .sp The default for \fIremote client name\fP is \(dqclient.admin\(dq. .sp This requires mirroring mode is enabled. .TP \fBmirror pool peer remove\fP [\fIpool\-name\fP] \fIuuid\fP Remove a mirroring peer from a pool. The peer uuid is available from \fBmirror pool info\fP command. .TP \fBmirror pool peer set\fP [\fIpool\-name\fP] \fIuuid\fP \fIkey\fP \fIvalue\fP Update mirroring peer settings. The key can be either \fBclient\fP or \fBcluster\fP, and the value is corresponding to remote client name or remote cluster name. .TP \fBmirror pool promote\fP [\-\-force] [\fIpool\-name\fP] Promote all non\-primary images within a pool to primary. Every mirroring enabled image will promoted in the pool. .TP \fBmirror pool status\fP [\-\-verbose] [\fIpool\-name\fP] Show status for all mirrored images in the pool. With \-\-verbose, also show additionally output status details for every mirroring image in the pool. .TP \fBmirror snapshot schedule add\fP [\-p | \-\-pool \fIpool\fP] [\-\-namespace \fInamespace\fP] [\-\-image \fIimage\fP] \fIinterval\fP [\fIstart\-time\fP] Add mirror snapshot schedule. .TP \fBmirror snapshot schedule list\fP [\-R | \-\-recursive] [\-\-format \fIformat\fP] [\-\-pretty\-format] [\-p | \-\-pool \fIpool\fP] [\-\-namespace \fInamespace\fP] [\-\-image \fIimage\fP] List mirror snapshot schedule. .TP \fBmirror snapshot schedule remove\fP [\-p | \-\-pool \fIpool\fP] [\-\-namespace \fInamespace\fP] [\-\-image \fIimage\fP] \fIinterval\fP [\fIstart\-time\fP] Remove mirror snapshot schedule. .TP \fBmirror snapshot schedule status\fP [\-p | \-\-pool \fIpool\fP] [\-\-format \fIformat\fP] [\-\-pretty\-format] [\-\-namespace \fInamespace\fP] [\-\-image \fIimage\fP] Show mirror snapshot schedule status. .TP \fBmv\fP \fIsrc\-image\-spec\fP \fIdest\-image\-spec\fP Rename an image. Note: rename across pools is not supported. .TP \fBnamespace create\fP \fIpool\-name\fP/\fInamespace\-name\fP Create a new image namespace within the pool. .TP \fBnamespace list\fP \fIpool\-name\fP List image namespaces defined within the pool. .TP \fBnamespace remove\fP \fIpool\-name\fP/\fInamespace\-name\fP Remove an empty image namespace from the pool. .TP \fBobject\-map check\fP \fIimage\-spec\fP | \fIsnap\-spec\fP Verify the object map is correct. .TP \fBobject\-map rebuild\fP \fIimage\-spec\fP | \fIsnap\-spec\fP Rebuild an invalid object map for the specified image. An image snapshot can be specified to rebuild an invalid object map for a snapshot. .TP \fBpool init\fP [\fIpool\-name\fP] [\-\-force] Initialize pool for use by RBD. Newly created pools must initialized prior to use. .TP \fBresize\fP (\-s | \-\-size \fIsize\-in\-M/G/T\fP) [\-\-allow\-shrink] [\-\-encryption\-format \fIencryption\-format\fP \-\-encryption\-passphrase\-file \fIpassphrase\-file\fP]... \fIimage\-spec\fP Resize rbd image. The size parameter also needs to be specified. The \-\-allow\-shrink option lets the size be reduced. .TP \fBrm\fP \fIimage\-spec\fP Delete an rbd image (including all data blocks). If the image has snapshots, this fails and nothing is deleted. .TP \fBsnap create\fP \fIsnap\-spec\fP Create a new snapshot. Requires the snapshot name parameter specified. .TP \fBsnap limit clear\fP \fIimage\-spec\fP Remove any previously set limit on the number of snapshots allowed on an image. .TP \fBsnap limit set\fP [\-\-limit] \fIlimit\fP \fIimage\-spec\fP Set a limit for the number of snapshots allowed on an image. .TP \fBsnap ls\fP \fIimage\-spec\fP Dump the list of snapshots inside a specific image. .TP \fBsnap protect\fP \fIsnap\-spec\fP Protect a snapshot from deletion, so that clones can be made of it (see \fIrbd clone\fP). Snapshots must be protected before clones are made; protection implies that there exist dependent cloned children that refer to this snapshot. \fIrbd clone\fP will fail on a nonprotected snapshot. .sp This requires image format 2. .TP \fBsnap purge\fP \fIimage\-spec\fP Remove all unprotected snapshots from an image. .TP \fBsnap rename\fP \fIsrc\-snap\-spec\fP \fIdest\-snap\-spec\fP Rename a snapshot. Note: rename across pools and images is not supported. .TP \fBsnap rm\fP [\-\-force] \fIsnap\-spec\fP Remove the specified snapshot. .TP \fBsnap rollback\fP \fIsnap\-spec\fP Rollback image content to snapshot. This will iterate through the entire blocks array and update the data head content to the snapshotted version. .TP \fBsnap unprotect\fP \fIsnap\-spec\fP Unprotect a snapshot from deletion (undo \fIsnap protect\fP). If cloned children remain, \fIsnap unprotect\fP fails. (Note that clones may exist in different pools than the parent snapshot.) .sp This requires image format 2. .TP \fBsparsify\fP [\-\-sparse\-size \fIsparse\-size\fP] \fIimage\-spec\fP Reclaim space for zeroed image extents. The default sparse size is 4096 bytes and can be changed via \-\-sparse\-size option with the following restrictions: it should be power of two, not less than 4096, and not larger than image object size. .TP \fBstatus\fP \fIimage\-spec\fP Show the status of the image, including which clients have it open. .TP \fBtrash ls\fP [\fIpool\-name\fP] List all entries from trash. .TP \fBtrash mv\fP \fIimage\-spec\fP Move an image to the trash. Images, even ones actively in\-use by clones, can be moved to the trash and deleted at a later time. .TP \fBtrash purge\fP [\fIpool\-name\fP] Remove all expired images from trash. .TP \fBtrash restore\fP \fIimage\-id\fP Restore an image from trash. .TP \fBtrash rm\fP \fIimage\-id\fP Delete an image from trash. If image deferment time has not expired you can not removed it unless use force. But an actively in\-use by clones or has snapshots can not be removed. .TP \fBtrash purge schedule add\fP [\-p | \-\-pool \fIpool\fP] [\-\-namespace \fInamespace\fP] \fIinterval\fP [\fIstart\-time\fP] Add trash purge schedule. .TP \fBtrash purge schedule list\fP [\-R | \-\-recursive] [\-\-format \fIformat\fP] [\-\-pretty\-format] [\-p | \-\-pool \fIpool\fP] [\-\-namespace \fInamespace\fP] List trash purge schedule. .TP \fBtrash purge schedule remove\fP [\-p | \-\-pool \fIpool\fP] [\-\-namespace \fInamespace\fP] \fIinterval\fP [\fIstart\-time\fP] Remove trash purge schedule. .TP \fBtrash purge schedule status\fP [\-p | \-\-pool \fIpool\fP] [\-\-format \fIformat\fP] [\-\-pretty\-format] [\-\-namespace \fInamespace\fP] Show trash purge schedule status. .TP \fBwatch\fP \fIimage\-spec\fP Watch events on image. .UNINDENT .SH IMAGE, SNAP, GROUP AND JOURNAL SPECS .nf \fIimage\-spec\fP is [\fIpool\-name\fP/[\fInamespace\-name\fP/]]\fIimage\-name\fP \fIsnap\-spec\fP is [\fIpool\-name\fP/[\fInamespace\-name\fP/]]\fIimage\-name\fP@\fIsnap\-name\fP \fIgroup\-spec\fP is [\fIpool\-name\fP/[\fInamespace\-name\fP/]]\fIgroup\-name\fP \fIgroup\-snap\-spec\fP is [\fIpool\-name\fP/[\fInamespace\-name\fP/]]\fIgroup\-name\fP@\fIsnap\-name\fP \fIjournal\-spec\fP is [\fIpool\-name\fP/[\fInamespace\-name\fP/]]\fIjournal\-name\fP .fi .sp .sp The default for \fIpool\-name\fP is \(dqrbd\(dq and \fInamespace\-name\fP is \(dq\(dq. If an image name contains a slash character (\(aq/\(aq), \fIpool\-name\fP is required. .sp The \fIjournal\-name\fP is \fIimage\-id\fP\&. .sp You may specify each name individually, using \-\-pool, \-\-namespace, \-\-image, and \-\-snap options, but this is discouraged in favor of the above spec syntax. .SH STRIPING .sp RBD images are striped over many objects, which are then stored by the Ceph distributed object store (RADOS). As a result, read and write requests for the image are distributed across many nodes in the cluster, generally preventing any single node from becoming a bottleneck when individual images get large or busy. .sp The striping is controlled by three parameters: .INDENT 0.0 .TP .B object\-size The size of objects we stripe over is a power of two. It will be rounded up the nearest power of two. The default object size is 4 MB, smallest is 4K and maximum is 32M. .UNINDENT .INDENT 0.0 .TP .B stripe_unit Each [\fIstripe_unit\fP] contiguous bytes are stored adjacently in the same object, before we move on to the next object. .UNINDENT .INDENT 0.0 .TP .B stripe_count After we write [\fIstripe_unit\fP] bytes to [\fIstripe_count\fP] objects, we loop back to the initial object and write another stripe, until the object reaches its maximum size. At that point, we move on to the next [\fIstripe_count\fP] objects. .UNINDENT .sp By default, [\fIstripe_unit\fP] is the same as the object size and [\fIstripe_count\fP] is 1. Specifying a different [\fIstripe_unit\fP] and/or [\fIstripe_count\fP] is often referred to as using \(dqfancy\(dq striping and requires format 2. .SH KERNEL RBD (KRBD) OPTIONS .sp Most of these options are useful mainly for debugging and benchmarking. The default values are set in the kernel and may therefore depend on the version of the running kernel. .sp Per client instance \fIrbd device map\fP options: .INDENT 0.0 .IP \(bu 2 fsid=aaaaaaaa\-bbbb\-cccc\-dddd\-eeeeeeeeeeee \- FSID that should be assumed by the client. .IP \(bu 2 ip=a.b.c.d[:p] \- IP and, optionally, port the client should use. .IP \(bu 2 share \- Enable sharing of client instances with other mappings (default). .IP \(bu 2 noshare \- Disable sharing of client instances with other mappings. .IP \(bu 2 crc \- Enable CRC32C checksumming for msgr1 on\-the\-wire protocol (default). For msgr2.1 protocol this option is ignored: full checksumming is always on in \(aqcrc\(aq mode and always off in \(aqsecure\(aq mode. .IP \(bu 2 nocrc \- Disable CRC32C checksumming for msgr1 on\-the\-wire protocol. Note that only payload checksumming is disabled, header checksumming is always on. For msgr2.1 protocol this option is ignored. .IP \(bu 2 cephx_require_signatures \- Require msgr1 message signing feature (since 3.19, default). This option is deprecated and will be removed in the future as the feature has been supported since the Bobtail release. .IP \(bu 2 nocephx_require_signatures \- Don\(aqt require msgr1 message signing feature (since 3.19). This option is deprecated and will be removed in the future. .IP \(bu 2 tcp_nodelay \- Disable Nagle\(aqs algorithm on client sockets (since 4.0, default). .IP \(bu 2 notcp_nodelay \- Enable Nagle\(aqs algorithm on client sockets (since 4.0). .IP \(bu 2 cephx_sign_messages \- Enable message signing for msgr1 on\-the\-wire protocol (since 4.4, default). For msgr2.1 protocol this option is ignored: message signing is built into \(aqsecure\(aq mode and not offered in \(aqcrc\(aq mode. .IP \(bu 2 nocephx_sign_messages \- Disable message signing for msgr1 on\-the\-wire protocol (since 4.4). For msgr2.1 protocol this option is ignored. .IP \(bu 2 mount_timeout=x \- A timeout on various steps in \fIrbd device map\fP and \fIrbd device unmap\fP sequences (default is 60 seconds). In particular, since 4.2 this can be used to ensure that \fIrbd device unmap\fP eventually times out when there is no network connection to a cluster. .IP \(bu 2 osdkeepalive=x \- OSD keepalive timeout (default is 5 seconds). .IP \(bu 2 osd_idle_ttl=x \- OSD idle TTL (default is 60 seconds). .UNINDENT .sp Per mapping (block device) \fIrbd device map\fP options: .INDENT 0.0 .IP \(bu 2 rw \- Map the image read\-write (default). Overridden by \-\-read\-only. .IP \(bu 2 ro \- Map the image read\-only. Equivalent to \-\-read\-only. .IP \(bu 2 queue_depth=x \- queue depth (since 4.2, default is 128 requests). .IP \(bu 2 lock_on_read \- Acquire exclusive lock on reads, in addition to writes and discards (since 4.9). .IP \(bu 2 exclusive \- Disable automatic exclusive lock transitions (since 4.12). Equivalent to \-\-exclusive. .IP \(bu 2 lock_timeout=x \- A timeout on waiting for the acquisition of exclusive lock (since 4.17, default is 0 seconds, meaning no timeout). .IP \(bu 2 notrim \- Turn off discard and write zeroes offload support to avoid deprovisioning a fully provisioned image (since 4.17). When enabled, discard requests will fail with \-EOPNOTSUPP, write zeroes requests will fall back to manually zeroing. .IP \(bu 2 abort_on_full \- Fail write requests with \-ENOSPC when the cluster is full or the data pool reaches its quota (since 5.0). The default behaviour is to block until the full condition is cleared. .IP \(bu 2 alloc_size \- Minimum allocation unit of the underlying OSD object store backend (since 5.1, default is 64K bytes). This is used to round off and drop discards that are too small. For bluestore, the recommended setting is bluestore_min_alloc_size (currently set to 4K for all types of drives, previously used to be set to 64K for hard disk drives and 16K for solid\-state drives). For filestore with filestore_punch_hole = false, the recommended setting is image object size (typically 4M). .IP \(bu 2 crush_location=x \- Specify the location of the client in terms of CRUSH hierarchy (since 5.8). This is a set of key\-value pairs separated from each other by \(aq|\(aq, with keys separated from values by \(aq:\(aq. Note that \(aq|\(aq may need to be quoted or escaped to avoid it being interpreted as a pipe by the shell. The key is the bucket type name (e.g. rack, datacenter or region with default bucket types) and the value is the bucket name. For example, to indicate that the client is local to rack \(dqmyrack\(dq, data center \(dqmydc\(dq and region \(dqmyregion\(dq: .INDENT 2.0 .INDENT 3.5 .sp .EX crush_location=rack:myrack|datacenter:mydc|region:myregion .EE .UNINDENT .UNINDENT .sp Each key\-value pair stands on its own: \(dqmyrack\(dq doesn\(aqt need to reside in \(dqmydc\(dq, which in turn doesn\(aqt need to reside in \(dqmyregion\(dq. The location is not a path to the root of the hierarchy but rather a set of nodes that are matched independently, owning to the fact that bucket names are unique within a CRUSH map. \(dqMultipath\(dq locations are supported, so it is possible to indicate locality for multiple parallel hierarchies: .INDENT 2.0 .INDENT 3.5 .sp .EX crush_location=rack:myrack1|rack:myrack2|datacenter:mydc .EE .UNINDENT .UNINDENT .IP \(bu 2 read_from_replica=no \- Disable replica reads, always pick the primary OSD (since 5.8, default). .IP \(bu 2 read_from_replica=balance \- When issued a read on a replicated pool, pick a random OSD for serving it (since 5.8). .sp This mode is safe for general use only since Octopus (i.e. after \(dqceph osd require\-osd\-release octopus\(dq). Otherwise it should be limited to read\-only workloads such as images mapped read\-only everywhere or snapshots. .IP \(bu 2 read_from_replica=localize \- When issued a read on a replicated pool, pick the most local OSD for serving it (since 5.8). The locality metric is calculated against the location of the client given with crush_location; a match with the lowest\-valued bucket type wins. For example, with default bucket types, an OSD in a matching rack is closer than an OSD in a matching data center, which in turn is closer than an OSD in a matching region. .sp This mode is safe for general use only since Octopus (i.e. after \(dqceph osd require\-osd\-release octopus\(dq). Otherwise it should be limited to read\-only workloads such as images mapped read\-only everywhere or snapshots. .IP \(bu 2 compression_hint=none \- Don\(aqt set compression hints (since 5.8, default). .IP \(bu 2 compression_hint=compressible \- Hint to the underlying OSD object store backend that the data is compressible, enabling compression in passive mode (since 5.8). .IP \(bu 2 compression_hint=incompressible \- Hint to the underlying OSD object store backend that the data is incompressible, disabling compression in aggressive mode (since 5.8). .IP \(bu 2 ms_mode=legacy \- Use msgr1 on\-the\-wire protocol (since 5.11, default). .IP \(bu 2 ms_mode=crc \- Use msgr2.1 on\-the\-wire protocol, select \(aqcrc\(aq mode, also referred to as plain mode (since 5.11). If the daemon denies \(aqcrc\(aq mode, fail the connection. .IP \(bu 2 ms_mode=secure \- Use msgr2.1 on\-the\-wire protocol, select \(aqsecure\(aq mode (since 5.11). \(aqsecure\(aq mode provides full in\-transit encryption ensuring both confidentiality and authenticity. If the daemon denies \(aqsecure\(aq mode, fail the connection. .IP \(bu 2 ms_mode=prefer\-crc \- Use msgr2.1 on\-the\-wire protocol, select \(aqcrc\(aq mode (since 5.11). If the daemon denies \(aqcrc\(aq mode in favor of \(aqsecure\(aq mode, agree to \(aqsecure\(aq mode. .IP \(bu 2 ms_mode=prefer\-secure \- Use msgr2.1 on\-the\-wire protocol, select \(aqsecure\(aq mode (since 5.11). If the daemon denies \(aqsecure\(aq mode in favor of \(aqcrc\(aq mode, agree to \(aqcrc\(aq mode. .IP \(bu 2 rxbounce \- Use a bounce buffer when receiving data (since 5.17). The default behaviour is to read directly into the destination buffer. A bounce buffer is needed if the destination buffer isn\(aqt guaranteed to be stable (i.e. remain unchanged while it is being read to). In particular this is the case for Windows where a system\-wide \(dqdummy\(dq (throwaway) page may be mapped into the destination buffer in order to generate a single large I/O. Otherwise, \(dqlibceph: ... bad crc/signature\(dq or \(dqlibceph: ... integrity error, bad crc\(dq errors and associated performance degradation are expected. .IP \(bu 2 udev \- Wait for udev device manager to finish executing all matching \(dqadd\(dq rules and release the device before exiting (default). This option is not passed to the kernel. .IP \(bu 2 noudev \- Don\(aqt wait for udev device manager. When enabled, the device may not be fully usable immediately on exit. .UNINDENT .sp \fIrbd device unmap\fP options: .INDENT 0.0 .IP \(bu 2 force \- Force the unmapping of a block device that is open (since 4.9). The driver will wait for running requests to complete and then unmap; requests sent to the driver after initiating the unmap will be failed. .IP \(bu 2 udev \- Wait for udev device manager to finish executing all matching \(dqremove\(dq rules and clean up after the device before exiting (default). This option is not passed to the kernel. .IP \(bu 2 noudev \- Don\(aqt wait for udev device manager. .UNINDENT .SH EXAMPLES .sp To create a new rbd image that is 100 GB: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd create mypool/myimage \-\-size 102400 .EE .UNINDENT .UNINDENT .sp To use a non\-default object size (8 MB): .INDENT 0.0 .INDENT 3.5 .sp .EX rbd create mypool/myimage \-\-size 102400 \-\-object\-size 8M .EE .UNINDENT .UNINDENT .sp To delete an rbd image (be careful!): .INDENT 0.0 .INDENT 3.5 .sp .EX rbd rm mypool/myimage .EE .UNINDENT .UNINDENT .sp To create a new snapshot: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd snap create mypool/myimage@mysnap .EE .UNINDENT .UNINDENT .sp To create a copy\-on\-write clone of a protected snapshot: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd clone mypool/myimage@mysnap otherpool/cloneimage .EE .UNINDENT .UNINDENT .sp To see which clones of a snapshot exist: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd children mypool/myimage@mysnap .EE .UNINDENT .UNINDENT .sp To delete a snapshot: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd snap rm mypool/myimage@mysnap .EE .UNINDENT .UNINDENT .sp To map an image via the kernel with cephx enabled: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd device map mypool/myimage \-\-id admin \-\-keyfile secretfile .EE .UNINDENT .UNINDENT .sp To map an image via the kernel with different cluster name other than default \fIceph\fP: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd device map mypool/myimage \-\-cluster cluster\-name .EE .UNINDENT .UNINDENT .sp To unmap an image: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd device unmap /dev/rbd0 .EE .UNINDENT .UNINDENT .sp To create an image and a clone from it: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd import \-\-image\-format 2 image mypool/parent rbd snap create mypool/parent@snap rbd snap protect mypool/parent@snap rbd clone mypool/parent@snap otherpool/child .EE .UNINDENT .UNINDENT .sp To create an image with a smaller stripe_unit (to better distribute small writes in some workloads): .INDENT 0.0 .INDENT 3.5 .sp .EX rbd create mypool/myimage \-\-size 102400 \-\-stripe\-unit 65536B \-\-stripe\-count 16 .EE .UNINDENT .UNINDENT .sp To change an image from one image format to another, export it and then import it as the desired image format: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd export mypool/myimage@snap /tmp/img rbd import \-\-image\-format 2 /tmp/img mypool/myimage2 .EE .UNINDENT .UNINDENT .sp To lock an image for exclusive use: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd lock add mypool/myimage mylockid .EE .UNINDENT .UNINDENT .sp To release a lock: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd lock remove mypool/myimage mylockid client.2485 .EE .UNINDENT .UNINDENT .sp To list images from trash: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd trash ls mypool .EE .UNINDENT .UNINDENT .sp To defer delete an image (use \fI\-\-expires\-at\fP to set expiration time, default is now): .INDENT 0.0 .INDENT 3.5 .sp .EX rbd trash mv mypool/myimage \-\-expires\-at \(dqtomorrow\(dq .EE .UNINDENT .UNINDENT .sp To delete an image from trash (be careful!): .INDENT 0.0 .INDENT 3.5 .sp .EX rbd trash rm mypool/myimage\-id .EE .UNINDENT .UNINDENT .sp To force delete an image from trash (be careful!): .INDENT 0.0 .INDENT 3.5 .sp .EX rbd trash rm mypool/myimage\-id \-\-force .EE .UNINDENT .UNINDENT .sp To restore an image from trash: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd trash restore mypool/myimage\-id .EE .UNINDENT .UNINDENT .sp To restore an image from trash and rename it: .INDENT 0.0 .INDENT 3.5 .sp .EX rbd trash restore mypool/myimage\-id \-\-image mynewimage .EE .UNINDENT .UNINDENT .SH AVAILABILITY .sp \fBrbd\fP is part of Ceph, a massively scalable, open\-source, distributed storage system. Please refer to the Ceph documentation at \fI\%https://docs.ceph.com\fP for more information. .SH SEE ALSO .sp \fI\%ceph\fP(8), \fI\%rados\fP(8) .SH COPYRIGHT 2010-2024, Inktank Storage, Inc. and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0) .\" Generated by docutils manpage writer. .