You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »


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)



Per montare il file system:



mount -t ceph cephfs@.cephfs=/ /mnt/mycephfs -o mon_addr=10.70.42.10:6789/10.70.42.9:6789/10.70.42.8:6789,secretfile=/etc/ceph/cephfs.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@.cephfs=/     /mnt/mycephfs    ceph    mon_addr=10.70.42.10:6789/10.70.42.9:6789/10.70.42.8:6789,secretfile=/etc/ceph/cephfs.secret,noatime,_netdev    0       0

  • No labels