i followed the gide above,
mount error 13 = Permission denied
mount -t ceph ceph-mon1.storage:6789:/ /mnt/mycephfs -o name=cephx,secretfile=/etc/ceph/ceph.client.cephx.keyring
working only when setting only / in path when creating authorizationi followed the gide above,
and when i mount i get
Code:mount error 13 = Permission denied
i executed the command:
Code:mount -t ceph ceph-mon1.storage:6789:/ /mnt/mycephfs -o name=cephx,secretfile=/etc/ceph/ceph.client.cephx.keyring
mount -t ceph ceph-mon1.storage:6789,ceph-mon2.storage:6789,ceph-mon3.storage:6789:/ /mnt/mycephfs -o name=cephx,secretfile=/etc/ceph/ceph.client.cephx.keyring
ceph ceph-mon1.storage:6789,ceph-mon2.storage:6789,ceph-mon3.storage:6789:/ /mnt/ftd ceph name=cephx,secretfile=/etc/ceph/ceph.client.cephx.keyring,noatime 0 0
what i did:Did you create a new user for accessing the cephfs?
or do you use the default root what is created by Proxmox VE?
#on client, outside of proxmox (desktop)
sudo su
apt-get install ceph-common
mkdir /etc/ceph
ssh ceph-mon1.storage
ssh root@ceph-mon1.storage "ceph config generate-minimal-conf" | tee /etc/ceph/ceph.conf
chmod 644 /etc/ceph/ceph.conf
ssh root@ceph-mon1.storage " ceph fs authorize cephfs-data client.cephx / rw" | tee /etc/ceph/ceph.client.cephx.keyring
chmod 600 /etc/ceph/ceph.client.cephx.keyring
#edit ceph.client.cephx.keyring to contain only key
mkdir /mnt/mycephfs
#edit fstab
ceph-mon1.storage:6789,ceph-mon2.storage:6789,ceph-mon3.storage:6789:/data /mnt/ftd ceph name=cephx,secretfile=/etc/ceph/ceph.client.cephx.keyring,ro,_netdev,noatime 0 0
all keys are removedCan you please post theceph auth list(w/o key) of the user?
mds.pve-srv2
key:
caps: [mds] allow *
caps: [mon] allow profile mds
caps: [osd] allow rwx
mds.pve-srv3
key:
caps: [mds] allow *
caps: [mon] allow profile mds
caps: [osd] allow rwx
mds.pve-srv4
key:
caps: [mds] allow *
caps: [mon] allow profile mds
caps: [osd] allow rwx
osd.0
key:
caps: [mgr] allow profile osd
caps: [mon] allow profile osd
caps: [osd] allow *
osd.1
key:
caps: [mgr] allow profile osd
caps: [mon] allow profile osd
caps: [osd] allow *
osd.10
key:
caps: [mgr] allow profile osd
caps: [mon] allow profile osd
caps: [osd] allow *
osd.11
key:
caps: [mgr] allow profile osd
caps: [mon] allow profile osd
caps: [osd] allow *
osd.2
key:
caps: [mgr] allow profile osd
caps: [mon] allow profile osd
caps: [osd] allow *
osd.3
key:
caps: [mgr] allow profile osd
caps: [mon] allow profile osd
caps: [osd] allow *
osd.4
key:
caps: [mgr] allow profile osd
caps: [mon] allow profile osd
caps: [osd] allow *
osd.5
key:
caps: [mgr] allow profile osd
caps: [mon] allow profile osd
caps: [osd] allow *
osd.6
key:
caps: [mgr] allow profile osd
caps: [mon] allow profile osd
caps: [osd] allow *
osd.7
key:
caps: [mgr] allow profile osd
caps: [mon] allow profile osd
caps: [osd] allow *
osd.8
key:
caps: [mgr] allow profile osd
caps: [mon] allow profile osd
caps: [osd] allow *
osd.9
key:
caps: [mgr] allow profile osd
caps: [mon] allow profile osd
caps: [osd] allow *
client.admin
key:
caps: [mds] allow *
caps: [mgr] allow *
caps: [mon] allow *
caps: [osd] allow *
client.bootstrap-mds
key:
caps: [mon] allow profile bootstrap-mds
client.bootstrap-mgr
key:
caps: [mon] allow profile bootstrap-mgr
client.bootstrap-osd
key:
caps: [mon] allow profile bootstrap-osd
client.bootstrap-rbd
key:
caps: [mon] allow profile bootstrap-rbd
client.bootstrap-rbd-mirror
key:
caps: [mon] allow profile bootstrap-rbd-mirror
client.bootstrap-rgw
key:
caps: [mon] allow profile bootstrap-rgw
client.cephx
key:
caps: [mds] allow rw
caps: [mon] allow r
caps: [osd] allow rw tag cephfs data=cephfs-data
mgr.pve-srv2
key:
caps: [mds] allow *
caps: [mon] allow profile mgr
caps: [osd] allow *
mgr.pve-srv3
key:
caps: [mds] allow *
caps: [mon] allow profile mgr
caps: [osd] allow *
mgr.pve-srv4
key:
caps: [mds] allow *
caps: [mon] allow profile mgr
caps: [osd] allow *
This seems to be not documented correctly. See the link for details.client.cephx key: caps: [mds] allow rw caps: [mon] allow r caps: [osd] allow rw tag cephfs data=cephfs-data
This seems to be not documented correctly. See the link for details.
https://lists.ceph.io/hyperkitty/list/ceph-users@ceph.io/thread/23FDDSYBCDVMYGCUTALACPFAJYITLOHJ/
ceph-mon1.storage:6789,ceph-mon2.storage:6789,ceph-mon3.storage:6789:/data /mnt/ftd ceph name=cephx,secretfile=/etc/ceph/ceph.client.cephx.keyring,ro,_netdev,noatime 0 0
-rwxr-xr-x 1 user2_ldap domain^users 219873796 Jan 1 18:20 /mnt/ftd/data/file.bin
i can access from lcx inside proxmox with user user2_ldap,This has more to do with the permissions set on the directories and files, then the ceph auth.
We use essential cookies to make this site work, and optional cookies to enhance your experience.