Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
shfs vs nfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Sat Jul 03, 2004 6:54 am    Post subject: shfs vs nfs Reply with quote

Anyone mind sharing your experience with replacing nfs with shfs.

I currently use nfs to share /home, /usr/portage and /usr/local/portage. When portmap die on the server, all my clients are frozen, including the server itself, so I must reboot it.

I was thinking to replace nfs with Coda, but when I heard about shfs, I tought this was very cool.

Any pros and cons are welcome. I'd like to know.
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
jdgill0
Veteran
Veteran


Joined: 25 Mar 2003
Posts: 1366
Location: Lexington, Ky -- USA

PostPosted: Sat Jul 03, 2004 7:41 am    Post subject: Re: shfs vs nfs Reply with quote

Quote:
I currently use nfs to share /home, /usr/portage and /usr/local/portage. When portmap die on the server, all my clients are frozen, including the server itself, so I must reboot it.

In your fstab add these options:
Code:
rw,hard,intr

Do you have the intr option? It is suppose to allow interupting nfs in case the nfs server goes down or nfs dies for some reason. At least that is my understanding.

Quote:
Anyone mind sharing your experience with replacing nfs with shfs.

I just learned of shfs myself a few days ago. It definitely has its uses, however I learned something tonight about it that will keep me from replacing my nfs setup with it.

Let me explain with an example:
Suppose you have created a shfs mount from computer A to computer B. Now if you move,copy, etc a file on computer A to another location on computer A, it will actually transfer the file through computer B as opposed to doing a direct copy, move, etc on the remote computer A.

This may not be that noticable on a local home network, and if you strictly move, copy, etc files between computers A and B it does not make a difference.

Other than this, I have already been using it to make life easier from my computer to another computer over the internet, i.e. you can mount directories from ANY computer you have access to which also has a ssh server running. I love it for this purpose.
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Sat Jul 03, 2004 7:51 am    Post subject: Re: shfs vs nfs Reply with quote

jdgill0 wrote:
Do you have the intr option?
Nope. Only defaults. I will add those after I know what they actually do. [EDIT] added rsize=8192,wsize=8192,intr[/EDIT]

jdgill0 wrote:
Suppose you have created a shfs mount from computer A to computer B. Now if you move,copy, etc a file on computer A to another location on computer A, it will actually transfer the file through computer B as opposed to doing a direct copy, move, etc on the remote computer A.

This may not be that noticable on a local home network, and if you strictly move, copy, etc files between computers A and B it does not make a difference.
I don't get it. Do you mean, like if you copy files remote to remote, it will go thrue your computer over the link? That could be understandable. But if you mean that copying files from local to local will go thrue a remote mounted folder, I don't get it.

jdgill0 wrote:
I have already been using it to make life easier from my computer to another computer over the internet, i.e. you can mount directories from ANY computer you have access to which also has a ssh server running. I love it for this purpose.
Yes, I tought about that, provided you have the right to insert modules on the machine you use.
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
jdgill0
Veteran
Veteran


Joined: 25 Mar 2003
Posts: 1366
Location: Lexington, Ky -- USA

PostPosted: Sat Jul 03, 2004 8:04 am    Post subject: Reply with quote

Quote:
I don't get it. Do you mean, like if you copy files remote to remote, it will go thrue your computer over the link? That could be understandable. But if you mean that copying files from local to local will go thrue a remote mounted folder, I don't get it.

Yea, I only meant when you manipulate files on the remote machine it will go through your computer over the link, which is indeed "understandable." I just did not think about it doing that until I tried duplicating a large file on the remote machine.

As for local file manipulation, shfs has no effect on it.

Overall, I like shfs and have begun using it a lot. But I am not sure I will replace nfs with it.
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Sat Jul 03, 2004 8:10 am    Post subject: Reply with quote

jdgill0 wrote:
...which is indeed "understandable."
I did not check, but I'm pretty sure it's the same with nfs. You need a cpu to move bits around and if it's behind a network, those bits are going to do a round trip.

jdgill0 wrote:
Overall, I like shfs and have begun using it a lot. But I am not sure I will replace nfs with it.
I was wondering about speed, mainly, and maybe other issues I could have not think about.
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum