登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
9
Star
1
Fork
25
src-openEuler
/
nfs-utils
代码
Issues
4
Pull Requests
2
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
nfs ipv6 功能异常,dd挂死
已完成
#I9HSXQ
缺陷
linruohan
创建于
2024-04-18 16:20
** nfs ipv6 功能异常,dd挂死 ** **【环境信息】** ```bash ]# cat /etc/openEuler-latest openeulerversion=openEuler-24.03-LTS compiletime=2024-04-14-13-30-15 gccversion=12.3.1-22.oe2403 kernelversion=6.6.0-19.0.0.20.oe2403 openjdkversion=1.8.0.402.b06-2.oe2403 [root@openEuler testEL_eu-elfcompress_t]# uname -a Linux localhost.localdomain 6.6.0-19.0.0.20.oe2403.aarch64 #1 SMP Mon Apr 15 17:15:37 CST 2024 aarch64 aarch64 aarch64 GNU/Linux ``` **【问题复现步骤】**,请描述具体的操作步骤 testEL_nfsipv6_SCEN.012 1.nfs server端创建共享目录/nfs mkdir -p /nfs 2.nfs client端创建挂载目录/client mkdir -p /client 3.测试挂载成功后修改exports文件 3.1 nfs server端设置共享规则 echo ""/nfs 客户端ipv6(rw,anonuid=0,anongid=0,all_squash)"" > /etc/exports exportfs -avr 3.2 nfs client端挂载,挂载完成后进行写操作 mount nfs的ipv6:/nfs client echo \""${CASE_NAME}\"" > /client/test_01 预期结果1 3.3 nfs server端清空/etc/exports echo > /etc/exports exportfs -avr 3.4 nfs client端查看挂载目录、写操作 ls -al /client echo \""${CASE_NAME}\"" >> /client/test_01 预期结果2 3.5 nfs server端还原/etc/exports echo ""/nfs ipv6(rw,anonuid=0,anongid=0,all_squash)"" > /etc/exports exportfs -avr 3.6 nfs client端删除写入文件,解除挂载 rm -rf /client/* umount /client 3.7还原/etc/exports至用例执行前状态 mv /etc/exports.bak /etc/exports exportfs -avr 4.大文件读写时删除对应exports项 4.1 nfs server端设置共享规则 echo ""/nfs *(rw,root_squash,all_squash,anonuid=0,anongid=0,sec=sys,sync,wdelay)"" > /etc/exports exportfs -avr 4.2 nfs client端 mount 服务端ipv6:/nfs client echo ""${case_name}"" > ${client_dir}/test_04 nfs client端dd 500M 文件操作 dd if=/dev/zero of=/client/${case_name}_04_01.io count=1 ibs=500M & dd_pid_04_01=$(echo $!) nfs server端增加一条正确共享记录 echo ""nfs1 *(rw,root_squash,all_squash,anonuid=0,anongid=0,sec=sys,sync,wdelay)"" >> /etc/exports exportfs -avr wait ${dd_pid_04_01}预期结果3 nfs client端dd 500M 文件操作 dd if=/dev/zero of=/client/${case_name}_04_02.io count=1 ibs=500M & dd_pid_04_02=$(echo $!) nfs server端增加一条不正确的共享记录 echo ""/nfs2 *(rw,root_squash,all_squash,anonuid=0,anongid=0,sec=sys,sync,wdelay)"" >> /etc/exports wait ${dd_pid_04_02}预期结果4 **【实际结果】**,请描述出问题的结果和影响 ``` + mount -o sec=sys '[fe80::5054:ff:fed2:dd76%enp3s0]:/nfs_testEL_nfsipv6_SCEN.012' /client_testEL_nfsipv6_SCEN.012 + '[' 0 -ne 0 ']' + echo testEL_nfsipv6_SCEN.012 + dd if=/dev/zero of=/client_testEL_nfsipv6_SCEN.012/testEL_nfsipv6_SCEN.012_02.io count=1 ibs=1G ++ echo 28495 + dd_pid_02=28495 + sleep 1 + ETS_SSHCMD 'echo > /etc/exports exportfs -avr' root 'Huawei12#$' 9.82.200.13 + local 'cmd=echo > /etc/exports exportfs -avr' + local user=root + local 'passwd=Huawei12#$' + local ip=9.82.200.13 + local port=22 + local ret + check_ping 9.82.200.13 + local ip=9.82.200.13 + local timeout=5 + local cmd=ping + [[ 9.82.200.13 =~ : ]] + ping 9.82.200.13 -c 1 PING 9.82.200.13 (9.82.200.13) 56(84) bytes of data. 64 bytes from 9.82.200.13: icmp_seq=1 ttl=64 time=0.244 ms --- 9.82.200.13 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.244/0.244/0.244/0.000 ms + sh /opt/ETS/tools/sshcmd.sh -c 'echo > /etc/exports exportfs -avr' -m 9.82.200.13 -u root -p 'Huawei12#$' -o 22 spawn ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o ConnectTimeout=300 root@9.82.200.13 -p 22 source /etc/profile &>/dev/null;echo > /etc/exports exportfs -avr Warning: Permanently added '9.82.200.13' (ED25519) to the list of known hosts. Authorized users only. All activities may be monitored and reported. root@9.82.200.13's password: exportfs: No file systems exported! + ret=0 + '[' 0 -ne 0 ']' + return 0 + wait 28495 ```  **【其他相关附件信息】**
** nfs ipv6 功能异常,dd挂死 ** **【环境信息】** ```bash ]# cat /etc/openEuler-latest openeulerversion=openEuler-24.03-LTS compiletime=2024-04-14-13-30-15 gccversion=12.3.1-22.oe2403 kernelversion=6.6.0-19.0.0.20.oe2403 openjdkversion=1.8.0.402.b06-2.oe2403 [root@openEuler testEL_eu-elfcompress_t]# uname -a Linux localhost.localdomain 6.6.0-19.0.0.20.oe2403.aarch64 #1 SMP Mon Apr 15 17:15:37 CST 2024 aarch64 aarch64 aarch64 GNU/Linux ``` **【问题复现步骤】**,请描述具体的操作步骤 testEL_nfsipv6_SCEN.012 1.nfs server端创建共享目录/nfs mkdir -p /nfs 2.nfs client端创建挂载目录/client mkdir -p /client 3.测试挂载成功后修改exports文件 3.1 nfs server端设置共享规则 echo ""/nfs 客户端ipv6(rw,anonuid=0,anongid=0,all_squash)"" > /etc/exports exportfs -avr 3.2 nfs client端挂载,挂载完成后进行写操作 mount nfs的ipv6:/nfs client echo \""${CASE_NAME}\"" > /client/test_01 预期结果1 3.3 nfs server端清空/etc/exports echo > /etc/exports exportfs -avr 3.4 nfs client端查看挂载目录、写操作 ls -al /client echo \""${CASE_NAME}\"" >> /client/test_01 预期结果2 3.5 nfs server端还原/etc/exports echo ""/nfs ipv6(rw,anonuid=0,anongid=0,all_squash)"" > /etc/exports exportfs -avr 3.6 nfs client端删除写入文件,解除挂载 rm -rf /client/* umount /client 3.7还原/etc/exports至用例执行前状态 mv /etc/exports.bak /etc/exports exportfs -avr 4.大文件读写时删除对应exports项 4.1 nfs server端设置共享规则 echo ""/nfs *(rw,root_squash,all_squash,anonuid=0,anongid=0,sec=sys,sync,wdelay)"" > /etc/exports exportfs -avr 4.2 nfs client端 mount 服务端ipv6:/nfs client echo ""${case_name}"" > ${client_dir}/test_04 nfs client端dd 500M 文件操作 dd if=/dev/zero of=/client/${case_name}_04_01.io count=1 ibs=500M & dd_pid_04_01=$(echo $!) nfs server端增加一条正确共享记录 echo ""nfs1 *(rw,root_squash,all_squash,anonuid=0,anongid=0,sec=sys,sync,wdelay)"" >> /etc/exports exportfs -avr wait ${dd_pid_04_01}预期结果3 nfs client端dd 500M 文件操作 dd if=/dev/zero of=/client/${case_name}_04_02.io count=1 ibs=500M & dd_pid_04_02=$(echo $!) nfs server端增加一条不正确的共享记录 echo ""/nfs2 *(rw,root_squash,all_squash,anonuid=0,anongid=0,sec=sys,sync,wdelay)"" >> /etc/exports wait ${dd_pid_04_02}预期结果4 **【实际结果】**,请描述出问题的结果和影响 ``` + mount -o sec=sys '[fe80::5054:ff:fed2:dd76%enp3s0]:/nfs_testEL_nfsipv6_SCEN.012' /client_testEL_nfsipv6_SCEN.012 + '[' 0 -ne 0 ']' + echo testEL_nfsipv6_SCEN.012 + dd if=/dev/zero of=/client_testEL_nfsipv6_SCEN.012/testEL_nfsipv6_SCEN.012_02.io count=1 ibs=1G ++ echo 28495 + dd_pid_02=28495 + sleep 1 + ETS_SSHCMD 'echo > /etc/exports exportfs -avr' root 'Huawei12#$' 9.82.200.13 + local 'cmd=echo > /etc/exports exportfs -avr' + local user=root + local 'passwd=Huawei12#$' + local ip=9.82.200.13 + local port=22 + local ret + check_ping 9.82.200.13 + local ip=9.82.200.13 + local timeout=5 + local cmd=ping + [[ 9.82.200.13 =~ : ]] + ping 9.82.200.13 -c 1 PING 9.82.200.13 (9.82.200.13) 56(84) bytes of data. 64 bytes from 9.82.200.13: icmp_seq=1 ttl=64 time=0.244 ms --- 9.82.200.13 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.244/0.244/0.244/0.000 ms + sh /opt/ETS/tools/sshcmd.sh -c 'echo > /etc/exports exportfs -avr' -m 9.82.200.13 -u root -p 'Huawei12#$' -o 22 spawn ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o ConnectTimeout=300 root@9.82.200.13 -p 22 source /etc/profile &>/dev/null;echo > /etc/exports exportfs -avr Warning: Permanently added '9.82.200.13' (ED25519) to the list of known hosts. Authorized users only. All activities may be monitored and reported. root@9.82.200.13's password: exportfs: No file systems exported! + ret=0 + '[' 0 -ne 0 ']' + return 0 + wait 28495 ```  **【其他相关附件信息】**
评论 (
3
)
登录
后才可以发表评论
状态
已完成
待办的
已挂起
修复中
已确认
已完成
已验收
已取消
负责人
未设置
swf504
swf504
负责人
协作者
+负责人
+协作者
标签
sig/Storage
block
未设置
项目
未立项任务
未立项任务
里程碑
openEuler-24.03-LTS-round-3
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (29)
标签 (24)
master
openEuler-25.09
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP4
openEuler-25.03
openEuler-24.03-LTS-SP2
openEuler-24.03-LTS-SP1
openEuler-22.03-LTS-SP3
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP3
openEuler-24.03-LTS
openEuler-22.03-LTS-SP1
openEuler-22.03-LTS-Next
openEuler-24.09
openEuler-22.03-LTS-SP2
openEuler-22.03-LTS
openEuler-23.03
openEuler-23.09
openEuler-20.03-LTS-SP3
openEuler-20.03-LTS-SP1
openEuler-22.09
openEuler-20.03-LTS-Next
openEuler-20.03-LTS-SP2
openEuler-20.03-LTS
openEuler-21.03
openEuler-21.09
openEuler-20.09
openEuler1.0
openEuler1.0-base
openEuler-25.09-release
openEuler-24.03-LTS-SP2-release
openEuler-25.03-release
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.09-20200929
openEuler-20.03-LTS-20200606
openEuler-20.03-LTS-tag
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/nfs-utils.git
git@gitee.com:src-openeuler/nfs-utils.git
src-openeuler
nfs-utils
nfs-utils
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册