<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Wed May 22, 2013 6:57 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Wed May 22, 2013 6:57 am</pubDate>
  <lastBuildDate>Wed May 22, 2013 6:57 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: Problem with shutdown with mounted NFS shares</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110261#110261</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=6923'&gt;paulm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jan 31, 2013 11:21 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;nelz wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;It's wicd, and it does leave the connection up until the daemon shuts down.&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;img src=&quot;images/smiles/icon_redface.gif&quot; alt=&quot;Embarassed&quot; border=&quot;0&quot; /&gt; When I previewed my message I noticed I'd got a bit dyslectic spelling one instance of wicd. So I corrected the wrong one.....&lt;br /&gt;
&lt;br /&gt;
Looks promising though. I've not had time to test it properly yet, but a couple of quick tries with wicd instead of NetworkManager have resulted in a clean shutdown.&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt; Must admit, I prefer wicd anyway. A few months ago I had all sorts of problems losing connection to my T-Mobile pointer, all solved by dumping NetworkManager and putting wicd in its place (on SalineOS in that instance).&lt;br /&gt;
&lt;br /&gt;
Paul.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110261#110261</comments>
                                        <author>paulm</author>
                                        <pubDate>Thu Jan 31, 2013 11:21 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110261#110261</guid>
                                      </item>
                                      <item>
                                        <title>Re: Problem with shutdown with mounted NFS shares</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110227#110227</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jan 29, 2013 11:49 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      It's wicd, and it does leave the connection up until the daemon shuts down.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110227#110227</comments>
                                        <author>nelz</author>
                                        <pubDate>Tue Jan 29, 2013 11:49 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110227#110227</guid>
                                      </item>
                                      <item>
                                        <title>Re: Problem with shutdown with mounted NFS shares</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110225#110225</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=6923'&gt;paulm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Jan 29, 2013 11:04 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;nelz wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;This can happen if the network connection is dropped before the shares are unmounted. Unmounting a dead NFS share can hang forever. What is handling your network? If it is NetworkManager, you may be dropping the connection when you exit the desktop.&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks for the suggestion, Nelz. Could well be the cause - I am currently using NetworkManager. I'm not all that fond of it and had been thinking of removing it and replacing it with Wcid. From memory, I think that Wcid leaves the connection active when the desktop is closed. Otherwise I can try manually and see if that makes a difference.&lt;br /&gt;
&lt;br /&gt;
Paul.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110225#110225</comments>
                                        <author>paulm</author>
                                        <pubDate>Tue Jan 29, 2013 11:04 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110225#110225</guid>
                                      </item>
                                      <item>
                                        <title>Re: Problem with shutdown with mounted NFS shares</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110221#110221</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Jan 28, 2013 11:36 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      This can happen if the network connection is dropped before the shares are unmounted. Unmounting a dead NFS share can hang forever. What is handling your network? If it is NetworkManager, you may be dropping the connection when you exit the desktop.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110221#110221</comments>
                                        <author>nelz</author>
                                        <pubDate>Mon Jan 28, 2013 11:36 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110221#110221</guid>
                                      </item>
                                      <item>
                                        <title>Problem with shutdown with mounted NFS shares</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=110220#110220</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=6923'&gt;paulm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Jan 28, 2013 10:14 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I have two devices on my network that provide NFS shares. One is an Icy Box NAS4402-B (running a current version of OpenWrt), the other a home-brew sever running SMS. Both provide NFS4 mounts.&lt;br /&gt;
&lt;br /&gt;
I've got multiple Linux distros installed on my laptop. I mainly use Arch, but have both SalineOS and Salix available as well.&lt;br /&gt;
&lt;br /&gt;
When running Arch, I must unmount the NFS shares before shutting the laptop down. If I fail to do so (happens quite often, since I tend to forget that they're mounted), the laptop will not shut down, it simply hangs at the start of the shutdown. Sometimes I can break out of the hang using CTRL-C, but more often than not, I have to use the power switch.&lt;br /&gt;
&lt;br /&gt;
I suspect that I've not got something correctly set up in systemd (which is now default init for Arch), but I'm having trouble confirming it. What makes me suspicious is if I manually unmount the shares before attempting to shutdown there is no problem. I tried adding the unmount commands to /etc/rc.local.shutdown, but that hasn't helped. It looks as if the hang occurs before rc.local.shutdown is executed, since I get errors from the commands if the shares are not mounted when I shut down, but don't see any sign of the system getting that far if the shares are mounted.&lt;br /&gt;
&lt;br /&gt;
I've tried changing the export commands on both NFS severs, but haven't seen any change. I could try 'soft' mount, but I'm wary of the potential data corruption.&lt;br /&gt;
&lt;br /&gt;
Does anyone have any idea how I could go about tracking down what is holding the shares open and preventing the shutdown, or does anyone know enough about systemd to know what should be used setting it up for NFS? &lt;br /&gt;
&lt;br /&gt;
I've tried asking questions in the Arch forum and mailing lists, but so far have only got a couple of people reporting similar problems, no suggested solutions..... I should also note that the problem only occurs under Arch - both SalineOS and Salix will shutdown cleanly without manually unmounting the NFS shares prior to shutting the system down.&lt;br /&gt;
&lt;br /&gt;
Paul.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paul.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=110220#110220</comments>
                                        <author>paulm</author>
                                        <pubDate>Mon Jan 28, 2013 10:14 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=110220#110220</guid>
                                      </item></channel></rss>