[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-08-17 Thread Steve Langasek
** Summary changed:

- CIFS/SMBFS issue (was not resolved on #207441)
+ CIFS/SMBFS shares not unmounted before network is shut down

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-08-20 Thread Dylan Hunter
I don't think I have the problem on login, but I certainly do on
shutdown - i.e. everything freezes with 3 bars left on the Ubuntu
splash, then my whole screen goes white, and I have to force shutdown my
laptop, (by holding down the power key for >5 secs) every single time.

Just migrated up to Intrepid, and the problem's still here.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-09-23 Thread clickwir
Testing out Intrepid on my laptop here. I get this annoying pause every
time I shutdown.

[462.892018] CIFS VFS: Server not responding
[462.892047] CIFS VFS: no response for cmd 50 mid 9

I do have a samba share automatically mount on boot up with /etc/fstab
entry:

//192.168.1.2/Music /media/music_server smbfs
credentials=/home/clickwir/.smbpasswd,uid=clickwir,gid=clickwir 0 0

And the share works fine. But shutting down is painful.

Again, this is Kubuntu Intrepid from a recent install of Alpha 5 cd. All
updates applied as of this post.

[EMAIL PROTECTED]:~$ uname -a
Linux lappy 2.6.27-4-generic #1 SMP Mon Sep 22 04:40:15 UTC 2008 x86_64 
GNU/Linux

Anything I can do to help resolve this, I'm no expert but I'm willing to
do what I can to help.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-09 Thread Max-Ulrich Farber
This annoying bug is known for a very long time now. I wonder why
nothing has been done yet!

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-09 Thread Markus Golser
Same problem here

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-13 Thread H3g3m0n
Another 'me to' running on Intrepid.

Been a problem since at least hardy. Fix doesn't seem hard (Just a
change in the unmount order).

Possibly its also a upstart bug since its the init system?

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-22 Thread [EMAIL PROTECTED]
I am experiencing this too with Intrepid.  I use wireless connections
from a laptop.  Network Manager is dropping the network before the CIFS
shares are unmounted causing multiple timeouts trying to unmount the
during the shutdown process.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-24 Thread Thierry Carrez
I'm not sure dhcdbd is affected because stopping it doesn't seem to
bring down DHCP connections (at least not immediately).

So the solution to this bug could be to move S15wpa-ifupdown to S36wpa-
ifupdown in wpasupplicant.

Could the people affected by this bug confirm that running the following 
commands fixes the issue without bringing in more problems than it solves :
$ sudo mv /etc/rc0.d/S15wpa-ifupdown /etc/rc0.d/S36wpa-ifupdown
$ sudo mv /etc/rc6.d/S15wpa-ifupdown /etc/rc6.d/S36wpa-ifupdown
(please keep umountnfs.sh at S31, where it belongs)


** Changed in: dhcdbd (Ubuntu)
   Importance: Medium => Undecided
   Status: Confirmed => New

** Changed in: samba (Ubuntu)
   Importance: Undecided => Low

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-24 Thread clickwir
Maybe this helps (or complicates things).

I have a wired pc, desktop, no wireless at all same issue. Oh, and
that one is on Hardy.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-24 Thread [EMAIL PROTECTED]
I tested the commands, Thierry, and there was no difference.  I didn't
really hold out a lot of hope, though, because I don't run the WPA
supplicant.  Everything works perfectly when I umount the CIFS
filesystems before shutting down.  I also found that Suspend and
Hibernate modes work better too (as an aside).

Strange, umountnfs.sh (I double checked it for cifs) runs before
networking so of course one would have to think everything would be
okay.  Does the logging off of the Gnome session, ending the Network
Manager in the notification area, have something to do with it?  I
wonder what would happen if the networking was all static
startup/shudown entries and network manager was never run (or even
uninstalled).

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-27 Thread Thierry Carrez
Hm, so that might be related to user-level network configurations from 
NetworkManager being brought down at session logout (typically the NM wireless 
connection falls in that category).
It seems obvious this might not play well with network services (client or 
server) that expect network to be up very early (and very late). And that would 
not be as easy to fix as some think it is... as the "fix" would surely affect a 
feature that most people like.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-27 Thread [EMAIL PROTECTED]
confirming that "$ sudo mv /etc/rc6.d/S15wpa-ifupdown /etc/rc6.d/S36wpa-
ifupdown" doesn't fix it.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-29 Thread Jonathan Ernst
Do people who were experiencing this bug with a wired connexion still
have this issue in Intrepid fully up to date ? I had this issue on my
desktop computer but it seems fixed now ?

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-29 Thread [EMAIL PROTECTED]
I just tried wiring up my lappy, which is up to date with the
distribution sources, and I have the same issue using Network Manager as
I had with the wireless.  An interesting test would be to code the
activation of the wireless network connection into the local
startup/shutdown process and remove Network Manager to see what happens.
That wouldn't be a preferred solution, though, because the advantage to
wireless is the ability to switch hot spots on the fly with NM.  If I
get time this weekend I can give it a try -- work has got me pretty out
straight during the week (probably why they call it "work" and not
"play" -- though they are both 4 letter words ;-)

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-30 Thread [EMAIL PROTECTED]
still has the bug on fully updated intrepid (as at 29-Oct night); wired
connection.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-30 Thread Thierry Carrez
Yes, the whole network shutdown sequence needs to be revisited so as to work 
properly in the most common cases.
See also bug 41794 for a related issue: Network filesystems being unmounted 
after the VPN is closed.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-30 Thread [EMAIL PROTECTED]
I removed Network Manager with the Synaptic Package Manager (the
network-manager and network-manager-gnome packages) and added my
wireless startup information to /etc/rc.local like this:

ifconfig eth1 down
dhclient -r eth1
ifconfig eth1 up
iwconfig eth1 essid "MY ESSID"
iwconfig eth1 mode Managed
dhclient eth1

sleep 5

mount -a -t cifs

Everything now works perfectly as far as I have been able to tell.  No
delay in shutting down and the Suspend function seems to be working
properly as well -- sorry I haven't tested Hibernate because I never
really use that anyway.  I mention the Suspend function because in the
past with NM and cifs in the /etc/fstab file Suspend used to only work
the first time, then every time after that the network would not
reactivate and I had to reboot.  Just in case anyone else is interested
in that little tidbit of information.

This seems to definitely be a Network Manager induced condition.

I hope this helps.
--Gary

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-31 Thread Thierry Carrez
** Also affects: sysvinit (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: network-manager (Ubuntu)
   Importance: Undecided
   Status: New

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-31 Thread Het Irv
Fully up to date Intrepid +1.

I would really like to see this bug get fixed, the response time on this
on makes me feel like I am on Windows again.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-31 Thread flaccid
Yeah I would have to say that response with things in Ubuntu is pathetic.
A lot of the time its hard to get something fixed for the next release let 
alone in the current release where it should be fixed.
Its the good old 'have to upgrade to the next release to fix this problem, and 
then i get fresh new problems in the next release' (or continue to wait for a 
bug to be fixed and then it gets expired!).

Considering the people copied on bugs like this, its like they don't
read their email..

So will somebody with authority like in Canonical get off their behind
and sponsor one of the fixes that has been available for a very long
time.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-10-31 Thread Alexander Sack
are there any up/down scripts for samba hooked into etc/network/if-up.d/
and /etc/network/if-down.d/ ? If not, we should try that as NM calls
those scripts after network is up or before its downed.

** Changed in: network-manager (Ubuntu)
   Importance: Undecided => Medium
   Status: New => Incomplete

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-01 Thread [EMAIL PROTECTED]
@Reinhard Tartler:
I think flaccid has already pointed to a simple fix here: 
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/211631/comments/14

it worked for me.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-01 Thread luchio
I've used the following fix for months, as described in this duplicate:
https://bugs.launchpad.net/bugs/184676

I would like to submit this for review.  How would I "attach a fix to
this bug" which involves only renaming files?  Can you do it?

The fix is:
mv /etc/rc0.d/S31umountnfs.sh /etc/rc0.d/S14umountnfs.sh
mv /etc/rc6.d/S31umountnfs.sh /etc/rc6.d/S14umountnfs.sh

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-02 Thread Max-Ulrich Farber

> mv /etc/rc0.d/S31umountnfs.sh /etc/rc0.d/S14umountnfs.sh
> mv /etc/rc6.d/S31umountnfs.sh /etc/rc6.d/S14umountnfs.sh 

This fix is a rather old thing; it had been published more than two
years ago.

I had asked here if this solution was correct and really safe, but I did
not get any answer yet!

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-02 Thread flaccid
@Reinhard Tartler:
If you actually spent some time reading the bug and its related duplicates etc. 
you wouldn't need to ask that question.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-02 Thread luchio
 Reinhard Tartler wrote:
> I'm unsure if that is the correct solution. It will most likely to break
> systems that have /usr not on /. Similar problems could arise with
> /usr/local/ not on / but custom modifications.

As I said, I don't know the right way to do a rename patch, so does
someone know?

 Reinhard Tartler wrote:
> However I wonder if S15wpa-ifupdown should be moved to S41wpa-ifupdown
> instead. That *should* cause less breakage and do the right thing
> generally.

Well, 2 people reported in this very thread that moving wpa-ifupdown to
S36 does not fix it.  I think that's because of K16dhcdbd.sh.  Name
resolution is still needed when unmounting NFS drives.

That's why the patch suggests moving up umountnfs instead of pushing
down 2 things.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-02 Thread Scott Severance
For several years, I've had a script that umounts my network shares
which runs at K02. It works perfectly for me. Is there a reason why
something like this isn't a good general approach?

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-03 Thread Tobias Kerzenmacher
The best solution to avoid messing up the unmounting issue for special cases as 
described by Reinhard Tartler 5 posts ago is to use a special unmounting script 
for cifs. People who have used the workaround described by luchio have never 
used such a special case scenario. Therefore it is much more prudent to leave 
the present scrips as they are and introduce a new script for cifs. This 
solution has been proposed before by Sander Marechal. Here is a link to the 
description of the solution and the script: 
http://www.jejik.com/articles/2007/07/automatically_mounting_and_unmounting_samba_windows_shares_with_cifs/
It says there: "To solve it I [Sander Marechal] wrote a little script cobbled 
together from bits and pieces of the umountnfs.sh and sendsigs init scripts. 
Basically it makes a list of all your mounted CIFS filesystems, shuts down and 
subsequently kills all processes that are still using those filesystems, and 
finally unmounts the CIFS filesystems. Save it to /etc/init.d/umountcifs and 
make it executable. Then symlink to it from /etc/rc0.d and /etc/rc6.d. You 
should ensure that umountcifs runs before the K20* init scripts fire. If it 
runs at K20 or later, you will still get the error. Personally I symlinked from 
/etc/rc(0|6).d/K19umountcifs."
With this following update: "Neill Hogarth adds that for (K)ubuntu 7.10 the 
script should be symlinked as K12umountcifs. K19 seems to work on (K)ubuntu 
7.04 and lower, and on Debian Etch."

** Attachment added: "umountcifs"
   http://launchpadlibrarian.net/19277241/umountcifs

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-03 Thread Tobias Kerzenmacher
The best solution to avoid messing up the unmounting issue for special cases as 
described by Reinhard Tartler 5 posts ago is to use a special unmounting script 
for cifs. People who have used the workaround described by luchio have never 
used such a special case scenario. Therefore it is much more prudent to leave 
the present scrips as they are and introduce a new script for cifs. This 
solution has been proposed before by Sander Marechal. Here is a link to the 
description of the solution and the script: 
http://www.jejik.com/articles/2007/07/automatically_mounting_and_unmounting_samba_windows_shares_with_cifs/
It says there: "To solve it I [Sander Marechal] wrote a little script cobbled 
together from bits and pieces of the umountnfs.sh and sendsigs init scripts. 
Basically it makes a list of all your mounted CIFS filesystems, shuts down and 
subsequently kills all processes that are still using those filesystems, and 
finally unmounts the CIFS filesystems. Save it to /etc/init.d/umountcifs and 
make it executable. Then symlink to it from /etc/rc0.d and /etc/rc6.d. You 
should ensure that umountcifs runs before the K20* init scripts fire. If it 
runs at K20 or later, you will still get the error. Personally I symlinked from 
/etc/rc(0|6).d/K19umountcifs."
With this following update: "Neill Hogarth adds that for (K)ubuntu 7.10 the 
script should be symlinked as K12umountcifs. K19 seems to work on (K)ubuntu 
7.04 and lower, and on Debian Etch."

** Attachment added: "umountcifs"
   http://launchpadlibrarian.net/19277243/umountcifs

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-03 Thread Tobias Kerzenmacher
The best solution to avoid messing up the unmounting issue for special cases as 
described by Reinhard Tartler 5 posts ago is to use a special unmounting script 
for cifs. People who have used the workaround described by luchio have never 
used such a special case scenario. Therefore it is much more prudent to leave 
the present scrips as they are and introduce a new script for cifs. This 
solution has been proposed before by Sander Marechal. Here is a link to the 
description of the solution and the script: 
http://www.jejik.com/articles/2007/07/automatically_mounting_and_unmounting_samba_windows_shares_with_cifs/
It says there: "To solve it I [Sander Marechal] wrote a little script cobbled 
together from bits and pieces of the umountnfs.sh and sendsigs init scripts. 
Basically it makes a list of all your mounted CIFS filesystems, shuts down and 
subsequently kills all processes that are still using those filesystems, and 
finally unmounts the CIFS filesystems. Save it to /etc/init.d/umountcifs and 
make it executable. Then symlink to it from /etc/rc0.d and /etc/rc6.d. You 
should ensure that umountcifs runs before the K20* init scripts fire. If it 
runs at K20 or later, you will still get the error. Personally I symlinked from 
/etc/rc(0|6).d/K19umountcifs."
With this following update: "Neill Hogarth adds that for (K)ubuntu 7.10 the 
script should be symlinked as K12umountcifs. K19 seems to work on (K)ubuntu 
7.04 and lower, and on Debian Etch."

** Attachment added: "umountcifs"
   http://launchpadlibrarian.net/19277239/umountcifs

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-03 Thread luchio
The umountcifs script seems to solve the problem here (tested as
K12umountcifs).  Of course, I had removed the other S14umountnfs.sh I
had added manually earlier.

It would be cleaner to do the symlinks as "../init.d/umountcifs" like
other rc0.d scripts, instead of /etc/init.d.  Otherwise, it *looks*
good.  I have not checked if this causes other messages in the system
log, I only checked if the "CIFS VFS: server not responding" msgs were
gone.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-04 Thread Tobias Kerzenmacher
** Attachment removed: "umountcifs"

   http://launchpadlibrarian.net/19277243/umountcifs

** Attachment removed: "umountcifs"

   http://launchpadlibrarian.net/19277241/umountcifs

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-05 Thread toobuntu
For our network using Ubuntu 8.04, Sander Marechal's umountcifs script
works when symlinked as K15umountcifs (i.e. the key is that it is called
prior to K16dhcdbd).

$ sudo ln -s /etc/init.d/umountcifs /etc/rc0.d/K15umountcifs
$ sudo ln -s /etc/init.d/umountcifs /etc/rc6.d/K15umountcifs

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-06 Thread [EMAIL PROTECTED]
In case anyone cares, my initial testing using this method has been very
successful so far, both shutdown/restart and suspend/resume are working
as I expect.  Would be possible to have Canonical officially embrace and
include this script in the Ubuntu base packaging and close out this
issue once and for all?  In the interest of having a Linux deliverable
that "just works" right out of the box it seems like this would be a
strategic move to me.  There's a little  bad press further up stream
here that I'd like to see turned around.  In my opinion this is by far
the best release of Ubuntu yet (I've used Intrepid since the Beta and
have updated but never actually re-installed with the official version),
and now it is 100% complete for me.  Thanks for turning me on to this
script, and thanks for an awesome Linux environment!  --Gary

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-06 Thread Mathias Gug
The issue discussed here boils down to the fact that network interfaces
can be brought down *before* network filesystems are unmounted thus
leading to a long timeout.

One option proposed was to move the umountnfs script earlier in the
shutdown sequence. Doing leads to the possibility that running processes
still have files opened on the network share. This is the reason why
S31umountnfs.sh is run *after* S20sendsigs. Some packages have their
shutdown scripts set too early in the boot sequence. These should be fix
them rather then moving the umountnfs script earlier in the shutdown
sequence.

Another option suggested was to use the ifdown.d infrastructure. That
means writing a script that is able to unmount network filesystems
according to the interface been brought down. However the script should
not unmount the remote filesystems when *a* network interface goes down
but rather unmount them when the *corresponding* network interface goes
down.

What *should* be happening in all cases is that the network route is
gone. Trying to send to it will return a no-route-to-host which can be
detected and handled by the kernel. So either the route isn't being torn
out when it should be, and we should fix that; or the cifs driver
doesn't handle  no-route-to-host, and we should fix that. Adjusting the
timeouts or moving/adding init scripts shouldn't matter at all.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-10 Thread luchio
@Mathias Gug

So, what do you suggest should happen now?  Submit a bug report to samba
and wait for them?

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-12 Thread Max-Ulrich Farber
@ luchio

We are already waiting for years, and nothing did really happen. It is a
shame.

Even if it is far from being a perfect solution, it is better to propose
a workaround like the script of Scott Severance than to do just nothing.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-15 Thread meestermole
Why isn't this fixed after so long? The big thing keeping me from
switching to Linux full time is that i run into these type of bugs, and
no sooner do i get them fixed and feel like i've made progress that
ANOTHER bug shows up. The more I want to do with my system, the more
bugs I need to find workarounds for. This one is a bit over my head, I'm
afraid. Seeing many posts about a bug that has existed for years does
not give me much hope.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-15 Thread flaccid
I think the problem lies with the lack of action on behalf of people with power 
to commit fixes such as Canonical sponsors.
I gave up on Ubuntu's management a long time ago. Where are the chiefs?

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-16 Thread Max-Ulrich Farber
I am afraid the problem is that in this case nobody really feels
responsible.  Is it a problem of the shutdown sequence (Ubuntu problem),
of the cifs Kernel module (Linux general) or a Samba bug? Who has got to
fix it?

As long as nobody feels responsible there is not much hope indeed.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-16 Thread flaccid
@Max-Ulrich Farber

I disagree and I don't think you can speak for others like that.
Considering the Linux kernel and Samba itself are shared between
hundreds of Linux distributions and that Samba is basically the same (in
this context) on other operating systems such as FreeBSD etc., it is
clear that its the responsibility of the distribution especially
considering scripts existed already and were simply executed at the
wrong stage of the shutdown sequence.

'Who' wants to take responsibility is kind of irrelevant here
considering fixes are available and we are only asking for 1 of these to
be committed as opposed to 'someone take the blame will you'.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-17 Thread Max-Ulrich Farber
I am sorry. I never wanted to speak for others. It is my opinion, but it
would be better if I had said nothing at all.

>considering scripts existed already and were simply executed at the
wrong stage of the shutdown sequence

Do these scripts really fix the problem? Please read the posting of Mathias Gug:
>Adjusting the timeouts or moving/adding init scripts shouldn't matter at all.

But I do not want to speak for Mathias. He explained it much better
himself.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-17 Thread flaccid
@Max-Ulrich Farber

What Mathias Gug was suggesting may be a better solution however not the
current method that Ubuntu employs in its [shutdown] scripts.
Considering how hard it is to get the other fixes committed as a
solution (which do work, I have tested and so have others), I would
assume this would be harder to get committed. Mathias suggested a great
possibility but did not attach the actual fix or try it so that doesn't
help at all unfortunately.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-23 Thread Owen PG
I just think it's a laugh, a linux distribution that can't cope with
either NFS or CIFS mounts.  See below for details:

https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/213444

Yes and I need to mount a resource both by NFS and CIFS . . .

It can't all be blamed on bug 1 - MS don't support nfs.

https://launchpad.net/ubuntu/+bug/1

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-29 Thread Max-Ulrich Farber
I can't understand that the importance of this bug is still set to "low"
in samba after such a long time!

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-29 Thread flaccid
Ubuntu - too many indians, no chiefs. Oh there are chiefs but they must
be too busy smoking crack.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-12-10 Thread James
So I've read through this entire thread and seen a lot of solutions. I have a 
fully updated intrepid and this line appears at shutdown (take out the splash 
line in your kernel command in grub to see it) :
CIFS VFS: No response for ..

basically the same as the original report.
CIFS VFS: server not responding
CIFS VFS: no response for cmd 50 mid 

With the result being that the system doesn't shutdown for a lon
time.

I don't want to mess around with init scripts, so I propose two solutions (and 
note I'm not a programmer):
1. If no network is present when the system is shutting down, try forcing the 
umount ?
$man umount
-f Force unmount (in case of an unreachable NFS system).  (Requires kernel 
2.1.116 or later.)
2. Bring the mount down before the network is bought down on shutdown (which 
seems sensible given remote file systems require a network)


BTW, my CIFS mount is created in userspace in Kubuntu on login, if that alters 
anything.
$ cat .kde/Autostart/mounts.sh
kdesudo -d --comment "Attach media share" -c "mount -t cifs //remote/media 
/path/to/mount/point -o username=xxx,rw,password=zzz"

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-01-29 Thread PascalCavy
And what if Networkmanager be protected from beeing killed in sendsig
and network beeing brought down at end of shutdown ?

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-01-29 Thread wolfi...@gmail.com
Ok that's it; I'm done with this. Just a waste of time.. All talk 'n no action. 
I'll just use one of the suggested fixes. If that doesn't work I'll have a big 
sticky note saying "Remember to unmount your Samba shares!". 
The problem is known; Several solutions are known; but just keep dragging 
forever.. plain ridiculous.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-01-30 Thread flaccid
@wolfi...@gmail.com
I agree of course. You just described the Ubuntu project!

The thing is people solve Launchpad Ubuntu bugs all the time. The problem is 
the managers of the distro. The other problem is how hard it is to get a fix 
committed.
This is not the only example of where I have done the pro-active thing and 
raised a bug, I am stopping reports of any bugs for Ubuntu. It simply is not 
worth the effort.

Ubuntu has proved to be a political project and not an active one. It is
far from Linux for human beings, that it claims. What a joke.
Congratulations Ubuntu you have proven to be like a company full of lies
and marketing bullshite.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-01-30 Thread bobp
I also did the right thing and reported this bug in one of the reports
that was marked as a duplicate.  Yes it is frustrating to see bugs take
so long to get fixed, and ultimately lack of a positive result teaches
users to give up bothering to file bug reports.  That's not a good
thing, as it causes bugs to go unreported and impedes progress.

In the big scheme of things, using Linux teaches you patience, teaches
you to learn to live with disappointment, and teaches you to look on the
bright side:  I left Gentoo development many years ago because of
problems like this.  With that other distro, bugs would remain unfixed
and some developers would deny that bugs exist and invalidate bug
reports without fixing the bugs, just to buff up their bug closure
statistics.  Then users would fight to have them reopened, and the
developer would immediately re-close it.  It was like beating your head
against the wall.  The entire process of user reporting and developer
invalidating would repeat itself over and over again in a never ending
cycle.  It evolved into a farce.

Watching the Gentoo developers insist that the bugs don't exist can be
quite amusing -- even though I have not used the distribution any more,
I'm still receiving email updates regarding an rsync time logging bug
that remains unresolved 5 years after I first reported it, and the same
developer continues to close the bug reports every time that users re-
open them.  Ubuntu may be far from perfect, but at least the price is
right and you don't have to waste hours or days COMPILING an entire
operating system only to find that it doesn't work right.  Look on the
bright side -- our situation could be much worse than it is.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-01-30 Thread flaccid
@bopb
I'm not sure that your closing point has much relevence to completing this bug. 
It merely suggests you accept the mediocrity of the situation. Of course the 
situation could be much worse than this, thats just stating the obvious. This 
does not mean its acceptable.
Oh and there are many other out of the box style Linux distros out there as 
well as desktop solutions such as PC-BSD. If you have a look around you will 
find there are dozens of alternatives to Ubuntu.
Also the good old 'but its free' argument is always bogus and classically used 
as an excuse. Ubuntu has a lot of members on board and is sponsored 
commercially so there isn't an excuse for no action here.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-01-30 Thread Ramon Rocha
Until this is "fixed", what can we as a user community do to help
mitigate the annoyances caused by this bug?  Would it be sufficient to
describe the issue and various workarounds in the relevant places in the
community documentation?  Maybe here...

https://help.ubuntu.com/community/Fstab

https://help.ubuntu.com/community/SettingUpSamba

Maybe a Known Issues section should be added.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-01-30 Thread flaccid
Let the inboxes be filled until it is committed!

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-02-03 Thread Tom Chiverton
One thing I only just figured out: if you are using the umountcifs script 
linked above, you also need to set the network as a system setting, otherwise 
it's pulled down when you exit KDE/Gnome and still leaves the umount hanging 
during shutdown/reboot.
I made sure network-manager-gnome was installed,  logged out of KDE, choose 
GNOME from the log in menu, and used GNOME's network manager to set the 
connection property.
Note there is a bug in *that* program, so you have to make sure both 'automatic 
connect' and 'system setting' are unticked, then tick 'system' then 'automatic'.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-02-04 Thread Phillip Hagger
This is disheartening to see that this bug has been around this long and
nothing has happened. I have been dealing with it for a while and
finally stumbled across it. I found a fix once before that I can't even
remember now and I can at least suspend only to find that when I wake my
laptop up on another network the shares are still mounted and any
suspend after that fails. I have taken to mounting and unmounting shares
manually before and after every suspend and its becoming annoying.

I love to tell people about the greatness of Ubuntu and many people want
to try it when they take a spin on my laptop. But issues like these are
show stoppers for people that just want to switch to something with a
solid and easy experience. I sincerely hope that these issues will be
fixed in the next release. But from the looks of this thread sadly I
don't believe they will. I will attempt the fix listed here but I really
question suggesting Ubuntu to someone and then trying to have them apply
this these fixes themselves. This gives credence to people that call
desktop Linux nothing more than a hobby.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-02-25 Thread James
This bug is causing usplash to crap-out on shutdown and display a nice screen 
of vertical coloured lines, as reported in this bug:
https://bugs.launchpad.net/ubuntu/+source/usplash/+bug/301628

usplash shows the coloured lines at exactly the same time as the CIFS
error messages are shown in shutdown.

Taking splash out of the kernel boot line in the grub list file removes
the graphical element of shutdown/startup and causes the CIFS error line
to appear (rather than being hidden by usplash) - It doesn't fix this
bug but at least the risk of damage to my screen is reduced.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-02 Thread Thierry Carrez
Quick status update/summary on this bug, because this thread is long and
tends to discourage people that could solve it.

The bug occurs on shutdown if you mount a CIFS share (using mount or
/etc/fstab). In some cases, S31umountnfs.sh tries to unmount the network
file system *after* the network has been brought down. CIFS doesn't
handle so well having the network pulled out from under it, so it stalls
the shutdown process for some time, but the shutdown finally succeeds.

The most common case appears to be those using NetworkManager to handle
the network interface (NetworkManager gets killed by S20sendsigs, before
S31umountnfs.sh). If you are not using NetworkManager at all (and have
your network defined in /etc/network/interfaces), the unmount will
succeed. That's why this bug doesn't really affect Ubuntu Server
systems. Also I would argue that you should not mount things system-wide
while having your network up/down at Gnome session start (think
wireless). Nautilus-based mounts seem like a better idea in that case.

It's *not* simple to fix. There are lots of workarounds which will solve
the problem for your use case, but which will also break it for other
folks. The fact that workaround X solves the issue for you doesn't make
it a proper update that can be applied to all other Ubuntu systems.
Cutting the network filesystem before S20sendsigs for example may result
in data corruption, which is arguably worse than an annoying delay at
shutdown.

The best way of solving this is to have CIFS (probably in kernel) better
support having the network pulled out from under it. I haven't really
found how we could do that, but I'll try to invite some CIFS specialists
here. Another way could be to exclude NetworkManager from S20sendsigs
and kill it properly at ~S35... constructive, technical comments
welcome.

It's true that the way Launchpad works doesn't help us in solving this
kind of in-between-packages bugs (and most distributions won't be better
than us). But bitching about it just makes developers turn to easier
(and more rewarding) bugs to fix.


** Bug watch added: Debian Bug tracker #477498
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477498

** Also affects: sysvinit (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477498
   Importance: Unknown
   Status: Unknown

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-02 Thread Thierry Carrez
smfrench:
Could you have a look at the CIFS timeout part ? Do you think it's possible to 
have CIFS more gracefully handle the case where the network is being pulled out 
from under it ? I can reproduce the issue with the current jaunty kernel, so 
this wasn't "fixed" as of the 2.6.28 we use. Or maybe it's in the userspace 
side ?

See
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/211631/comments/76
for a summary of this (long) bug. Thanks in advance ;)

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-03 Thread Thierry Carrez
OK, I uploaded a network-manager upgrade for intrepid to my PPA:
https://launchpad.net/~ttx/+archive/ppa

This release (built on the latest network-manager in intrepid-proposed)
basically prevents network-manager from being shut down by sendsigs...
>From my testing this solves the CIFS hanging during umountnfs, and also
ensures the network filesystems are still available when the processes
are stopped by sendsigs (allowing them to shutdown without data loss).
It was inspired by Daniel J Blueman proposed patch on (related) bug
113095.

Could you please test if it solves the issue for your specific case, and
tell me about any side-effects.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-03 Thread Max-Ulrich Farber
I have the same problem, but I had never used Network Manager. I always
use WICD.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-04 Thread Thierry Carrez
Just refreshed my PPA (a security update superseded it), please test:
0.7~~svn20081018t105859-0ubuntu1.8.10.3~ppa1

@Max-Ulrich Farber:
I guess WICD has the same bug as NetworkManager (gets killed by sendsigs before 
the network filesystems are unmounted). If testing shows that the solution for 
NM is right, we'll push the same kind of fix to WICD.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-05 Thread Steve Grecni
Thierry, I just installed your ppa network-manager packages on Intrepid,
and it's still hanging on shutdown (using wireless) with CIFS VFS
errors.  A fairly fresh UMPC install on a Dell Mini 9.

I ran a continuous ping on the machine and network is unavailable nearly
immediately after selecting shutdown from the gnome menu,  after a bit I
can then see the shutdown splash and a bit later I'm geting the CIFS VFS
errors.

Interestingly enough, even when I remove quiet and splash from the grub
menu.lst, it's still not showing any shutdown messages to me, just the
CIFS VFS errors and sometimes an apcid error.  So it's impossible for me
to tell the network manager is dying too soon.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-05 Thread Steve French
A couple clarifications:
1) We really want the network file systems to be unmounted (or at least synced) 
before the network goes away.  You do not want to risk losing file system data 
which has been cached by the Linux memory management layer.

2) If there is cached write data, we do want the file system to try as
hard as reasonably possible (perhaps forever in the case of mounting
with the "hard" mount option rather than the default "soft" mount)
before giving up - the network which is down for a few seconds, may
recover in most cases (where exactly we are in shutdown of the system
may be hard to detect in this path in the kernel)

3) CIFS already does do the obvious - it does not attempt to send network 
requests in umount (SMB "tree disconnect" followed by SMB "ulogoff") if the 
session is already dead (the server implicitly closes "tids" and "smb uids" 
when the socket crashes).   Write requests just prior to the umount getting to 
the kernel would cause attempts at reconnect, but simply from the kernel cifs 
driver perspective umounting should not cause network traffic if the session is 
already dead
e.g. see this code excerpt from CIFSSMBTDis
/*
 * No need to return error on this operation if tid invalidated and
 * closed on server already e.g. due to tcp session crashing. Also,
 * the tcon is no longer on the list, so no need to take lock before
 * checking this.
 */
if (tcon->need_reconnect)
return 0; 

and similarly in CIFSSMBLogoff:
if (ses->need_reconnect)
goto session_already_dead; /* no need to send SMBlogoff if uid
  already closed due to reconnect */

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-05 Thread Steve Grecni
Things get even weirder, if I select logout from the gnome panel,
network goes away, so I log back in as the same user, and network comes
back as expected.  But if I log out again, network stays up!  Tried
logging out again, network still stays up.

I noticed, if I log out, and then back in, then after shutting down, I
see the shutdown messages, I see my cifs mounts getting unmounted
properly (no CIFS VFS errors) and then then the networking interfaces
get deconfigured.  Shutdown happens properly

It seems at least for me, something is causing the network-manager to
die the first time I log out, but then after that, it stays up between
log outs.  Can anyone confirm?  Could this be some weird issue where the
network-manager is not properly detaching from the controlling terminal
or something of the sorts?

So basically something is causing my network-manager to die and not show
me shutdown messages if I don't log out and log back in first before
shutting down...  Am I the only one seeing this behavior?

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-06 Thread Thierry Carrez
I think I also need to clarify something here.

If you use NetworkManager with per-user settings (i.e. without the
"system setting" checkbox checked) then the network connection is up
only during your session. When you log out from your Gnome session, the
network connection goes down. This is the default for desktops, and
usually the case for wireless connections where the password is stored
in the user keyring.

So the whole concept of mounting any network filesystem system-wide at
boot (in /etc/fstab) while your network will only be there during your
Gnome session is flawed.

Here are the sane modes of operation:
(1) Not using NetworkManager, define a static network configuration in 
/etc/network/interfaces
Then you can use /etc/fstab without any problem, shutdown will work without a 
timeout. This is usually used on servers.

(2) Using NetworkManager in "system setting" mode
Then you should be able to use /etc/fstab without a problem. At this point 
there is a bug in NetworkManager that makes it die before umountnfs is called. 
The version in my PPA solves this. Please test.

(3) Using NetworkManager without "system setting" checked (per-session mode)
Then you shouldn't be using /etc/fstab at all. The network will go down when 
the Gnome session stops. True network filesystem mounts require the network to 
be up regardless of the Gnome session status. You should use nautilus mounts 
instead (smb://server/share). Those will be unmounted before Gnome logout.

I am trying to solve the bug in the (2) case here.
If you are in the (3) case (and a lot of you probably are) you should either 
switch to "system setting" mode or drop usage of CIFS mounts in favor of 
Nautilus gvfs-smb mounts.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-06 Thread toobuntu
@Thierry Carrez:

For use case #3, isn't that what the '_netdev' mount option is for?  In
my fstab, I always use '_netdev' for a network share; I think RedHat
considers it a best practice.  One could also combine that with 'noauto'
and 'user'.  The problem with gvfs-smb mounts is that non-gvfs aware
apps would not have access to the network filesystem.

In my setup, I also use gid=100 to mount network filesystems for all
users (gid=100).  I do have the timeout issue on runlevels 0 and 6, of
course.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-06 Thread Steve Grecni
Thanks for the clarification Thierry.  Unfortunately I cannot use it
wireless as a system wide setting due to bug #288963 which doesn't have
an intrepid backport.  Seems when tracking down the cause of one bug, I
encounter 3 more to that need to be fixed in order to solve it.  :)
Maybe I should just upgrade to jaunty and be done with it, but I fear
that's a whole new bag of worms...

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-06 Thread Steve French
OK ... doing a little more investigation it gets interesting to see what
crazy things gnome does (you can also try clearing the dmesg log and
then doing "echo 7 > /proc/fs/cifs/cifsFYI" before you logoff/umount and
see what cifs operations are in dmesg)

What I see is that the slow operations are repeated calls (presumably by gnome) 
to querypathinfo (stat) on ".Trash-1000" ... see below
 fs/cifs/inode.c: Getting info on //localhost/stevef/.Trash-1000
 fs/cifs/cifssmb.c: In QPathInfo (Unix) the path //localhost/stevef/.Trash-1000

cifs has no way of knowing that this is useless and that we should
ignore gnome's request

In addition, running with umount.cifs (/sbin/umount.cifs is not needed
in most cases unless you are doing user mounts/umount) you get a call to
"statfs" (umount.cifs has to verify that this is a cifs mount and AFAIK
there is no cheap way to do this in Ubuntu - and so we are stuck calling
statfs to check the fs "type" field to make sure that we are in fact
unmount a cifs file system - but statfs also unfortunately returns other
information that requires sending a request over the network ... it
would be very helpful if there were a way to query ... just ... the file
system's type and not the other dynamic information that requires going
to the server).   If you move umount.cifs out of sbin that should help,
but the big problem seems to be the desktop querying for things it
doesn't need to be doing during umount

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-06 Thread Steve French
running without umount.cifs (which is not needed unless you are doing
user mounts), the unmount finishes quickly, and with no visible errors
(the tree disconnection request times out fairly fast, and the rest of
umount proceeds fast after that)

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-06 Thread Steve French
The easiest way to test this is to always do "umount -i "
rather than "umount " unless you are doing an umount as a
regular user of a user mount (-i prevents the unneeded helper program
from being called)

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-07 Thread Alexander Sack
Thierry, please extend your approach to not kill wpasupplicant on
shutdown either. i think thats the problem that is left with your ppa
packages here as the ones reporting that your ppa package doesnt help
are using wireless.

Once you have that please request a merge for the 0.7.1 branch and if
you want also for the 0.7 branch in intrepid and I will take care that
this gets into jaunty and after some baking to intrepid.

** Description changed:

- I installed smbfs, and then put some entries into /etc/fstab, so they 
automount on startup. An example of this is here:
+ IMPORTANT: this bug has enough information; please don't post _anything_
+ unless a developer asks for specific feedback! By posting to this bug
+ you only make it harder for a developer to spot the gem comments. Please
+ use the "me too feature" of launchpad to signal that you are affected
+ and would like to see this fixed.
+ 
+ I installed smbfs,and then put some entries into /etc/fstab, so they 
automount on startup. An example of this is here:
  ///  /home/hamish/  cifs  
credentials=/home/hamish/.smbcredentials,file_mode=0777,dir_mode=0777,uid=1000,gid=1000
  0  0
  
  ** note the use of "cifs" in the lines above **
  
  (The username and password are in the .smbcredentials file)
  
  On startup, for each entry in the /etc/fstab file, I get the following in 
dmesg:
  [   70.495504]  CIFS VFS: Error connecting to IPv4 socket. Aborting operation
  [   70.495569]  CIFS VFS: cifs_mount failed w/return code = -101
  But the shares are mounted, and a nautilus session opens up (which is also 
annoying...)
  
  Also logging off with CIFS shares mounted in /etc/fstab, it sits with an 
error message:
  CIFS VFS: server not responding
  CIFS VFS: no response for cmd 50 mid 
  And takes about 2 minutes to timeout. This also happened with Gutsy
  
  Should the timing of the mounting and dismounting be changed so that it
  works? It is related to the starting of network-manager and CIFS shares
  trying to connect on startup *before* the network is up, and dismounting
  the shares *after* network-manager is stopped.
  
  Hamish

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-11 Thread Thierry Carrez
Filed bug 341084 to discuss usage of "umount -i" rather than "umount" in
umountnfs.sh. Please followup there.

Updating other status: Nothing to fix in samba or dhcdbd, something to
fix in network-manager, and maybe something to fix in wpasupplicant.

** Changed in: sysvinit (Ubuntu)
   Status: New => Invalid

** Changed in: samba (Ubuntu)
   Status: Confirmed => Invalid

** Changed in: network-manager (Ubuntu)
   Status: Incomplete => Confirmed

** Changed in: dhcdbd (Ubuntu)
   Status: New => Invalid

** Changed in: wpasupplicant (Ubuntu)
   Status: Confirmed => New

** Summary changed:

- CIFS/SMBFS shares not unmounted before network is shut down
+ Network is brought down before network filesystems are unmounted

** Summary changed:

- Network is brought down before network filesystems are unmounted
+ Network is brought down before network filesystems are unmounted (CIFS 
timeout at shutdown)

-- 
Network is brought down before network filesystems are unmounted (CIFS timeout 
at shutdown)
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-11 Thread Thierry Carrez
@toobuntu:
The _netdev option tells the system (if it doesn't already knows it from the 
fstype) that the filesystem should be considered mounted on network (and 
therefore be unmounted in umountnfs.sh rather than umountfs).

@Steve Greci ("Seems when tracking down the cause of one bug, I encounter 3 
more to that need to be fixed in order to solve it."):
I understand the feeling. That's part of why I said this bug is not so easy to 
fix. Looks like your bug is solved in Jaunty though... so let's try if we can 
completely fix it for that release :)

@Steve French:
Yes, there seems to be a major inconsistency between the way Gnome handles 
files on network mounts vs. how NetworkManager handles the network. Thanks for 
your analysis :) To mitigate the effects I agree we should hack umountnfs.sh so 
that it always uses "umount -i". Since that script is always run as root I 
suppose there wouldn't be any wrong side-effects ?

@Bart:
I agree that the different "network modes" are poorly documented (and checkbox 
behavior in n-m-applet to switch between them used to be very buggy). I am 
still not sure I got them right. I guess Alexander could confirm if what I said 
in comment 88 is indeed how it works.

@Alexander:
I think most of the users with wireless reporting failure are in use case (3) 
described in comment 88, since it's the default N-M mode of operation. However 
I agree wpasupplicant needs to be fixed as well, for the case where you would 
run on wireless with a system connection (is that even possible ?). Looking at 
wpa-ifdown though, it appears it already has some support for sendsigs omission 
(at least in Jaunty), so that might not be needed. I need more time on this.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-01 Thread Reinhard Tartler
flaccid <[EMAIL PROTECTED]> writes:

> So will somebody with authority like in Canonical get off their behind
> and sponsor one of the fixes that has been available for a very long
> time.

please attach a fix to this bug so that it can be reviewed, tested and
integrated into the package.

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-02 Thread Reinhard Tartler
luchio <[EMAIL PROTECTED]> writes:

> The fix is:
> mv /etc/rc0.d/S31umountnfs.sh /etc/rc0.d/S14umountnfs.sh
> mv /etc/rc6.d/S31umountnfs.sh /etc/rc6.d/S14umountnfs.sh

I'm unsure if that is the correct solution. It will most likely to break
systems that have /usr not on /. Similar problems could arise with
/usr/local/ not on / but custom modifications.

However I wonder if S15wpa-ifupdown should be moved to S41wpa-ifupdown
instead. That *should* cause less breakage and do the right thing
generally.

comments?

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2008-11-02 Thread Reinhard Tartler
luchio <[EMAIL PROTECTED]> writes:

>  Reinhard Tartler wrote:
>> I'm unsure if that is the correct solution. It will most likely to break
>> systems that have /usr not on /. Similar problems could arise with
>> /usr/local/ not on / but custom modifications.
>
> As I said, I don't know the right way to do a rename patch, so does
> someone know?

creating a patch for that is not the problem. Finding the correct
solution with a proper explanation for debian/changelog is way more
challanging and important!

>  Reinhard Tartler wrote:
>> However I wonder if S15wpa-ifupdown should be moved to S41wpa-ifupdown
>> instead. That *should* cause less breakage and do the right thing
>> generally.
>
> Well, 2 people reported in this very thread that moving wpa-ifupdown to
> S36 does not fix it.  I think that's because of K16dhcdbd.sh.  Name
> resolution is still needed when unmounting NFS drives.

That does not really make sense. According to
http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit, the
Knn scripts are always executed before any S script. I cannot see how
renaming S15wpa-ifupdown to S41wpa-ifupdown will interefere here.

As this is an extra indication that I have not understood the problem
completely, and given that this bug is already pretty heatly discussed,
I will take extra care before considering any change in this matter.

Looking further at it, it seems pretty obvious why renaming it to
S36wpa-ifupdown does not fix it: unmounting nfs and other filesystems
happen at S40. In order to fix this issue wpasupplicant has to be taken
down after that. Which is a real pain in debian, since wpasupplicant is
installed there in /usr/sbin, which might no longer be available at this
stage. Luckily in ubuntu it is in /sbin, though.

> That's why the patch suggests moving up umountnfs instead of pushing
> down 2 things.

Yes, still I'd like to know what I'm actually doing before uploading
random patches some guys on some bug have proposed that might or might
not fix a (granted, very annoying) bug.

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-01-30 Thread Scott Severance
@complainers:

Complaining about Ubuntu's bug-fixing process won't get this bug fixed any
quicker. It just fills people's inboxes with useless drivel. Let's keep the
discussion on-topic, shall we?

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-05 Thread Bart Samwel
Thierry Carrez wrote:
> OK, I uploaded a network-manager upgrade for intrepid to my PPA:
> https://launchpad.net/~ttx/+archive/ppa
> 
> This release (built on the latest network-manager in intrepid-proposed)
> basically prevents network-manager from being shut down by sendsigs...
>>From my testing this solves the CIFS hanging during umountnfs, and also
> ensures the network filesystems are still available when the processes
> are stopped by sendsigs (allowing them to shutdown without data loss).
> It was inspired by Daniel J Blueman proposed patch on (related) bug
> 113095.
> 
> Could you please test if it solves the issue for your specific case, and
> tell me about any side-effects.

Hi Thierry,

I'm on jaunty, I've tried the package but I still have the same problem.
On my jaunty install the problem is even worse, it doesn't get past the
unmounts or perhaps it just takes extremely long, I have to
hard-shutdown my laptop every time I shut down and forget to unmount
these file systems first.

In my opinion this is really a kernel problem, and a big one. If there
is no route to the host (which is the case if the network is down), the
cifs vfs should properly detect this and not wait for some timeout. And
it *can* easily detect this: when the network is down and I do a ping, I
also get "no route to host". I don't see any reason why the cifs vfs
shouldn't be able to detect this as well.

Also, your current attempt at a solution will only solve the problem
when the network is still up. But what if I shut down while my wireless
network is gone? For instance, when I've moved away from my home
location with the laptop on or (probably) suspended? Or what if my
wireless network simply shuts down by itself? It tends to do that. :-)

I really hope that somebody will find time to look at a proper, kernel
based solution.

Cheers,
Bart

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-05 Thread Bart Samwel
Hi Steve,

Steve Grecni wrote:
> Thierry, I just installed your ppa network-manager packages on Intrepid,
> and it's still hanging on shutdown (using wireless) with CIFS VFS
> errors.  A fairly fresh UMPC install on a Dell Mini 9.
> 
> I ran a continuous ping on the machine and network is unavailable nearly
> immediately after selecting shutdown from the gnome menu,  after a bit I
> can then see the shutdown splash and a bit later I'm geting the CIFS VFS
> errors.
> 
> Interestingly enough, even when I remove quiet and splash from the grub
> menu.lst, it's still not showing any shutdown messages to me, just the
> CIFS VFS errors and sometimes an apcid error.  So it's impossible for me
> to tell the network manager is dying too soon.

 In that case it seems that the only reason for the existence of the
NetworkManager daemon is to perform the required privileged operations
at the biddingI don't know *exactly* how NetworkManager works, but I'm
under the impression that it only holds a network connection while the
applet is running, i.e., while the user is logged in. This could be a
security thing, because it gets the network settings from the user's
settings, and also the authentication to a wireless network are taken
from the logged on user's key ring. So it's actually quite logical that
it would shut down the network at logoff, BEFORE any of the shutdown
scripts run. (In that case it seems that the NetworkManager daemon is
only there to do the required privileged work at the bidding of the
nm-applet. And if the nm-applet disconnects due to logoff, then it
disconnects...)

Anyway, this is all just conjecture. I might have it all backwards.

Cheers,
Bart

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-05 Thread Bart Samwel
Hi Steve,

Steve French wrote:
> A couple clarifications:
>
> 1) We really want the network file systems
> to be unmounted (or at least synced) before the network goes away.
> You do not want to risk losing file system data which has been cached
> by the Linux memory management layer.
> 
> 2) If there is cached write data, we do want the file system to try
> as hard as reasonably possible (perhaps forever in the case of
> mounting with the "hard" mount option rather than the default "soft"
> mount) before giving up - the network which is down for a few
> seconds, may recover in most cases (where exactly we are in shutdown
> of the system may be hard to detect in this path in the kernel)

> 3) CIFS already does do the obvious - it does not attempt to send
> network requests in umount (SMB "tree disconnect" followed by SMB
> "ulogoff") if the session is already dead (the server implicitly
> closes "tids" and "smb uids" when the socket crashes).   Write
> requests just prior to the umount getting to the kernel would cause
> attempts at reconnect, but simply from the kernel cifs driver
> perspective umounting should not cause network traffic if the session
> is already dead

I think there must be a bug somewhere in this code then. My cifs file
systems are all as read only as a read-write file system can be: I
almost never write to them, I just mount them by default so that I can
read from them (which I also almost never do), and also write to them
when I want, which is also not a daily thing. So I almost always shut
down in a situation where the file system has only been read from, not
written to -- and the reads are usually also a long time ago. No reason
at all to wait indefinitely!

For reference, all my cifs file systems are mounted below /nas/..., and
the following command:

# lsof | grep nas

shows nothing. No files open on the shares, and it's like that for most
of the time. Still, my system hangs at shutdown. There's *something*
fishy going on here. Do you know of any other commands I should try to
figure out if there is some dirty data left for the cifs file systems,
that somehow doesn't get written? Would it help to sync before I reboot
from the GUI, so that all pending dirty data is flushed to the cifs fs?

Cheers,
Bart

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-05 Thread Bart Samwel
Bart Samwel wrote:
> Would it help to sync before I reboot
> from the GUI, so that all pending dirty data is flushed to the cifs fs?

For the record: nope, that doesn't help. Still hangs.

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 211631] Re: CIFS/SMBFS shares not unmounted before network is shut down

2009-03-06 Thread Bart Samwel
Hi Thierry,

Thierry Carrez wrote:
> I am trying to solve the bug in the (2) case here. If you are in the
> (3) case (and a lot of you probably are) you should either switch to
> "system setting" mode or drop usage of CIFS mounts in favor of
> Nautilus gvfs-smb mounts.

Thanks very much for the detailed explanation. I switched to "system
setting" mode and this did solve the problem for me. This option is very
well hidden however, so this is probably one of the reasons why there
are many users who use fstab in combination with per-user network
settings. (The gvfs option is not suitable for me BTW because I access
the mounts mostly from scripts. And also from KDE programs -- I'm not
sure those can access gvfs. :-) )

I do still think that there is something fishy going on with the long
timeouts while I have nothing open on the network fs.

I admit that I'm applying the same kind of logic that people do actually
use for things like thumb drives -- if you don't write to them (or
haven't written to them in a while) then you can remove them without
thinking. It's not *technically* correct, but it's only not technically
correct because the system works that way. And then we are typically
trying to make the users behave in a certain way to match the behaviour
of the system, instead of making sure the system behaves as the users
quite reasonably expect it to. :-) Personally I think that it would be
very much in line with Ubuntu's "human" philosophy to try and make the
system behave as humans expect it to, which in this case is that if they
haven't written anything to the fs, then there's no reason to wait for
the server. Steve's analysis might give some pointers to WTF is going on
here...

Cheers,
Bart

-- 
CIFS/SMBFS shares not unmounted before network is shut down
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs