Fix ceph-fuse command line option
This commit is contained in:
parent
e4c5b7e9ff
commit
d198e0b946
15
HowtoCeph.md
15
HowtoCeph.md
|
@ -436,10 +436,10 @@ $ ceph fs new $FS_NAME cephfs_metadata cephfs_data
|
|||
Il suffit de monter le CephFS, il sera utilisable :
|
||||
|
||||
~~~
|
||||
$ KEY=$(awk '/key/ { print $NF }' </etc/ceph/ceph.client.admin.keyring)
|
||||
$ mkdir /mnt/mycephfs
|
||||
$ mount.ceph $MONITOR_IP_ADDRESS:/ /mnt/mycephfs/ -o 'name=admin,secret=$KEY'
|
||||
$ cat <<EOF >/mnt/mycephfs/truth
|
||||
# KEY=$(awk '/key/ { print $NF }' </etc/ceph/ceph.client.admin.keyring)
|
||||
# mkdir /mnt/mycephfs
|
||||
# mount.ceph $MONITOR_IP_ADDRESS:/ /mnt/mycephfs/ -o 'name=admin,secret=$KEY'
|
||||
# cat <<EOF >/mnt/mycephfs/truth
|
||||
slackware is the best
|
||||
e ≃ 2.7181828
|
||||
EOF
|
||||
|
@ -448,19 +448,20 @@ EOF
|
|||
On peut aussi utiliser FUSE :
|
||||
|
||||
~~~
|
||||
ceph-fuse -m $MONITOR_IP_ADDRESS:6789 /mnt/mycephfs
|
||||
# ceph-fuse -m $MONITOR_IP_ADDRESS:6789 /mnt/mycephfs
|
||||
~~~
|
||||
|
||||
Il est également possible de limiter l'utilisation du FS à un répertoire pour un utilisateur Ceph :
|
||||
|
||||
~~~
|
||||
ceph fs authorize cephfs client.cephuser /dir0 rw /dir1 r
|
||||
$ CEPH_USERNAME=client.cephuser
|
||||
$ ceph fs authorize cephfs $CEPH_USERNAME /dir0 rw /dir1 r
|
||||
~~~
|
||||
|
||||
Cette commande va créer un utilisateur `client.cephuser`. Il aura accès au répertoire `/dir0` en lecture et en écriture et `/dir1` en lecture seule. On pourra monter le FS de cette manière :
|
||||
|
||||
~~~
|
||||
ceph-fuse -m $MONITOR_IP_ADDRESS:6789 /mnt/mycephfs/ -r /dir0
|
||||
$ ceph-fuse -n $CEPH_USERNAME -m $MONITOR_IP_ADDRESS:6789 /mnt/mycephfs/ -r /dir0
|
||||
~~~
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue