Re: [opensuse] Losing NFS mounts on 11.1
On Mon, 2009-07-27 at 16:35 +0200, jdd (kim2) wrote:
James Pifer a écrit :
On 10.3 I could switch back and forth and the mounts would stay connected, or reconnect in the background, not sure which. I've looked through the man page and don't see anything relevant.
I have no real idea, but do you have good fstab options? did you read the *mount* man page?
jdd
These mounts are not done through fstab. I suppose they could be, but it was never needed in the past, and I definitely do some manual mounts on occasion. On 10.3 if I manually mounted drives, and then switched my network connection**, the mount would persist. On 11.1 the NFS mounts all drop immediately. **Switching my network connection using Network Manager. IP address stays the same. Other apps continue to work fine, as well as my smb mounts. It's just NFS mounts that croaks. I did look at the mount man page and did not see anything that looked like it would help. Thanks, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Pifer a écrit :
**Switching my network connection using Network Manager. IP address stays the same. Other apps continue to work fine, as wel
did you try the traditional ifup system, let only to see if the problem is networkmanager or other system? sorry not to be able to help more :-( jdd -- http://www.dodin.net http://valerie.dodin.org http://news.opensuse.org/2009/04/13/people-of-opensuse-jean-daniel-dodin/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
jdd (kim2) wrote:
James Pifer a écrit :
**Switching my network connection using Network Manager. IP address stays the same. Other apps continue to work fine, as wel
did you try the traditional ifup system, let only to see if the problem is networkmanager or other system?
sorry not to be able to help more :-(
jdd
You need to display the way you mount the nfs mount and the host table. I had that problem until I realize the following: 1. My machine, orion had 1 address for the wired 2. when it switched to wireless, the network switch another sub-network. Result I loss my connection. I fixed this by setting my mount point to 127.0.0.1. When I switch network, it no longer breaks the nfs mount. -- Joseph Loo jloo@acm.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
You need to display the way you mount the nfs mount and the host table.
I had that problem until I realize the following: 1. My machine, orion had 1 address for the wired 2. when it switched to wireless, the network switch another sub-network. Result I loss my connection.
I fixed this by setting my mount point to 127.0.0.1. When I switch network, it no longer breaks the nfs mount.
Currently I mount them like: mount 192.168.0.22:/storage /home/user/shares/storage How do I switch the mount point to 127.0.0.1? 127.0.0.1 is in the hosts files as localhost. Thanks, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
2009/7/28 James Pifer <jep@obrien-pifer.com>:
You need to display the way you mount the nfs mount and the host table.
I had that problem until I realize the following: 1. My machine, orion had 1 address for the wired 2. when it switched to wireless, the network switch another sub-network. Result I loss my connection.
I fixed this by setting my mount point to 127.0.0.1. When I switch network, it no longer breaks the nfs mount.
Currently I mount them like:
mount 192.168.0.22:/storage /home/user/shares/storage
How do I switch the mount point to 127.0.0.1?
127.0.0.1 is in the hosts files as localhost.
Thanks, James
Maybe in 10.3 the default option is to use UDP and in 11.1 is TCP?, try specifying "proto=udp" as an option.... Regards, -- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 2009-07-28 at 11:21 -0400, Ciro Iriarte wrote:
2009/7/28 James Pifer <jep@obrien-pifer.com>:
You need to display the way you mount the nfs mount and the host table.
I had that problem until I realize the following: 1. My machine, orion had 1 address for the wired 2. when it switched to wireless, the network switch another sub-network. Result I loss my connection.
I fixed this by setting my mount point to 127.0.0.1. When I switch network, it no longer breaks the nfs mount.
Currently I mount them like:
mount 192.168.0.22:/storage /home/user/shares/storage
How do I switch the mount point to 127.0.0.1?
127.0.0.1 is in the hosts files as localhost.
Thanks, James
Maybe in 10.3 the default option is to use UDP and in 11.1 is TCP?, try specifying "proto=udp" as an option....
Regards,
Tried udp. Was able to mount it, but as soon as I pulled the network cable, the mount went away. Btw, when mine switches from wired to wireless, the ip addres stays the same, hence same subnet as well. Thanks, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Pifer wrote:
You need to display the way you mount the nfs mount and the host table.
I had that problem until I realize the following: 1. My machine, orion had 1 address for the wired 2. when it switched to wireless, the network switch another sub-network. Result I loss my connection.
I fixed this by setting my mount point to 127.0.0.1. When I switch network, it no longer breaks the nfs mount.
Currently I mount them like:
mount 192.168.0.22:/storage /home/user/shares/storage
How do I switch the mount point to 127.0.0.1?
127.0.0.1 is in the hosts files as localhost.
Thanks, James
I assume that your nfs server is the same machine. If it is, just change the address to 127.0.0.1 and it will mount your machine. I personally like to make things a bit more symbolic by using a host name. My machine has in the host table 127.0.0.1 localhost orion1 I just use orion1:/storage -- Joseph Loo jloo@acm.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I assume that your nfs server is the same machine. If it is, just change the address to 127.0.0.1 and it will mount your machine. I personally like to make things a bit more symbolic by using a host name. My machine has in the host table 127.0.0.1 localhost orion1
I just use orion1:/storage
The NFS server(s) are on other machines. Possibly dumb question, what would the point be of mounting nfs on the same machine? Thanks, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Pifer wrote:
I assume that your nfs server is the same machine. If it is, just change the address to 127.0.0.1 and it will mount your machine. I personally like to make things a bit more symbolic by using a host name. My machine has in the host table 127.0.0.1 localhost orion1
I just use orion1:/storage
The NFS server(s) are on other machines. Possibly dumb question, what would the point be of mounting nfs on the same machine?
Thanks, James
The reason is that I use autofs. This allows the nfs mounts to occur on a user by user basis. A user might be on the local machine or another machine. That way, the data follows the user not the machine. So if you couple ldap with the autofs, you can have a central area containing the user password and mount location. Then you can log onto any machine using ldap and your home directory will be mounted automatically. In addition, autofs allows you to have secondary servers to provide your data. If the primary server goes down, the secondary server will be taken over. You might want to change your option to soft, intr as part of your mount options. This should allow the nfs mounts to be interrupted. If you loose the mount, can you do a remount to get the data? -- Joseph Loo jloo@acm.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
AutoFS might be a good option too, it will mount the share on demand (each time a user requests to access the mount point. Regards, Ciro 2009/7/29, Joseph Loo <joseph.loo@dslextreme.com>:
James Pifer wrote:
I assume that your nfs server is the same machine. If it is, just change the address to 127.0.0.1 and it will mount your machine. I personally like to make things a bit more symbolic by using a host name. My machine has in the host table 127.0.0.1 localhost orion1
I just use orion1:/storage
The NFS server(s) are on other machines. Possibly dumb question, what would the point be of mounting nfs on the same machine?
Thanks, James
The reason is that I use autofs. This allows the nfs mounts to occur on a user by user basis. A user might be on the local machine or another machine. That way, the data follows the user not the machine. So if you couple ldap with the autofs, you can have a central area containing the user password and mount location. Then you can log onto any machine using ldap and your home directory will be mounted automatically. In addition, autofs allows you to have secondary servers to provide your data. If the primary server goes down, the secondary server will be taken over.
You might want to change your option to soft, intr as part of your mount options. This should allow the nfs mounts to be interrupted. If you loose the mount, can you do a remount to get the data?
--
Joseph Loo jloo@acm.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 2009-08-01 at 19:09 -0400, Ciro Iriarte wrote:
AutoFS might be a good option too, it will mount the share on demand (each time a user requests to access the mount point.
Regards, Ciro
Trying autofs. No luck getting it to work so far. Looking at the man page and google, but not sure what I'm doing wrong. My auto.master has: # # Sample auto.master file # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # For details of the format look at autofs(5). # #/misc /etc/auto.misc # # NOTE: mounts done from a hosts map will be mounted with the # "nosuid" and "nodev" options unless the "suid" and "dev" # options are explicitly given. # #/net -hosts # # Include central master map if it can be found using # nsswitch sources. # # Note that if there are entries for /net or /misc (as # above) in the included master map any keys that are the # same will not be seen as the first read key seen takes # precedence. # +auto.master /home/user/shares auto.shares I created an executable /etc/auto.shares and it has: storage rw 192.168.0.22:/storage mythtv rw 192.168.0.16:/mythtv Start the autofs service. In /var/log/messages I get nothing, but it doesn't automount either. Any ideas? Thanks, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi there, On Mon, 03 Aug 2009, 14:54:03 +0200, James Pifer wrote:
On Sat, 2009-08-01 at 19:09 -0400, Ciro Iriarte wrote:
AutoFS might be a good option too, it will mount the share on demand (each time a user requests to access the mount point.
Regards, Ciro
Trying autofs. No luck getting it to work so far. Looking at the man page and google, but not sure what I'm doing wrong.
My auto.master has: # # Sample auto.master file # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # For details of the format look at autofs(5). # #/misc /etc/auto.misc # # NOTE: mounts done from a hosts map will be mounted with the # "nosuid" and "nodev" options unless the "suid" and "dev" # options are explicitly given. # #/net -hosts # # Include central master map if it can be found using # nsswitch sources. # # Note that if there are entries for /net or /misc (as # above) in the included master map any keys that are the # same will not be seen as the first read key seen takes # precedence. # +auto.master /home/user/shares auto.shares
I created an executable /etc/auto.shares and it has:
No need to make it executable; this is only needed for a real shell script emitting some dynamically calculated data - for an example, take a look at /etc/auto.net
storage rw 192.168.0.22:/storage mythtv rw 192.168.0.16:/mythtv
This should look like: storage -tcp,rw,hard,intr,rsize=32768,wsize=32768 192.168.0.22:/storage mythtv -tcp,rw,hard,intr,rsize=32768,wsize=32768 192.168.0.16:/mythtv With this map, you can access e.g. 192.168.0.22:/storage at /home/user/shares/storage . Of course, the "tcp", "rsize=" and "wsize=" options depend on your actual network settings. You can find all the details about the autofs *maps* in autofs(5).
Start the autofs service.
In /var/log/messages I get nothing, but it doesn't automount either.
Any ideas?
Thanks, James
HTH, cheers. l8er manfred -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
This should look like:
storage -tcp,rw,hard,intr,rsize=32768,wsize=32768 192.168.0.22:/storage mythtv -tcp,rw,hard,intr,rsize=32768,wsize=32768 192.168.0.16:/mythtv
With this map, you can access e.g. 192.168.0.22:/storage at /home/user/shares/storage .
Of course, the "tcp", "rsize=" and "wsize=" options depend on your actual network settings.
I tried this and if I make auto.shares NOT executable, then I get these errors in the log file when I try to access the mount: Aug 3 10:32:18 user-8710w automount[15947]: lookup_nss_mount: key "storage" not found in map. Aug 3 10:32:19 user-8710w automount[15947]: lookup_nss_mount: key "mythtv" not found in map. That's what I got before as well, and googled it. Came across someone saying make it executable. That takes the errors away, but things still don't work.
You can find all the details about the autofs *maps* in autofs(5).
Yeah, went through the man page and only got so far. Thanks, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi James, On Mon, 03 Aug 2009, 16:38:32 +0200, James Pifer wrote:
This should look like:
storage -tcp,rw,hard,intr,rsize=32768,wsize=32768 192.168.0.22:/storage mythtv -tcp,rw,hard,intr,rsize=32768,wsize=32768 192.168.0.16:/mythtv
With this map, you can access e.g. 192.168.0.22:/storage at /home/user/shares/storage .
Of course, the "tcp", "rsize=" and "wsize=" options depend on your actual network settings.
I tried this and if I make auto.shares NOT executable, then I get these errors in the log file when I try to access the mount: Aug 3 10:32:18 user-8710w automount[15947]: lookup_nss_mount: key "storage" not found in map. Aug 3 10:32:19 user-8710w automount[15947]: lookup_nss_mount: key "mythtv" not found in map.
That's what I got before as well, and googled it. Came across someone saying make it executable. That takes the errors away, but things still don't work.
Dunno what you're doing wrong, but you must be doing something wrong because I just tested this on my systems and it worked OK! There were only two items I changed: /etc/auto.master: #+ I don't have this '+' entry; according to auto.master(5), the # + [map-type,format:]map[options] can be "included from its source # as if it were itself present in the master map; dunno if you have # such a "source"... /home/user/shares /etc/auto.shares # Use an absolute pathname for the mapfile
You can find all the details about the autofs *maps* in autofs(5).
Yeah, went through the man page and only got so far.
Thanks, James
HTH, cheers. l8er manfred -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Dunno what you're doing wrong, but you must be doing something wrong because I just tested this on my systems and it worked OK! There were only two items I changed:
Me neither. Commented out the +... in auto.master. Still same result. James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 03 Aug 2009, 17:24:11 +0200, James Pifer wrote:
Dunno what you're doing wrong, but you must be doing something wrong because I just tested this on my systems and it worked OK! There were only two items I changed:
Me neither. Commented out the +... in auto.master. Still same result.
Did you actually restart the autofs service? Changes to the maps are accomodated on the fly, but changes to /etc/auto.master require a /etc/init.d/autofs restart
James
Cheers. l8er manfred -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2009-08-03 at 17:36 +0200, Manfred Hollstein wrote:
On Mon, 03 Aug 2009, 17:24:11 +0200, James Pifer wrote:
Dunno what you're doing wrong, but you must be doing something wrong because I just tested this on my systems and it worked OK! There were only two items I changed:
Me neither. Commented out the +... in auto.master. Still same result.
Did you actually restart the autofs service? Changes to the maps are accomodated on the fly, but changes to /etc/auto.master require a
/etc/init.d/autofs restart
Yes, I stopped and started it. James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
2009/8/3 James Pifer <jep@obrien-pifer.com>:
On Sat, 2009-08-01 at 19:09 -0400, Ciro Iriarte wrote:
AutoFS might be a good option too, it will mount the share on demand (each time a user requests to access the mount point.
Regards, Ciro
Trying autofs. No luck getting it to work so far. Looking at the man page and google, but not sure what I'm doing wrong.
My auto.master has: # # Sample auto.master file # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # For details of the format look at autofs(5). # #/misc /etc/auto.misc # # NOTE: mounts done from a hosts map will be mounted with the # "nosuid" and "nodev" options unless the "suid" and "dev" # options are explicitly given. # #/net -hosts # # Include central master map if it can be found using # nsswitch sources. # # Note that if there are entries for /net or /misc (as # above) in the included master map any keys that are the # same will not be seen as the first read key seen takes # precedence. # +auto.master /home/user/shares auto.shares
I created an executable /etc/auto.shares and it has: storage rw 192.168.0.22:/storage mythtv rw 192.168.0.16:/mythtv
Start the autofs service.
In /var/log/messages I get nothing, but it doesn't automount either.
Any ideas?
Thanks, James
Did you try to access /home/user/shares/storage or /home/user/shares/mythtv ?, they won't be mounted until you try to access them (try ls $dir).... They'll be unmounted 60 seconds after the last process releases any open file. Regards, -- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Pifer wrote:
On Sat, 2009-08-01 at 19:09 -0400, Ciro Iriarte wrote:
AutoFS might be a good option too, it will mount the share on demand (each time a user requests to access the mount point.
Regards, Ciro
Trying autofs. No luck getting it to work so far. Looking at the man page and google, but not sure what I'm doing wrong.
My auto.master has: # # Sample auto.master file # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # For details of the format look at autofs(5). # #/misc /etc/auto.misc # # NOTE: mounts done from a hosts map will be mounted with the # "nosuid" and "nodev" options unless the "suid" and "dev" # options are explicitly given. # #/net -hosts # # Include central master map if it can be found using # nsswitch sources. # # Note that if there are entries for /net or /misc (as # above) in the included master map any keys that are the # same will not be seen as the first read key seen takes # precedence. # +auto.master /home/user/shares auto.shares
I created an executable /etc/auto.shares and it has: storage rw 192.168.0.22:/storage mythtv rw 192.168.0.16:/mythtv
Start the autofs service.
In /var/log/messages I get nothing, but it doesn't automount either.
Any ideas?
Thanks, James
Do you have a direcotry /home/users/shares? storage rw 192.168.0.22:/storage mythtv rw 192.168.0.16:/mythtv Should be storage 192.168.0.22:/storage mythtv 192.168.0.16:/mythtv I suggest you change the following line #/net -hosts /net /etc/auto.net If it is properly configured then you should be able to do the following: ls /net/192.168.0.22 It should list the shared directory. -- Joseph Loo jloo@acm.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Ciro Iriarte
-
James Pifer
-
jdd (kim2)
-
Joseph Loo
-
Manfred Hollstein