We're succesfully using Ceph on Proxmox, and have started to attempt to use CephFS.
We are able to mount, and create a file, but can then not write to the file, it shows the below error:
root@<redacted>:/mnt/ceph# echo "test" > /mnt/ceph/testfile
-bash: echo: write error: Operation not permitted
root@<redacted>:/mnt/ceph# ls
test4 test5 test6 test7 testfile
Ceph Version: 17.2.7
Proxmox Version: 8.1.3
Ceph config steps (with redactions):
# these are the steps i have documented for setting up cephfs mounts
# [ceph cluster] create cephfs
ceph fs volume create docker
# [ceph cluster] setup permissions keyring for authenticating the mount on the client
ceph auth rm client.dockermountuser
ceph auth get-or-create client.dockermountuser mds 'allow rw' osd 'allow class-read object_prefix rbd_children, allow rw tag cephfs pool=cephfs.docker.meta, allow rw tag cephfs pool=cephfs.docker.data' mon 'allow r' > /etc/ceph/ceph.client.dockermountuser.keyring
ceph auth get-key client.dockermountuser > /etc/ceph/ceph.client.dockermountuser.keyring
cat /etc/ceph/ceph.client.dockermountuser.keyring
# [client] configure the mount
mkdir -p /etc/ceph
echo "<redacted>" > /etc/ceph/ceph.client.dockermountuser.keyring
mount -a
add-apt-repository cloud-archive:yoga
apt install ceph-common -y
mkdir /mnt/ceph
# add to fstab
<redacted>:6789,<redacted>:6789,<redacted>:6789:/docker /mnt/ceph ceph name=dockermountuser,secretfile=/etc/ceph/ceph.client.dockermountuser.keyring,noatime,_netdev 0 0
# [client] refresh token and remount (testing auth permissions)
umount /mnt/ceph
echo "<redacted>" > /etc/ceph/ceph.client.dockermountuser.keyring
mount -a
Any ideas on why this could be occurring? We followed all the instructions and have searched across these forums and the Internet for potential solutions to no avail.
We are able to mount, and create a file, but can then not write to the file, it shows the below error:
root@<redacted>:/mnt/ceph# echo "test" > /mnt/ceph/testfile
-bash: echo: write error: Operation not permitted
root@<redacted>:/mnt/ceph# ls
test4 test5 test6 test7 testfile
Ceph Version: 17.2.7
Proxmox Version: 8.1.3
Ceph config steps (with redactions):
# these are the steps i have documented for setting up cephfs mounts
# [ceph cluster] create cephfs
ceph fs volume create docker
# [ceph cluster] setup permissions keyring for authenticating the mount on the client
ceph auth rm client.dockermountuser
ceph auth get-or-create client.dockermountuser mds 'allow rw' osd 'allow class-read object_prefix rbd_children, allow rw tag cephfs pool=cephfs.docker.meta, allow rw tag cephfs pool=cephfs.docker.data' mon 'allow r' > /etc/ceph/ceph.client.dockermountuser.keyring
ceph auth get-key client.dockermountuser > /etc/ceph/ceph.client.dockermountuser.keyring
cat /etc/ceph/ceph.client.dockermountuser.keyring
# [client] configure the mount
mkdir -p /etc/ceph
echo "<redacted>" > /etc/ceph/ceph.client.dockermountuser.keyring
mount -a
add-apt-repository cloud-archive:yoga
apt install ceph-common -y
mkdir /mnt/ceph
# add to fstab
<redacted>:6789,<redacted>:6789,<redacted>:6789:/docker /mnt/ceph ceph name=dockermountuser,secretfile=/etc/ceph/ceph.client.dockermountuser.keyring,noatime,_netdev 0 0
# [client] refresh token and remount (testing auth permissions)
umount /mnt/ceph
echo "<redacted>" > /etc/ceph/ceph.client.dockermountuser.keyring
mount -a
Any ideas on why this could be occurring? We followed all the instructions and have searched across these forums and the Internet for potential solutions to no avail.
Last edited: