我安装了nfs-ganesha
(软件包版本nfs-ganesha-2.6.3-1.el7.x86_64
),但是当我尝试启用 NFS 服务时。我收到此错误:
root@gpfs01 ~]# mmces service enable nfs
gpfs01: : unknown locale
gpfs01: The NFS service can not be enabled because it is not installed.
gpfs01: The file /etc/ganesha/gpfs.ganesha.nfsd.conf was not found.
gpfs01: mmcesop: Command failed. Examine previous error messages to determine cause.
gpfs01: : unknown locale
mmces service: Command failed. Examine previous error messages to determine cause.
安装后nfs-ganesha
获得此状态:
[root@gpfs01 ~]# systemctl status nfs-ganesha
● nfs-ganesha.service - NFS-Ganesha file server
Loaded: loaded (/usr/lib/systemd/system/nfs-ganesha.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2020-02-20 12:34:48 IST; 3s ago
Docs: http://github.com/nfs-ganesha/nfs-ganesha/wiki
Process: 28844 ExecStop=/bin/dbus-send --system --dest=org.ganesha.nfsd --type=method_call /org/ganesha/nfsd/admin org.ganesha.nfsd.admin.shutdown (code=exited, status=0/SUCCESS)
Process: 30236 ExecStartPost=/bin/bash -c /usr/bin/sleep 2 && /bin/dbus-send --system --dest=org.ganesha.nfsd --type=method_call /org/ganesha/nfsd/admin org.ganesha.nfsd.admin.init_fds_limit (code=exited, status=0/SUCCESS)
Process: 30224 ExecStartPost=/bin/bash -c prlimit --pid $MAINPID --nofile=$NOFILE:$NOFILE (code=exited, status=0/SUCCESS)
Process: 30222 ExecStart=/bin/bash -c ${NUMACTL} ${NUMAOPTS} /usr/bin/ganesha.nfsd ${OPTIONS} ${EPOCH} (code=exited, status=0/SUCCESS)
Main PID: 30223 (ganesha.nfsd)
CGroup: /system.slice/nfs-ganesha.service
└─30223 /usr/bin/ganesha.nfsd -L /var/log/ganesha/ganesha.log -f /etc/ganesha/ganesha.co...
Feb 20 12:34:46 gpfs01 systemd[1]: Starting NFS-Ganesha file server...
Feb 20 12:34:48 gpfs01 systemd[1]: Started NFS-Ganesha file server.