cephfs doesnt mount on centos 8

Lamarus

Well-Known Member
Sep 18, 2017
52
0
46
Hi ! Please help me understand what happen. I have pve 7 and ceph version 17.2.5. Created ceph fs and try to mount it on my centos 8 fresh installed server. But there is an error in cli:

Code:
mount -t ceph 10.20.0.120:/cephfs /mnt/cephfs -o name=user_test,secret=%ANY-SECRET%
mount: /mnt/cephfs: special device 10.20.0.120:/cephfs does not exist.

I tried some other commands from documentation, but nothing works.
 
the address (10.20.0.120) needs to be the public addressES of your monitors. Naturally, the guest must have logical access to that subnet- its not a foregone conclusion that your guest has access.

here is an example mount command:

mount.ceph fs_user@.mycephfs2=/ /mnt/mycephfs -o mon_addr=192.168.0.1/192.168.0.2/192.168.0.3

stolen directly from https://docs.ceph.com/en/latest/man/8/mount.ceph/, where you may find the answers to the the rest of your questions.
 
Last edited:
in the end, I needed to install the ceph-common package and create a file /etc/apt.conf + /etc/ceph/client.user.keyring, why the direct command does not work, I do not know

end command: mount -t ceph user_test@<fsid>.<fs_name>=/ /mnt/mycephfs

sources:
Code:
https://docs.ceph.com/en/quincy/install/get-packages/
https://docs.ceph.com/en/latest/cephfs/mount-using-kernel-driver/