Skip to content

Commit

Permalink
doc: properly document 'rbd map' without touching sysfs
Browse files Browse the repository at this point in the history
Fixes: ceph#2670
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
Sage Weil committed Aug 17, 2012
1 parent b403db1 commit 4ce0a51
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions doc/rbd/rbd-ko.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ Use ``rbd`` to map an image name to a kernel object. You must specify the
image name, the pool name, and the client name. If you use ``cephx``
authentication, you must also specify a secret. ::

sudo rbd map {image-name} --pool {pool-name} --name {client-name} --secret {client-secret}
sudo rbd map {image-name} --pool {pool-name} --name {client-name}

For example::

sudo rbd map foo --pool rbd --name client.admin
sudo rbd map foo --pool rbd myimage --name client.admin

If you use ``cephx`` authentication, you must also specify a secret. ::
If you use ``cephx`` authentication, you must also specify a secret. It may come from a keyring, a file containing the secret, or be specified explicitly on the command line. ::

echo "10.20.30.40 name=admin,secret=/path/to/secret rbd foo" | sudo tee /sys/bus/rbd/add
sudo rbd map foo --pool rbd myimage --name client.foo --keyring /path/to/keyring
sudo rbd map foo --pool rbd myimage --name client.foo --keyfile /path/to/file

Map a Block Device with ``add``
-------------------------------
Expand Down

0 comments on commit 4ce0a51

Please sign in to comment.