]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: give pool name if default pool rbd is not created 24750/head
authorLiu Changcheng <changcheng.liu@intel.com>
Thu, 25 Oct 2018 03:48:17 +0000 (11:48 +0800)
committerLiu Changcheng <changcheng.liu@intel.com>
Thu, 25 Oct 2018 13:33:12 +0000 (21:33 +0800)
unless creating the default pool named to be "rbd",
it will fail without pointing the pool name when
using rbd command.

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
doc/start/quick-rbd.rst

index 837830b53a8a06f67d65d35672f1e1cab14365a4..b509683bd91b51ced3cd8ec2a8b73b6537e49356 100644 (file)
@@ -62,23 +62,23 @@ Configure a Block Device
 
 #. On the ``ceph-client`` node, create a block device image. :: 
 
-       rbd create foo --size 4096 --image-feature layering [-m {mon-IP}] [-k /path/to/ceph.client.admin.keyring]
+       rbd create foo --size 4096 --image-feature layering [-m {mon-IP}] [-k /path/to/ceph.client.admin.keyring] [-p {pool-name}]
 
 #. On the ``ceph-client`` node, map the image to a block device. :: 
 
-       sudo rbd map foo --name client.admin [-m {mon-IP}] [-k /path/to/ceph.client.admin.keyring]
+       sudo rbd map foo --name client.admin [-m {mon-IP}] [-k /path/to/ceph.client.admin.keyring] [-p {pool-name}]
        
 #. Use the block device by creating a file system on the ``ceph-client`` 
    node. :: 
 
-       sudo mkfs.ext4 -m0 /dev/rbd/rbd/foo
+       sudo mkfs.ext4 -m0 /dev/rbd/{pool-name}/foo
        
        This may take a few moments.
        
 #. Mount the file system on the ``ceph-client`` node. ::
 
        sudo mkdir /mnt/ceph-block-device
-       sudo mount /dev/rbd/rbd/foo /mnt/ceph-block-device
+       sudo mount /dev/rbd/{pool-name}/foo /mnt/ceph-block-device
        cd /mnt/ceph-block-device
 
 #. Optionally configure the block device to be automatically mapped and mounted