Ubuntu 22.04
Sponsored Link

Ceph Quincy : CephFS + NFS-Ganesha2022/08/31

 
Install NFS-Ganesha to mount Ceph File System with NFS protocol.
[1] Install and Configure NFS-Ganesha on CephFS Node.
root@node01:~#
apt -y install nfs-ganesha-ceph
root@node01:~#
mv /etc/ganesha/ganesha.conf /etc/ganesha/ganesha.conf.org

root@node01:~#
vi /etc/ganesha/ganesha.conf
# create new

NFS_CORE_PARAM {
    # disable NLM
    Enable_NLM = false;
    # disable RQUOTA (not suported on CephFS)
    Enable_RQUOTA = false;
    # NFS protocol
    Protocols = 4;
}
EXPORT_DEFAULTS {
    # default access mode
    Access_Type = RW;
}
EXPORT {
    # unique ID
    Export_Id = 101;
    # mount path of CephFS
    Path = "/";
    FSAL {
        name = CEPH;
        # hostname or IP address of this Node
        hostname="10.0.0.51";
    }
    # setting for root Squash
    Squash="No_root_squash";
    # NFSv4 Pseudo path
    Pseudo="/vfs_ceph";
    # allowed security options
    SecType = "sys";
}
LOG {
    # default log level
    Default_Log_Level = WARN;
}

root@node01:~#
systemctl restart nfs-ganesha
[2] Verify NFS mounting on a Client Host.
root@client:~#
apt -y install nfs-common
# specify Pseudo path set on [Pseudo=***] in ganesha.conf

root@client:~#
mount -t nfs4 node01.srv.world:/vfs_ceph /mnt

root@client:~#
df -hT

Filesystem                        Type   Size  Used Avail Use% Mounted on
tmpfs                             tmpfs  393M  1.1M  392M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv ext4    27G  7.3G   19G  29% /
tmpfs                             tmpfs  2.0G     0  2.0G   0% /dev/shm
tmpfs                             tmpfs  5.0M     0  5.0M   0% /run/lock
/dev/vda2                         ext4   2.0G  245M  1.6G  14% /boot
tmpfs                             tmpfs  393M  4.0K  393M   1% /run/user/0
node01.srv.world:/vfs_ceph        nfs4   152G     0  152G   0% /mnt
Matched Content