batrick / ceph-linode

Launch Ceph using the Linode VPS provider
GNU General Public License v3.0
12 stars 10 forks source link

Cephfs mount success, I can create a directory, but I cannot create a file #61

Open selukov opened 4 years ago

selukov commented 4 years ago

I run the following command

>do_playbook cephadm.yml 
>do_playbook playbooks/cephfs-setup.yml
>do_playbook playbooks/cephfs-create.yml
>do_playbook playbooks/kernel-mount.yml 

but the mount test fails error-mount

I mount successfully via key [client.admin] in /etc/ceph/ceph.client.admin.keyring but I can't write to the file system although I can create a directory

error-admin

it has something to do with the pgs unknown that belongs cephfs_data Reinstalled the system several times, but as soon as run the script playbooks/cephfs-create.yml, appears pgs unknown

cephfs-data

My hosts ok

batrick commented 4 years ago

The issue is that you don't have enough OSDs. The first 4 OSDs are reserved for the metadata pool. See:

https://github.com/batrick/ceph-linode/blob/master/playbooks/cephfs-setup.yml#L71-L93

and

https://github.com/batrick/ceph-linode/blob/master/playbooks/cephfs-create.yml#L24-L28

selukov commented 4 years ago

Thank you so much, Batrick It works Linodworks Linodworks2

it didn't want to be mounted, I changed it https://github.com/batrick/ceph-linode/blob/master/playbooks/kernel-mount.yml#L26 change to mon_addrs: "{{ groups['mons'] | map('extract', hostvars, ['monitor_address']) | join(',') }}"