View previous topic :: View next topic |
Author |
Message |
getchoo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Sep 2006 Posts: 38 Location: Alberta, Canada
|
Posted: Wed Feb 21, 2007 2:23 am Post subject: NFS = Can't copy files |
|
|
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? ![Confused :?](images/smiles/icon_confused.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sobaka n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Oct 2004 Posts: 26 Location: Riyadh
|
Posted: Wed Feb 21, 2007 9:21 am Post subject: |
|
|
Have you installed and started portmap on both computers?
/sobaka |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
chrbecke Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/133843925942304840de767.jpg)
Joined: 12 Jul 2004 Posts: 598 Location: Berlin - Germany
|
Posted: Wed Feb 21, 2007 10:14 am Post subject: |
|
|
getchoo,
when mounting the nfs volume, try adding "wsize=8192,rsize=8192,hard,intr" to the mount options.
HTH,
Christian |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
getchoo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Sep 2006 Posts: 38 Location: Alberta, Canada
|
Posted: Wed Feb 21, 2007 1:04 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
chrbecke Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/133843925942304840de767.jpg)
Joined: 12 Jul 2004 Posts: 598 Location: Berlin - Germany
|
Posted: Thu Feb 22, 2007 7:21 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ali3nx l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/169852878743a961fa2128e.gif)
Joined: 21 Sep 2003 Posts: 732 Location: Winnipeg, Canada
|
Posted: Thu Feb 22, 2007 9:55 am Post subject: Re: NFS = Can't copy files |
|
|
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? ![Confused :?](images/smiles/icon_confused.gif) |
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 |
|
![](templates/gentoo/images/spacer.gif) |
|