Disabilito selinux e installo gli rpms di ceph:



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:

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.xyz.keyring 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.xxx.keyring)



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



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 



L'entry corrispondente in fstab e' questa:



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
  • No labels