]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbdtool: add man page
authorSage Weil <sage@newdream.net>
Wed, 7 Apr 2010 22:29:18 +0000 (15:29 -0700)
committerSage Weil <sage@newdream.net>
Wed, 7 Apr 2010 22:29:18 +0000 (15:29 -0700)
man/Makefile.am
man/rbdtool.8 [new file with mode: 0644]

index 307f4efcffcaefb2be86791959f239d28b5534f9..30078f7571d0b569c00765fc62129ff13f531af8 100644 (file)
@@ -18,4 +18,5 @@ dist_man_MANS = \
        radosgw.8 \
        radosgw_admin.8 \
        cauthtool.8 \
-       rados.8
+       rados.8 \
+       rbdtool.8
diff --git a/man/rbdtool.8 b/man/rbdtool.8
new file mode 100644 (file)
index 0000000..f64b6af
--- /dev/null
@@ -0,0 +1,55 @@
+.TH RBDTOOL 8
+.SH NAME
+rbdtool \- manage rados block device (RBD) images
+.SH SYNOPSIS
+.B rbdtool
+[ \fB\-m\fI monaddr\fR ]
+[ \fB\-p\fP | \fB\-\-pool\fI pool\fR ]
+[ \fB\-\-create\fI imgname\fR [ \fB\-s\fI sizeinmb\fR ] ]
+[ \fB\-\-delete\fI imgname\fR ]
+
+.SH DESCRIPTION
+.B rbdtool
+is a utility for manipulating rados block device (RBD) images, used by the Linux
+'rbd' block device 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
+.TP
+\fB\-p\fI pool\fR, \fB\-\-pool \fIpool\fR
+Interact with the given \fIpool\fP.  Required by most commands.
+.TP
+\fB\-\-create \fIimgname\fP
+will create a new rbd image file.  You must also specify the size via \fB\-\-size\fR.
+.TP
+\fB\-\-size \fIsize_in_mb\fP
+specifies the size (in megabytes) of the new rbd image.
+.TP
+\fB\-\-order \fIbits\fP
+specifies the object size expressed as a number of bits, such that the object size is 1 << \fIorder\fR. The default is 22 (4 MB).
+.TP
+\fB\-c\fI ceph.conf\fR, \fB\-\-conf=\fIceph.conf\fR
+Use \fIceph.conf\fP configuration file instead of the default \fI/etc/ceph/ceph.conf\fP
+to determine monitor addresses during startup.
+.TP
+\fB\-m\fI monaddress[:port]\fR
+Connect to specified monitor (instead of looking through \fIceph.conf\fR).
+.SH EXAMPLES
+To create a new rbd image that is 100 GB:
+.IP
+rbdtool -p mypool --create myimage --size 100000
+.PP
+To use a non-default object size (8 MB):
+.IP
+rbdtool -p mypool --create myimage --size 100000 --order 23
+.PP
+To delete an rbd image (be careful!):
+.IP
+rbdtool -p mypool --delete myimage
+.PP
+.SH AVAILABILITY
+.B rbdtool
+is part of the Ceph distributed file system.  Please refer to the Ceph wiki at
+http://ceph.newdream.net/wiki for more information.
+.SH SEE ALSO
+.BR ceph (8), rados (8)