Ceph Squid : CephFS + NFS-Ganesha2024/05/03 |
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 tmpfs tmpfs 392M 1.1M 391M 1% /run /dev/mapper/ubuntu--vg-ubuntu--lv ext4 28G 6.3G 20G 24% / 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 95M 1.7G 6% /boot tmpfs tmpfs 392M 12K 392M 1% /run/user/0 node01.srv.world:/vfs_ceph nfs4 152G 0 152G 0% /mnt |
Sponsored Link |