Libro sobre Proxmox maestria
Chapter 7
Unlike the RBD storage, Ceph FS works with Proxmox with mount points. That is, Ceph FS needs to be locally mounted on the Proxmox nodes, and then attach the storage as a local directory to be used with Proxmox. We have to mount the Ceph FS on a directory under /mnt and then connect it to Proxmox through the local directory. Let's create a directory on Proxmox to mount Ceph FS using the following command:
# mkdir /mnt/cephfs01
Mounting Ceph FS
Install ceph-fuse using the following command on the Proxmox node:
Once we have created a directory and ceph-fuse has been installed, the only thing remaining is to run the following command from a Proxmox node to mount Ceph FS:
# ceph-fuse -k <ceph_keyring> -m <mon_host:6789> /mnt/<folder>
# ceph-fuse-k /etc/pve/priv/ceph/ceph.client.admin.keyring -m 192.168.10.11:6789 /mnt/cephfs01
Note that since Ceph FS is mounted locally on a Proxmox node, the storage will be only available from that particular Proxmox node. In order to access Ceph FS from all the nodes, we have to locally mount Ceph FS on all the Proxmox nodes in the cluster. When trying to mount Ceph FS on the other nodes after it has already been mounted and some data has been stored, you may see following error messages:
ceph-fuse [756903] starting ceph client fuse: mountpoint is not empty fuse: if you are sure this is safe, use the 'nonempty' mount option ceph-fuse [756903] fuse failed to initialize
2014-04-13 11:03:31.571116 7f8752aa0760 -1 fuse_mount (mountpoint-/mnt/cephfs01) failed.
This is not a bug and it only means that the Ceph FS is not empty. This is a usual case after mounting on a node for the first time. Simply mount it again using the following command format, which includes the -o nonempty option:
# ceph-fuse -k <ceph_keyring> -m <mon_host:6789> /mnt/<folder> -o nonempty