Bug 3630 - [Anolis 8.8][loongarch64]部署搭建NFS服务,在查看服务端是否正常加载/etc/exports配置文件时失败,报错rpc mount export: RPC: Unable to receive; errno = Connection refused
Summary: [Anolis 8.8][loongarch64]部署搭建NFS服务,在查看服务端是否正常加载/etc/exports配置文件时失败,报错rpc moun...
Status: VERIFIED FIXED
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: Others (show other bugs) Others
Version: 8.8
Hardware: loongarch Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: 葛立伟
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-05 16:19 UTC by liqianwen
Modified: 2023-01-17 19:14 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liqianwen loongson_group 2023-01-05 16:19:20 UTC
Description of problem:
NFS服务部署搭建的过程中,在查看服务端是否正常加载/etc/exports配置文件时失败,报错rpc mount export: RPC: Unable to receive; errno = Connection refused

Version-Release number of selected component (if applicable):
iso下载:
https://build.openanolis.cn/kojifiles/output/product/an-8-8-loongarch64-Beta/compose/BaseOS/loongarch64/iso/anolis-8-loongarch64-dvd1-20221210.0.iso
源配置:
http://build.openanolis.cn/kojifiles/output/product/an-8-8-loongarch64-Beta/compose/

How reproducible:100%


Steps to Reproduce:
1、安装rpc、nfs服务
yum install rpcbind nfs-utils -y
2、创建共享目录
mkdir /home/nfs/sharefile
chmod 666 /home/nfs/sharefile
3、修改nfs配置文件
vim /etc/exports
#在文件中添加如下内容,表示允许所有客户端挂载
/home/nfs/sharefile *(rw,sync,insecure,no_subtree_check,no_root_squash)
4、启动rpc、nfs服务
#先启动rpc服务,再启动nfs服务
systemctl start rpcbind.service 
systemctl status rpcbind.service
#启动nfs服务
systemctl start nfs-server.service
systemctl status nfs-server.service
5、查看服务端是否正常加载/etc/exports配置文件
showmount -e localhost

Actual results:
[root@bogon ~]# showmount -e localhost
rpc mount export: RPC: Unable to receive; errno = Connection refused

Expected results:
[root@bogon ~]# showmount -e localhost
Export list for localhost:
/home/nfs/sharefile *

Additional info:
相关软件包:
rpcbind-1.2.5-8.0.1.an8.loongarch64
nfs-utils-2.3.3-51.0.1.an8.loongarch64
Comment 1 葛立伟 alibaba_cloud_group 2023-01-13 22:10:13 UTC
https://gitee.com/anolis/cloud-kernel/pulls/631 请确认一下内核是否 打了上游这些补丁?
Comment 4 葛立伟 alibaba_cloud_group 2023-01-16 15:58:33 UTC
(In reply to 葛立伟 from comment #3)
> https://gitee.com/src-anolis-os/nfs-utils/pulls/16

暂时在龙芯上disable v4client
Comment 5 葛立伟 alibaba_cloud_group 2023-01-17 11:17:07 UTC
已从用户态的角度来修复
Comment 6 liqianwen loongson_group 2023-01-17 19:14:05 UTC
已验证,已修复
目前执行showmount -e localhost时,结果显示正常
[root@bogon home]# showmount -e localhost
Export list for localhost:
/home/nfs/sharefile *

相关软件包:
rpcbind-1.2.5-8.0.1.an8.loongarch64
nfs-utils-2.3.3-51.0.3.an8.loongarch64

iso下载:
https://mirrors.openanolis.cn/anolis/8.8/isos/RC2/loongarch64/anolis-8.8-loongarch64-dvd.iso
源配置:
http://build.openanolis.cn/kojifiles/output/product/an-8-8-loongarch64-RC/compose/