Re: [ubuntu-uk] NFS and NetworkManager
Well, a combination of both seems to have fixed it. In summary, I switched the network to manual configuration, meaning that it got brought up during boot rather than at the behest of the tray icon once I'd logged in. I was also suffering I think since I was trying to mount three shares at once, and the server couldn't reply quick enough so that none of the three would time out. From what I've read NFS clients time out after a fixed period and then attempt to try again. I've increased the timout from 1.4 seconds to 3 seconds, and it seems to have done the trick. It took the last share a couple of minutes to become available, but did so by the time I logged in. Thanks for the thoughts! Pete. I know this is solved but i thought i'd put my input in. i use SMBFS to mount network shares, but (and this has been happening since i started with ubuntu, 5.10) sometimes it seems to half mount them, and the machine runs really slowly and cant connect and becomes unstable as soon as i try access one. I figured it was because the network hadn't finished loading (i use a manual config). My solution is to not use fstab, but rather a script: /usr/local/sbin/mountall (770) Then in my /etc/rc.local, it runs the script... works like a charm. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
Re: [ubuntu-uk] NFS and NetworkManager
Peter Lewis wrote: snip So far as I can tell, my network connection is brought up when I log in to my Kubuntu box, through the network manager tray icon. This connects me to my wireless network. However, I have a couple of NFS shares, which are listed in fstab. They never get brought up automatically though, since during booting, the network is not up yet. I then have to do a 'sudo mount -a' to get them to come up *after* I've logged in. I'm sure it's not supposed to work like this. How do I get the network up earlier so that this isn't an issue? Pete Does your /etc/fstab refer to these shares by their full IP address on the LAN or by a share name? I use the LAN IP addresses, and my shares mount automatically when the wireless network is up. (Tho' I use Gnome rather than KDE). Don't know if the form of the addressing matters, but if it's a factor, it may be worth a quick test. I should say that the mounting of network shares (I use CIFS) is not perfect: it sometimes takes a while for them to mount; and sometimes they don't, and, like you, I need to do a sudo mount -a to get them up. But mostly they do come up when the wireless network becomes available. Mac -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
Re: [ubuntu-uk] NFS and NetworkManager
Pete, Peter Lewis wrote: Hi all, I've been living with this for a while, but it's starting to annoy me a little. I wonder if anyone can help. So far as I can tell, my network connection is brought up when I log in to my Kubuntu box, through the network manager tray icon. This connects me to my wireless network. However, I have a couple of NFS shares, which are listed in fstab. They never get brought up automatically though, since during booting, the network is not up yet. I then have to do a 'sudo mount -a' to get them to come up *after* I've logged in. I'm sure it's not supposed to work like this. How do I get the network up earlier so that this isn't an issue? Is this a desktop that always connects to the same Wireless Access Point? if so, you could manually configure the wireless (click on the network manager icon and select manual configuration). The wireless connection should come up at boot time then. Regards, Tony. -- Tony Arnold, IT Security Coordinator, University of Manchester, IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL. T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039 E: [EMAIL PROTECTED], H: http://www.man.ac.uk/Tony.Arnold -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
Re: [ubuntu-uk] NFS and NetworkManager
On Sunday 02 December 2007 15:21:34 Tony Arnold wrote: Peter Lewis wrote: I've been living with this for a while, but it's starting to annoy me a little. I wonder if anyone can help. So far as I can tell, my network connection is brought up when I log in to my Kubuntu box, through the network manager tray icon. This connects me to my wireless network. However, I have a couple of NFS shares, which are listed in fstab. They never get brought up automatically though, since during booting, the network is not up yet. I then have to do a 'sudo mount -a' to get them to come up *after* I've logged in. I'm sure it's not supposed to work like this. How do I get the network up earlier so that this isn't an issue? Is this a desktop that always connects to the same Wireless Access Point? if so, you could manually configure the wireless (click on the network manager icon and select manual configuration). The wireless connection should come up at boot time then. Another good suggestion, thanks Tony. I've switched it over to a manual configuration (i.e. in /etc/network/interfaces) now, so will do a reboot and see what happens... Cheers, Pete. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
Re: [ubuntu-uk] NFS and NetworkManager
Hi Mac, On Sunday 02 December 2007 14:55:30 Mac wrote: Peter Lewis wrote: snip So far as I can tell, my network connection is brought up when I log in to my Kubuntu box, through the network manager tray icon. This connects me to my wireless network. However, I have a couple of NFS shares, which are listed in fstab. They never get brought up automatically though, since during booting, the network is not up yet. I then have to do a 'sudo mount -a' to get them to come up *after* I've logged in. I'm sure it's not supposed to work like this. How do I get the network up earlier so that this isn't an issue? Pete Does your /etc/fstab refer to these shares by their full IP address on the LAN or by a share name? I use the LAN IP addresses, and my shares mount automatically when the wireless network is up. (Tho' I use Gnome rather than KDE). Don't know if the form of the addressing matters, but if it's a factor, it may be worth a quick test. They're listed in /etc/fstab using a hostname, but the hostname is directly listed in /etc/hosts, (it's only a small home network). So, I'm assuming that this is functionally equivalent to the IP itself being listed...? I should say that the mounting of network shares (I use CIFS) is not perfect: it sometimes takes a while for them to mount; and sometimes they don't, and, like you, I need to do a sudo mount -a to get them up. But mostly they do come up when the wireless network becomes available. I was using CIFS for a while, but realised when I did a reinstall of my server box that I don't use Windows any more, so switched to NFS (which seemed to handle permissions a little better from my perspective). It seems though that the choice of NFS vs CIFS wouldn't impact upon this. Your comment about them taking a while to mount made me think about time-outs a bit, so will try an experiment or two... and get back. Thanks! Cheers, Pete. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
Re: [ubuntu-uk] NFS and NetworkManager
Hi again folks, On Sunday 02 December 2007 14:55:30 Mac wrote: Pete Does your /etc/fstab refer to these shares by their full IP address on the LAN or by a share name? I use the LAN IP addresses, and my shares mount automatically when the wireless network is up. (Tho' I use Gnome rather than KDE). Don't know if the form of the addressing matters, but if it's a factor, it may be worth a quick test. I replied: Your comment about them taking a while to mount made me think about time-outs a bit, so will try an experiment or two... and get back. Thanks! On Sunday 02 December 2007 15:21:34 Tony Arnold wrote: Is this a desktop that always connects to the same Wireless Access Point? if so, you could manually configure the wireless (click on the network manager icon and select manual configuration). The wireless connection should come up at boot time then. I replied: Another good suggestion, thanks Tony. I've switched it over to a manual configuration (i.e. in /etc/network/interfaces) now, so will do a reboot and see what happens... Well, a combination of both seems to have fixed it. In summary, I switched the network to manual configuration, meaning that it got brought up during boot rather than at the behest of the tray icon once I'd logged in. I was also suffering I think since I was trying to mount three shares at once, and the server couldn't reply quick enough so that none of the three would time out. From what I've read NFS clients time out after a fixed period and then attempt to try again. I've increased the timout from 1.4 seconds to 3 seconds, and it seems to have done the trick. It took the last share a couple of minutes to become available, but did so by the time I logged in. Thanks for the thoughts! Pete. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/