OK. Thanks for your reply and help.
[root@master ~]# uname -r
4.19.91-26.an8.x86_64
The cluster can't access the public network. I should download the following
packages:
kernel-tools-libs-4.19.91-26.6.an8.x86_64
kernel-devel-4.19.91-26.6.an8.x86_64
kernel-modules-4.19.91-26.6.an8.x86_64
kernel-headers-4.19.91-26.6.an8.x86_64
kernel-4.19.91-26.6.an8.x86_64
kernel-tools-4.19.91-26.6.an8.x86_64
kernel-core-4.19.91-26.6.an8.x86_64
Best regards,
Yong Wu
---
Faculty of Chemistry
Northeast Normal University
Renmin Street No.5268
Changchun, Jilin 130024
P. R. China.
From: Ziyang Zhang <ZiyangZhang(a)linux.alibaba.com>
Date: 2022-11-11 18:21:23
To: Yong Wu <wuy651(a)nenu.edu.cn>
Cc: os(a)lists.openanolis.cn,storage <storage(a)lists.openanolis.cn>,Joseph Qi
<joseph.qi(a)linux.alibaba.com>
Subject: [anolis] Re: How to Setup NFS Server on Anolis OS 8.6?>On 2022/11/11 10:52,
Joseph Qi wrote:
Hi Ziyang,
Could you please help take a look?
Thanks,
Joseph
On 11/10/22 10:31 PM, Yong Wu wrote:
> 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
>
>
Looks like /proc/fs/nfsd/clients/ does not exist...
For Anolis 8.6, we have added support for /proc/fs/nfsd/clients/
on newer kernel. Please try to update the kernel by:
yum install -y yum-utils
yum-config-manager --enable Plus
yum update kernel
BTW, You can check
https://gitee.com/anolis/cloud-kernel/pulls/631
for more detail.
Regards,
Zhang
_______________________________________________
Anolis OS mailing list -- os(a)lists.openanolis.cn
To unsubscribe send an email to os-leave(a)lists.openanolis.cn