network shares hang on restart / shutdown - consequence: hard shutdown required
まだ誰も着手していません。
評価
- 難易度
- 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
- スター
- 245
- フォーク
- 67
- 平均マージ
- 2日
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
void-linux/void-runit のほかの issue
-
難易度 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 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
void-linux/void-runit#120 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
void-linux/void-runit#119 · コメント 7 件 ·
void-linux/void-runit の issue をすべて見る
似ている issue
-
task
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
vsanthanam/JBird#429 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
bug documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
es-ude/OnDeviceTraining#459 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
bilelmoussaoui/gobject-linter#199 · コメント 1 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
bradcypert/plum#53 ·