on client create the destination directory
mkdir -p /etc/pve/priv/copy the keyring on the debian client: (uses admin keyring !!)
scp <proxmox_ip>:/etc/pve/priv/ceph.client.admin.keyring /etc/pve/priv/.copy the configuration file :
scp <proxmox_ip>:/etc/pve/ceph.conf /etc/ceph/.test
ceph status#####
mount Cephfs on debian
1. on ceph:generate a keyfile for client foo on proxmox:
ceph auth get-or-create client.foo \
mds 'allow rw path=/ceph/mount/point' \
mon 'allow r' \
osd 'allow rw pool=cephfs_data' \
-o /etc/pve/priv/ceph.client.foo.keyring
check the client with :
ceph auth list
generate a minimal config :
ceph config generate-minimal-conf
and copy the output in /etc/ceph/ceph.conf on the client
2. on client:
aptitude install libcephfs2 ceph-common ceph-fuse
copy the keyring file from the client
mkdir -p /local/mount/point
add an entry in /etc/fstab like :
id=foo,conf=/etc/ceph/ceph.conf,client_mountpoint=/ceph/mount/point /local/mount/point fuse.ceph _netdev,defaults 0 0
_netdev here is important, otherwhise it does not boot
3. then mount it
sudo mount -a
Aucun commentaire:
Enregistrer un commentaire