이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 14. Map a Block Device
Use rbd
to map an image name to a kernel module. You must specify the image name, the pool name and the user name. rbd
will load RBD kernel module on your behalf if it’s not already loaded.
To do so, execute the following:
sudo rbd map {image-name} --pool {pool-name} --id {user-name}
sudo rbd map {image-name} --pool {pool-name} --id {user-name}
For example:
sudo rbd map --pool rbd myimage --id admin
sudo rbd map --pool rbd myimage --id admin
If you use cephx
authentication, you must also specify a secret. It may come from a keyring or a file containing the secret.
To do so, execute the following:
sudo rbd map --pool rbd myimage --id admin --keyring /path/to/keyring sudo rbd map --pool rbd myimage --id admin --keyfile /path/to/file
sudo rbd map --pool rbd myimage --id admin --keyring /path/to/keyring
sudo rbd map --pool rbd myimage --id admin --keyfile /path/to/file