network shares hang on restart / shutdown - consequence: hard shutdown required
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- linux, shell
调研方向
首先阅读 /etc/runit/3 和报告中的 /etc/rc.pre-shutdown 脚本。使用 nfs、nfs4 或 cifs 挂载重现关机过程,并跟踪服务关闭与挂载处理的顺序。完成的标准是:在关机完成前卸载网络共享或将其以只读方式重新挂载,且不需要强制断电。
由索引模型根据 Issue 内容生成。
描述
Hi,
If I have mounted network shares (nfs, nfs4, cifs), these are unable to be unmounted / re-mounted as read during shutdown / restart, consequently the shutdown process hangs and I need to do a forced shutdown. The reason is that in /etc/runit/3 the network services are taken offline before before the drives are unmounted / re-mounted as read occurs.
I've created my own /etc/rc.pre-shutdown script (below) that is called by /etc/runit/3 before the services are closed that unmounts / re-mounts as read the network shares. This works.
Apologies if I've missed an obvious option / setting that renders my "fix" not needed, I'm just an enthusiastic Linux user, as opposed to developer.
Hope this is useful for someone.
Rob
echo " trying to unmount network shares..."
umount -a -r -t nfs,nfs4,cifs
if grep -qs -e 'nfs ' -e 'nfs4 ' -e 'cifs ' /proc/mounts; then
echo
echo "...... failed to unmount network some network shares ......"
rem_shares=$(grep -e 'nfs ' -e 'nfs4 ' -e 'cifs ' /proc/mounts)
if echo $rem_shares | grep -qs 'rw,'; then
echo "failed to mount read only as well"
echo "will attempt forced, lazy unmount"
echo "if this hangs then will need to hard shutdown..."
umount -a -f -l -t nfs,nfs4,cifs
elif echo $rem_shares | grep -qs 'ro,'; then
echo "shares were mounted read only instead."
echo "hopefully this is ok. If hangs...hard shutdown required"
else
echo "I should not be here..."
fi
echo
fi
- 主要语言
- C
- 星标
- 247
- 派生
- 67
- 平均合并
- 3 天 12 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
void-linux/void-runit 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 67/100
void-linux/void-runit#141 · 1 个 reaction ·
-
elogind service starts after sound device initialization, causing permission failures可能已有人在做 @eholzbach 于 21 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 45/100
void-linux/void-runit#135 · 10 条评论 ·
-
难度 3/5 1-2 天 新手友好度 25/100
void-linux/void-runit#127 ·
-
难度 4/5 3-5 天 新手友好度 25/100
void-linux/void-runit#125 · 4 条评论 ·
-
key file and source not passed to keyscript可能已有人在做 @shaohme 于 833 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
void-linux/void-runit#120 ·
查看 void-linux/void-runit 的全部 Issue
相似的 Issue
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
Add `pdfcpu` to the pantry可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 76/100
tmewett/BrogueCE#929 · 1 条评论 ·
维护者通常 1 天内回复
-
bug game: iwd2 system: GUI
难度 2/5 1-3 小时 新手友好度 72/100
-
category:port-update
难度 2/5 1-3 小时 新手友好度 69/100
维护者通常 2 天内回复