Ceph Nautilus : CephFS + NFS-Ganesha2021/08/26 |
Install NFS-Ganesha to mount Ceph File System with NFS protocol.
For example, Configure NFS Export setting to CephFS like here.
|
|
[1] | Install and Configure NFS-Ganesha on CephFS Node. |
root@node01:~#
root@node01:~# apt -y install nfs-ganesha-ceph 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; } 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 udev devtmpfs 2.0G 0 2.0G 0% /dev tmpfs tmpfs 394M 524K 393M 1% /run /dev/mapper/debian--vg-root ext4 28G 1.2G 26G 5% / tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock /dev/vda1 ext2 470M 48M 398M 11% /boot tmpfs tmpfs 394M 0 394M 0% /run/user/0 node01.srv.world:/vfs_ceph nfs4 75G 0 75G 0% /mnt |
Sponsored Link |