POSIX, GlusterFS, Ceph 등에서 제공하는 파일시스템을 지원하는 NFS 서버
systemctl stop nfs-server
systemctl disable nfs-server --now
[addon]
name=addon
baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/addons/x86_64/
gpgcheck=0
enabled=1
module_hotfixes=true
[baseos]
name=baseos
baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64/
gpgcheck=0
enabled=1
module_hotfixes=true
[appstream]
name=appstream
baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/
gpgcheck=0
enabled=1
module_hotfixes=true
yum install glusterfs-9.4 glusterfs-ganesha glusterfs-cli glusterfs-geo-replication glusterfs-server glusterfs-fuse attr
# gluster volume get $VOLUME_NAME nfs.disable
gluster volume get volume01 nfs.disable
Option Value
------ -----
nfs.disable on
# gluster volume set $VOLUME_NAME nfs.disable on
gluster volume set volume01 nfs.disable on
volume set: success
# original config file backup
mv /etc/ganesha/ganesha.conf /etc/ganesha/ganesha.conf.original
# new config file create
touch /etc/ganesha/ganesha.conf
NFS_CORE_PARAM {
# possible to mount with NFSv3 to NFSv4 Pseudo path
mount_path_pseudo = true;
# NFS protocol
Protocols = 3,4;
}
EXPORT_DEFAULTS {
# default access mode
Access_Type = RW;
}
LOG {
# default log level
Default_Log_Level = WARN;
}
%include "/etc/ganesha/gluster.conf"
# nfs-server의 /etc/export 설정
EXPORT {
# uniq ID
Export_Id = 101;
# mount path of Gluster Volume
Path = "/volume01";
FSAL {
name = "GLUSTER";
# hostname or IP address of this Node
hostname="gluster01";
# Gluster volume name
volume="volume01";
}
# 클라이언트의 root사용자가 서버에서도 root 권한을 가지도록 한다.
Squash="No_root_squash";
# 클라이언트가 이 경로로 마운트 할 때 실제 경로와 매핑된다
Pseudo="/volume01";
# allowed security options
SecType = "sys";
}
systemctl enable nfs-ganesha --now