Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Creo anche il file /etc/ceph/cephfs.xyz.secret che contiene la sola chiave (quella che compare in /etc/ceph/ceph.client.xxx.keyring)Per montare il file system:mount -t ceph cephfs@



Es. per montare la top level directory terabithome in /shared:



Code Block
mount -t ceph terabithome@.cephfs=/

...

terabithome /shared -o mon_addr=10.70.42.10:6789/10.70.42.9:6789/10.70.42.8:6789,secretfile=/etc/ceph/cephfs.

...

terabithome.secret 



Con il senno di poi: questo esempio non e' il massimo perche' ho usato cephfs sia come nome del file system, sia come il nome dello user ceph (quello per cui ho creato il client).

In bold faccio riferimento allo username, in italic al nome del file system ceph

L'entry corrispondente in fstab e' questa:cephfs@



Code Block
terabithome@.cephfs=/terabithome     /

...

shared    ceph    mon_addr=10.70.42.10:6789/10.70.42.9:6789/10.70.42.8:6789,secretfile=/etc/ceph/cephfs.terabithome.secret,noatime,_netdev    0       0