Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## On your admin node:
- * Create the Pool / RBD image for the client.
- $ sudo ceph osd pool create {client name}.{Description} {PG Count}
- $ sudo rbd create {RBD Image Name} --size {RBD Image Size in MB}
- * Create the keys for your phprados client:
- $ sudo ceph auth get-or-create client.{client name}.rbd osd 'allow rwx' mon 'allow r' -o /etc/ceph/ceph.client.{client name}.rbd.keyring
- - Note: You can grant access to only one pool for tighter security, example:
- $ sudo ceph auth get-or-create client.{client name}.rbd osd 'allow rwx pool={PoolName}' mon 'allow r' -o /etc/ceph/ceph.client.{client name}.rbd.keyring
- * Copy the /etc/ceph/ceph.conf and /etc/ceph/ceph.client.{client name}.rbd.keyring to your RBD Client's /etc/ceph folder
- ## On the Client:
- * Map the RBD
- $ sudo rbd -p {PoolName} map {RBD Image Name} --id={client name}.rbd
- * Verify the mapped RBD
- $ sudo rbd showmapped --id {client name}.rbd
- * Format / mount the mapped RBD. Example:
- $ sudo mkfs.ext4 -m0 /dev/rbd0
- $ sudo mount /dev/rbd0 /mnt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement