Skip to content
Snippets Groups Projects
Commit 31058f9d authored by Antonio Falabella's avatar Antonio Falabella
Browse files

rbd

parent ca5d16a5
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
* [Manual maintenance](manual_maintenance.md) * [Manual maintenance](manual_maintenance.md)
* [FS](FS.md) * [FS](FS.md)
* [FS Quotas](cephfs_quotas.md) * [FS Quotas](cephfs_quotas.md)
* [rbd](rbd.md)
* [MDS Events](mds_logging.md) * [MDS Events](mds_logging.md)
* [FS tests](fs_tests.md) * [FS tests](fs_tests.md)
* [Prometheus Monitoring](prometheus_monitoring.md) * [Prometheus Monitoring](prometheus_monitoring.md)
......
rbd.md 0 → 100644
# Ceph RBD
The main configuration is [here](https://docs.ceph.com/en/latest/rbd/index.html).
To use the block device service you need to create an rbd pool
```
ceph osd pool create <pool name> <pg num> <pgp num>
rbd pool init <pool name>
```
Create a key
```
ceph auth get-or-create <some string>.<for the key> mon 'profile rbd' osd 'profile rbd' -o <filename>
```
On the client create a conf file in /etc/ceph/
ceph.conf
```
[global]
mon_host = <ip 1>,<ip 2>,....
[client.kubernetes]
key = AQA97vVfdQXVEBAAm3f3QR6gq2LZXXXXXXXXXX==
```
Create an image
```
#Remember that the size is in Megabytes
rbd -n client.<key> create <pool>/<image> -s $((10*1024*1024)) --image-format 2 --image-feature layering
```
Verify
```
rbd -n client.<key> list <pool>
```
Map
```
rbd -n client.<key> map <pool>/<image>
/dev/rbd0
```
Create the filesystem
mkfs.ext4 /dev/rbd0
Some commands [here].(https://docs.ceph.com/en/latest/rbd/rados-rbd-cmds/)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment