Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS = Can't copy files
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
getchoo
n00b
n00b


Joined: 19 Sep 2006
Posts: 38
Location: Alberta, Canada

PostPosted: Wed Feb 21, 2007 2:23 am    Post subject: NFS = Can't copy files Reply with quote

Problem:
I can mount the nfs share just fine--
/etc/exports (on host):
/mnt/hdb3 192.168.1.10/255.255.255.0(no_subtree_check,async,rw)

but when I try to copy a file onto the client machine from the host machine, it just hangs, and ^c won't interrupt it. No matter what. It creates a zero size file on the client machine with the same name, but just hangs.

What could the problem be? :?
Back to top
View user's profile Send private message
sobaka
n00b
n00b


Joined: 03 Oct 2004
Posts: 26
Location: Riyadh

PostPosted: Wed Feb 21, 2007 9:21 am    Post subject: Reply with quote

Have you installed and started portmap on both computers?

/sobaka
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Wed Feb 21, 2007 10:14 am    Post subject: Reply with quote

getchoo,

when mounting the nfs volume, try adding "wsize=8192,rsize=8192,hard,intr" to the mount options.


HTH,

Christian
Back to top
View user's profile Send private message
getchoo
n00b
n00b


Joined: 19 Sep 2006
Posts: 38
Location: Alberta, Canada

PostPosted: Wed Feb 21, 2007 1:04 pm    Post subject: Reply with quote

Thanks for the responses.

Portmap is installed on both computers. Fstab options didn't work.

And strangely, not sure what I did but I can no longer list /mnt/nfsshare. It just hangs there without listing
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Thu Feb 22, 2007 7:21 am    Post subject: Reply with quote

Have you looked at your logfiles on both client and server? Look for messages from portmap, rpc.mountd, rpc.statd and mount.
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 732
Location: Winnipeg, Canada

PostPosted: Thu Feb 22, 2007 9:55 am    Post subject: Re: NFS = Can't copy files Reply with quote

getchoo wrote:
Problem:
I can mount the nfs share just fine--
/etc/exports (on host):
/mnt/hdb3 192.168.1.10/255.255.255.0(no_subtree_check,async,rw)

but when I try to copy a file onto the client machine from the host machine, it just hangs, and ^c won't interrupt it. No matter what. It creates a zero size file on the client machine with the same name, but just hangs.

What could the problem be? :?


the exports file only accepts a filesystem path as a valid export not a raw block device . also the default behavior for nfsd is sync io which will yeild much faster transfers. here's an example of a valid export I use on one of my racked systems on my lan :)
Code:
silicon etc # cat /etc/exports
# /etc/exports: NFS file systems being exported.  See exports(5).
/home/ali3n 192.168.0.210(rw,no_root_squash,no_all_squash,sync)

_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
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