Re: shutdown/reboot hangs when nfs has been mounted Reply #30 – 20 September 2021, 15:01:12 Quote from: ndowens – on 20 September 2021, 14:56:20Ok I've removed mount-netfs and changed mount-fstab to only mount all that doesn't have noauto or no_netdev set in mount options. HOPEFULLY this will not mount nfs on boot and no cause issueEdit: new scripts version is in gremlinsBut the NFS share was not mounted at boot. I had to mount it manually. Did you manage to read IMPORTANT INFORMATION above? Apparently there is something wrong with the way wifi is handled at shutdown. Anyhow, I'm waiting for the mirrors to sync and I'm going to try out your new revision from gremlins. Thank you!
Re: shutdown/reboot hangs when nfs has been mounted Reply #31 – 20 September 2021, 15:02:13 To be clear, if you manually umount the nfs partition before shutting down, does the system still hang? 1 Likes
Re: shutdown/reboot hangs when nfs has been mounted Reply #32 – 20 September 2021, 15:02:58 Quote from: Dudemanguy – on 20 September 2021, 15:02:13To be clear, if you manually umount the nfs partition before shutting down, does the system still hang?No. It doesn't hang then. I can even umount it without the -f option.
Re: shutdown/reboot hangs when nfs has been mounted Reply #33 – 20 September 2021, 15:04:40 Quote from: mattz7 – on 20 September 2021, 15:01:12But the NFS share was not mounted at boot. I had to mount it manually. Did you manage to read IMPORTANT INFORMATION above? Apparently there is something wrong with the way wifi is handled at shutdown. Anyhow, I'm waiting for the mirrors to sync and I'm going to try out your new revision from gremlins. Thank you! Hmm for testing, what happens if you stop wifi then shutdown? 1 Likes
Re: shutdown/reboot hangs when nfs has been mounted Reply #34 – 20 September 2021, 15:08:41 The system hangs when I poweroff after I do Code: [Select]66-stop iwd and don't umount the nfs share beforehand. Only now, I receive one message at shutdown, namely Code: [Select]*** WARNING ** The system is going down NOW
Re: shutdown/reboot hangs when nfs has been mounted Reply #35 – 20 September 2021, 15:10:59 Thanks for the all testing! So that does confirm it is the nfs umounting in suite66 causing the hanging. That must mean our patch was not correct. I personally believe this should be handled in the umount step during shutdown in suite66, so I will go look at the code again. 1 Likes
Re: shutdown/reboot hangs when nfs has been mounted Reply #36 – 20 September 2021, 15:11:56 Quote from: mattz7 – on 20 September 2021, 15:08:41The system hangs when I poweroff after I do Code: [Select]66-stop iwd and don't umount the nfs share beforehand. Only now, I receive one message at shutdown, namely Code: [Select]*** WARNING ** The system is going down NOWWell darn, I usually only get that message myself anyway. Going to look and think further and see if there is something else that can be done..
Re: shutdown/reboot hangs when nfs has been mounted Reply #37 – 20 September 2021, 15:13:14 Quote from: Dudemanguy – on 20 September 2021, 15:10:59Thanks for the all testing! So that does confirm it is the nfs umounting in suite66 causing the hanging. That must mean our patch was not correct. I personally believe this should be handled in the umount step during shutdown in suite66, so I will go look at the code again.Thank you Sir! I'm looking forward to you reviewing the code! IMPORTANT INFORMATIONSo, apparently modifying /etc/66/service/iwd and running 66-enable -t default -F iwd solves the issue:Code: [Select][main]@type = longrun@description = "iNet Wireless Daemon"@version = 0.0.1@user = ( root )[start]@execute = ( /usr/lib/iwd/iwd )[stop]@execute = ( umount /nfs/srv ) Last Edit: 20 September 2021, 15:55:14 by mattz7
Re: shutdown/reboot hangs when nfs has been mounted Reply #38 – 20 September 2021, 15:51:01 @ndowens: discovered a trivial error (darn C) in the patch so the nfs partition was not being skipped. It's been corrected. The 'suite66-0.6.1.3-2.3' package is in gremlins now so if you could give that a try @mattz7.
Re: shutdown/reboot hangs when nfs has been mounted Reply #39 – 20 September 2021, 15:53:50 Quote from: Dudemanguy – on 20 September 2021, 15:51:01@ndowens: discovered a trivial error (darn C) in the patch so the nfs partition was not being skipped. It's been corrected. The 'suite66-0.6.1.3-2.3' package is in gremlins now so if you could give that a try @mattz7.Sure I'll give it a try once the mirrors sync, but I also discovered that forcing iwd to umount the nfs share before it stops also solves the issue. Thank you!
Re: shutdown/reboot hangs when nfs has been mounted Reply #40 – 20 September 2021, 15:59:28 Quote from: mattz7 – on 20 September 2021, 15:53:50Sure I'll give it a try once the mirrors sync, but I also discovered that forcing iwd to umount the nfs share before it stops also solves the issue. Yeah that would also work. It'd be nice if umount would never hang however. If you could temporarily get rid of that [stop] part when testing, that would be great. Thanks for the testing so far!
Re: shutdown/reboot hangs when nfs has been mounted Reply #41 – 20 September 2021, 16:02:45 Quote from: mattz7 – on 20 September 2021, 15:53:50Sure I'll give it a try once the mirrors sync, but I also discovered that forcing iwd to umount the nfs share before it stops also solves the issue. Thank you! Of course, I did Code: [Select]pacman -S iwd-suite6666-enable -t default -F iwd BTW, do you know which mirror has the 2.3 version you pushed? EDIT: OK, got it. The last mirror from /etc/pacman.d/mirrorlist. I will test that in a minute! EDIT2: I had something that read "fstab failed" message, but the system shut down! THANK YOU! You da man! I will mark the thread as solved, but can you further help me troubleshoot the message about fstab? I will power on the computer and capture a picture of the message.EDIT3: DAMN! It does not work. Maybe the last time around the iwd service kicked in with the stop procedure. Last Edit: 20 September 2021, 16:10:13 by mattz7
Re: shutdown/reboot hangs when nfs has been mounted Reply #42 – 20 September 2021, 16:12:33 Quote from: mattz7 – on 20 September 2021, 16:02:45Of course, I did Code: [Select]pacman -S iwd-suite6666-enable -t default -F iwd BTW, do you know which mirror has the 2.3 version you pushed? EDIT: OK, got it. The last mirror from /etc/pacman.d/mirrorlist. I will test that in a minute! EDIT2: I had something that read "fstab failed" message, but the system shut down! THANK YOU! You da man! I will mark the thread as solved, but can you further help me troubleshoot the message about fstab? I will power on the computer and capture a picture of the message.EDIT3: DAMN! It does not work. Maybe the last time around the iwd service kicked in with the stop procedure. Well darn, OK. Came up with a solution to the idea you did to get it to work. SO this means, I will be editing network-related services such as iwd and others to umount in [stop]Edit: for the mount-fstab thing, only happens during shutdown? If so it could be ignored as it shouldn't cause an issue. The command it runs shouldn't cause an issueCode: [Select]mount -a -O noauto,no_netdev
Re: shutdown/reboot hangs when nfs has been mounted Reply #43 – 20 September 2021, 16:14:23 OK. I want to thank you @ndowens and @Dudemanguy for your time. I can't wait to test out iwd-suite66 once it's there! Hope y'all enjoying your day wherever you are. Greetings from Poland! EDIT:Quote from: ndowens – on 20 September 2021, 16:12:33Edit: for the mount-fstab thing, only happens during shutdown? If so it could be ignored as it shouldn't cause an issue. The command it runs shouldn't cause an issueCode: [Select]mount -a -O noauto,no_netdevI had this message the first time around when shutdown went well. I'll test it once again with the modified iwd script.
Re: shutdown/reboot hangs when nfs has been mounted Reply #44 – 20 September 2021, 16:18:37 Dang that's a bummer that did not work. Maybe there's more to nfs mounts than I expected. In the meantime, we'll try to adjust the stop/finish scripts which is worth it anyway. Could you post the output of cat /proc/mounts with your nfs mounted? I'm not sure what nfs mounts look like in that file (so we know what to grep for exactly).