2006-03-07 15:03:50

by Vijay Chauhan

[permalink] [raw]
Subject: mounting NFS with TCP option

Hi,
im mounting a remote file system like this:
while [ "a" == "a" ];
do
mount -t nfs -o tcp server:/file-system-path /mnt-point
umount -at nfs
done

after few mounts it stop mounting the file system.

Can anyone give any hints/suggestion
Also does tcp have any effect in this case?

TIA,
Vijay


Attachments:
(No filename) (295.00 B)
(No filename) (498.00 B)
Download all attachments

2006-03-13 03:42:21

by Ian Kent

[permalink] [raw]
Subject: Re: mounting NFS with TCP option

On Tue, 7 Mar 2006, Vincent Roqueta wrote:

> Le Mardi 7 Mars 2006 16:03, Vijay Chauhan a ?crit?:
> > Hi,
> > im mounting a remote file system like this:
> > while [ "a" == "a" ];
> > do
> > mount -t nfs -o tcp server:/file-system-path /mnt-point
> > umount -at nfs
> > done
> >
> > after few mounts it stop mounting the file system.
> >
> > Can anyone give any hints/suggestion
> > Also does tcp have any effect in this case?
> >
> > TIA,
> > Vijay
>
> Sorry... I haven't seen you where unmounting between each mount/umount.
> TCP port need a few seconds to be freed and reusable so :

60 seconds.

>
> Try this :
> while [ "a" == "a" ];
> do
> mount -t nfs -o tcp server:/file-system-path /mnt-point
> sleep 2
> umount -at nfs
> done
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd_______________________________________________
> NFS maillist - [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs
>

2006-03-07 15:10:19

by Vincent Roqueta

[permalink] [raw]
Subject: Re: mounting NFS with TCP option

Le Mardi 7 Mars 2006 16:03, Vijay Chauhan a =E9crit=A0:
> Hi,
> im mounting a remote file system like this:
> while [ "a" =3D=3D "a" ];
> do
> mount -t nfs -o tcp server:/file-system-path /mnt-point
> umount -at nfs
> done
>
> after few mounts it stop mounting the file system.
>
> Can anyone give any hints/suggestion
> Also does tcp have any effect in this case?
>
> TIA,
> Vijay

To many port used?
Each time you perform a mount with NFSv3 you open a new tcp port. if there =
is=20
no more tcp port avalaible, mount fails.


Vincent


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2006-03-07 15:11:51

by Vincent Roqueta

[permalink] [raw]
Subject: Re: mounting NFS with TCP option

Le Mardi 7 Mars 2006 16:03, Vijay Chauhan a =E9crit=A0:
> Hi,
> im mounting a remote file system like this:
> while [ "a" =3D=3D "a" ];
> do
> mount -t nfs -o tcp server:/file-system-path /mnt-point
> umount -at nfs
> done
>
> after few mounts it stop mounting the file system.
>
> Can anyone give any hints/suggestion
> Also does tcp have any effect in this case?
>
> TIA,
> Vijay

Sorry... I haven't seen you where unmounting between each mount/umount.
TCP port need a few seconds to be freed and reusable so :

Try this :
while [ "a" =3D=3D "a" ];
do
mount -t nfs -o tcp server:/file-system-path /mnt-point
sleep 2
umount -at nfs
done


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs