[arch-general] Network Shutdown Prior to umount on cifs mounts hangs shutdown
Listmates, I am experiencing a hang on shutdown with Arch every time I don't manually unmount any samba/cifs shares before shutting down. This is due to the shutdown sequence killing my network connection before unmounting the samba shares. This basicly leaves all samba shares mounted and [Busy] which frustrates the unmount filesystems call late in the shutdown sequence. Is there any way to move the network shutdown until after samba shares are unmounted in the shutdown sequence. Or conversely, move or add a samba/cifs shares unmount to the sequence at a time before the network shuts down? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
David C. Rankin, J.D.,P.E. wrote:
Listmates,
I am experiencing a hang on shutdown with Arch every time I don't manually unmount any samba/cifs shares before shutting down. This is due to the shutdown sequence killing my network connection before unmounting the samba shares. This basicly leaves all samba shares mounted and [Busy] which frustrates the unmount filesystems call late in the shutdown sequence.
Is there any way to move the network shutdown until after samba shares are unmounted in the shutdown sequence. Or conversely, move or add a samba/cifs shares unmount to the sequence at a time before the network shuts down?
add netfs to daemon list. -- Ionut
On Friday 22 May 2009 12:42:18 Biru Ionut wrote:
Is there any way to move the network shutdown until after samba shares are unmounted in the shutdown sequence. Or conversely, move or add a samba/cifs shares unmount to the sequence at a time before the network shuts down?
add netfs to daemon list.
I have netfs in my daemons list and experience similar hangout with a nfs mount.I start it in background but I doubt that should matter. -- Shridhar
Shridhar Daithankar schrieb:
On Friday 22 May 2009 12:42:18 Biru Ionut wrote:
Is there any way to move the network shutdown until after samba shares are unmounted in the shutdown sequence. Or conversely, move or add a samba/cifs shares unmount to the sequence at a time before the network shuts down? add netfs to daemon list.
I have netfs in my daemons list and experience similar hangout with a nfs mount.I start it in background but I doubt that should matter.
It depends on the order. netfs should be in the DAEMONS list after network (or net-profiles or whatever you use to connect), so that it will be shut down before network. You have to see "Unmounting Network Filesystems" before your network is shut down (backgrounding is ignored on shutdown). If you see it and it still hangs, then we may have a bug. See /etc/rc.d/netfs for further reference.
Yeah, I think that the order in which things shut down is the reverse of the order in which they start up, which makes sense, I think. -AT
On Friday 22 May 2009 14:28:34 Thomas Bächler wrote:
Shridhar Daithankar schrieb:
I have netfs in my daemons list and experience similar hangout with a nfs mount.I start it in background but I doubt that should matter.
It depends on the order. netfs should be in the DAEMONS list after network (or net-profiles or whatever you use to connect), so that it will be shut down before network.
Yes. It is in correct order. network followed by @netfs
You have to see "Unmounting Network Filesystems" before your network is shut down (backgrounding is ignored on shutdown). If you see it and it
Yes. I see that.
still hangs, then we may have a bug. See /etc/rc.d/netfs for further reference.
Rereading mails, I realized that "hang" is not the proper description. It just takes long time, a minute or more. Funny thing is there is only one nfs mount and it gets unmounted instantly if done by hand. Some day I will debug it. Not a pressing problem for the time being. -- Shridhar
On or about Friday 22 May 2009 at approximately 02:12:18 Biru Ionut composed:
David C. Rankin, J.D.,P.E. wrote:
Listmates,
I am experiencing a hang on shutdown with Arch every time I don't manually unmount any samba/cifs shares before shutting down. This is due to the shutdown sequence killing my network connection before unmounting the samba shares. This basicly leaves all samba shares mounted and [Busy] which frustrates the unmount filesystems call late in the shutdown sequence.
Is there any way to move the network shutdown until after samba shares are unmounted in the shutdown sequence. Or conversely, move or add a samba/cifs shares unmount to the sequence at a time before the network shuts down?
add netfs to daemon list.
Thanks Biru, will give it a go and report back. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
On Fri, 2009-05-22 at 03:58 -0500, David C. Rankin, J.D.,P.E. wrote:
On or about Friday 22 May 2009 at approximately 02:12:18 Biru Ionut composed:
David C. Rankin, J.D.,P.E. wrote:
Listmates,
I am experiencing a hang on shutdown with Arch every time I don't manually unmount any samba/cifs shares before shutting down. This is due to the shutdown sequence killing my network connection before unmounting the samba shares. This basicly leaves all samba shares mounted and [Busy] which frustrates the unmount filesystems call late in the shutdown sequence.
Is there any way to move the network shutdown until after samba shares are unmounted in the shutdown sequence. Or conversely, move or add a samba/cifs shares unmount to the sequence at a time before the network shuts down?
add netfs to daemon list.
Thanks Biru, will give it a go and report back.
I made a bug report about this problem: http://bugs.archlinux.org/task/13622
On or about Tuesday 26 May 2009 at approximately 13:10:04 Jordy van Wolferen composed:
On Fri, 2009-05-22 at 03:58 -0500, David C. Rankin, J.D.,P.E. wrote:
On or about Friday 22 May 2009 at approximately 02:12:18 Biru Ionut composed:
David C. Rankin, J.D.,P.E. wrote:
Listmates,
I am experiencing a hang on shutdown with Arch every time I don't manually unmount any samba/cifs shares before shutting down. This is due to the shutdown sequence killing my network connection before unmounting the samba shares. This basicly leaves all samba shares mounted and [Busy] which frustrates the unmount filesystems call late in the shutdown sequence.
Is there any way to move the network shutdown until after samba shares are unmounted in the shutdown sequence. Or conversely, move or add a samba/cifs shares unmount to the sequence at a time before the network shuts down?
add netfs to daemon list.
Thanks Biru, will give it a go and report back.
I made a bug report about this problem: http://bugs.archlinux.org/task/13622
Adding netfs to the daemon list worked like a charm. No more stuck cifs mounts... -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com
participants (6)
-
Andrei Thorp
-
Biru Ionut
-
David C. Rankin, J.D.,P.E.
-
Jordy van Wolferen
-
Shridhar Daithankar
-
Thomas Bächler