Using Proxmox as storage server using NFS

nitaish

Well-Known Member
Feb 1, 2014
53
4
48
Mumbai
www.techknowlogy.in
I have setup a test 3-nodes cluster of Proxmox with Ceph storage. I have setup CephFS which I want to mount as NFS so that I can use it as storage server. Can anyone guide me on how to do this?
 
You can mount CephFS as a regular unix directory mount and then export that via NFS. However, CephFS already supports network mounts, so why even use NFS at all?

E.g. you can do the following with any remote server (you only need ceph-common, no server or cluster packages/config necessary):

Code:
# ceph1 = PVE Ceph server and CephFS MDS
# client1 = External client (in the same network)

client1# ssh root@ceph1 'ceph-authtool -p /etc/ceph/ceph.client.admin.keyring' > /somewhere/ceph.key
client1# chmod 0600 /somewhere/ceph.key
client1# mount -t ceph ceph1:6789:/ /mnt -o name=admin,secretfile=/somewhere/ceph.key

Note however, that using Ceph outside of what is included in PVE is not supported by us.