Versions Compared

Key

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

...

Code Block
rpm -Uvh https://download.ceph.com/rpm-quincy/el9/noarch/ceph-release-1-1.el9.noarch.rpm 
yum clean all 
yum update 
yum install ceph 
shutdown -r now




Su un monitor:

Code Block
ceph config generate-minimal-conf | sudo tee ~/ceph.conf.min



e poi copio ceph.conf.min come /etc/ceph/ceph.conf nel client node 

...

Copio nel client node anche il file /etc/ceph/ceph.client.cephfsxyz.keyring prima generato (per la top directory che mi interessa prima generato. Vedi How to create a ceph file system. Questo file deve avere mode 0600 e appartenere a root.root)

Creo anche il file /etc/ceph/cephfs.xyz.secret che contiene la sola chiave (quella che compare in /etc/ceph/ceph.client.cephfsxxx.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.

...

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).

...

terabithome.secret 



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