doc: update cephfs

This commit is contained in:
Ben Vincent 2024-06-23 15:52:54 +10:00
parent 53dfa0ca75
commit d5262b0ef5

View File

@ -17,6 +17,7 @@ Always refer back to the official documentation at https://docs.ceph.com/en/late
- set mds fast failover with standby reply
```
sudo ceph osd erasure-code-profile set ec_4_1 k=4 m=1
sudo ceph osd pool create media_data 128 erasure ec_4_1
sudo ceph osd pool create media_metadata 32 replicated_rule
@ -25,7 +26,7 @@ Always refer back to the official documentation at https://docs.ceph.com/en/late
sudo ceph fs new mediafs media_metadata media_data --force
sudo ceph fs set mediafs allow_standby_replay true
sudo ceph fs set mediafs max_mds 2
```
## creating authentication tokens
@ -38,7 +39,12 @@ Always refer back to the official documentation at https://docs.ceph.com/en/late
- read/write /common
- osd: read/write to cephfs_data pool
sudo ceph auth get-or-create client.media mon 'allow r' mds 'allow r path=/, allow rw path=/media, allow rw path=/common' osd 'allow rw pool=cephfs_data'
```
sudo ceph auth get-or-create client.media \
mon 'allow r' \
mds 'allow r path=/, allow rw path=/media, allow rw path=/common' \
osd 'allow rw pool=cephfs_data'
```
## list the authentication tokens and permissions
@ -48,4 +54,7 @@ Always refer back to the official documentation at https://docs.ceph.com/en/late
this will overwrite the current capabilities of a given client.user
sudo ceph auth caps client.media mon 'allow r' mds 'allow rw path=/' osd 'allow rw pool=media_data'
sudo ceph auth caps client.media \
mon 'allow r' \
mds 'allow rw path=/' \
osd 'allow rw pool=media_data'