network shares hang on restart / shutdown - consequence: hard shutdown required
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- linux, shell
- Lĩnh vực
- operating-systems
Hướng nghiên cứu
Bắt đầu bằng cách đọc /etc/runit/3 và script /etc/rc.pre-shutdown được báo cáo. Tái hiện quá trình tắt máy với các mount nfs, nfs4 hoặc cifs và theo dõi thứ tự tắt các dịch vụ cũng như xử lý mount. Được xem là hoàn tất khi các thư mục chia sẻ mạng được unmount hoặc remount ở chế độ chỉ đọc trước khi quá trình tắt máy hoàn tất mà không cần tắt nguồn bắt buộc.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- C
- Star
- 247
- Fork
- 67
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của void-linux/void-runit
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
void-linux/void-runit#141 · 1 reaction ·
-
elogind service starts after sound device initialization, causing permission failuresCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
void-linux/void-runit#135 · 10 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
void-linux/void-runit#127 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
void-linux/void-runit#125 · 4 bình luận ·
-
key file and source not passed to keyscriptCó thể đã có người làm @shaohme đã nhận 836 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
void-linux/void-runit#120 ·
Tất cả issue của void-linux/void-runit
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
FStarLang/karamel#784 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
DaveGamble/cJSON#1100 ·
-
UB: (int) cast of a user double outside int range in dispatch / vm_index_is_int / flat_index_atĐang mởarea:runtime-vm
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
InauguralSystems/EigenScript#1748 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
leanprover/lean4#15677 ·
Maintainer thường phản hồi trong vòng 1 ngày