How to Setup NFS Server on Anolis OS 8.6?
Hi all. I can successfully setup NFS server on RHEL/CentOS 8, but the same operation is
not successful on Anolis OS 8.6.
[root@master ~]# rpm -qa|egrep "nfs-utils|rpcbind"
rpcbind-1.2.5-8.0.1.an8.x86_64
nfs-utils-2.3.3-51.0.1.an8.x86_64
[root@master ~]# systemctl status nfs-server.service
● nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset:
disabled)
Drop-In: /run/systemd/generator/nfs-server.service.d
└─order-with-mounts.conf
Active: active (exited) since Thu 2022-11-10 21:38:04 CST; 44min ago
Process: 1216 ExecStart=/bin/sh -c if systemctl -q is-active gssproxy; then systemctl
reload gssproxy ; fi (code=exited, status=0/SUCCE>
Process: 1201 ExecStart=/usr/sbin/rpc.nfsd (code=exited, status=0/SUCCESS)
Process: 1191 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Main PID: 1216 (code=exited, status=0/SUCCESS)
Nov 10 21:38:04 master systemd[1]: Starting NFS server and services...
Nov 10 21:38:04 master systemd[1]: Started NFS server and services.
[root@master ~]# systemctl status nfs-utils.service
● nfs-utils.service - NFS server and client services
Loaded: loaded (/usr/lib/systemd/system/nfs-utils.service; static; vendor preset:
disabled)
Active: active (exited) since Thu 2022-11-10 21:44:56 CST; 38min ago
Process: 3494 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 3494 (code=exited, status=0/SUCCESS)
Nov 10 21:44:56 master systemd[1]: Starting NFS server and client services...
Nov 10 21:44:56 master systemd[1]: Started NFS server and client services.
[root@master ~]# systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset:
enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
[root@master ~]# getsebool
getsebool: SELinux is disabled
[root@master ~]# ifconfig ens224
ens224: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.1.1.1 netmask 255.255.0.0 broadcast 10.1.255.255
inet6 fe80::20c:29ff:febe:108b prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:be:10:8b txqueuelen 1000 (Ethernet)
RX packets 470 bytes 32638 (31.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 472 bytes 33040 (32.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@master ~]# cat /etc/exports
/opt 10.1.0.0/16(rw,insecure,no_root_squash,sync)
/home 10.1.0.0/16(rw,insecure,no_root_squash,sync)
[root@master ~]# rpcinfo |grep nfs
100003 3 tcp 0.0.0.0.8.1 nfs superuser
100003 4 tcp 0.0.0.0.8.1 nfs superuser
100227 3 tcp 0.0.0.0.8.1 nfs_acl superuser
100003 3 tcp6 ::.8.1 nfs superuser
100003 4 tcp6 ::.8.1 nfs superuser
100227 3 tcp6 ::.8.1 nfs_acl superuser
Get the following errors:
[root@master ~]# showmount -e master
rpc mount export: RPC: Unable to receive; errno = Connection refused
Can anyone give me some advice?
Best regards,
Yong Wu
---
Faculty of Chemistry
Northeast Normal University
Renmin Street No.5268
Changchun, Jilin 130024
P. R. China.