Ceph Pacific : CephFS + NFS-Ganesha2023/06/19 |
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 1.9G 0 1.9G 0% /dev tmpfs tmpfs 392M 588K 391M 1% /run /dev/mapper/debian--vg-root ext4 28G 1.4G 26G 6% / tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock /dev/vda1 ext2 455M 58M 373M 14% /boot tmpfs tmpfs 392M 0 392M 0% /run/user/0 node01.srv.world:/vfs_ceph nfs4 152G 0 152G 0% /mnt |
Sponsored Link |