LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-27-2005, 03:16 PM   #1
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
broken NFS mount need configuration advice


Ok, so i've been having NFS troubles and i want to finally solve them. From what i've been testing i think the problem is in the configuration. I've tried two things:[list=1][*]Sending `echo "test" >> test.txt`
---------->worked fine[*]Sending 8 GB of data (of course i could have sent less,but this is what i want on the drive)
---------->cp -r <file> command hanged, doesnt respond. df also hangs terminal, doesnt respond. cannont umount[/list=1]
So my conclusions are that the problem must be in the packet sending size and thus the configuration. Here is my /etc/exports on my server file:
Code:
/var/www                 master(no_root_squash,rw,sync,insecure)
/mnt/raid                master(no_root_squash,rw,sync,insecure)
where master is an alias to my computer of course. My current mounting configuration (/etc/fstab) is:
Code:
server:/var/www   /mnt/web        nfs rw,users,noauto   0    0
server:/mnt/raid  /mnt/raid       nfs rw,users,noauto   0    0
From some exampls i'm seeing i probably should add some rsize= and wsize=, but not sure what would be the best size to send (saw an example with 8192 so i might just try that). You can also set it with nfsvers= and all these other things. I really dont know what settings would be best. This server basically holds music and video for playback, so if possible i'd want it configured for running not too big files constantly. Anyone have some advice on what would be the best settings to get this working? If anyone could also enlighten me more on how NFS works i'd be very pleased. reading man pages now, but an experienced user is always alot more valuable then any amount of man pages. Thanks.

Last edited by bobbens; 10-27-2005 at 03:17 PM.
 
Old 10-28-2005, 03:04 AM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Try to mount it by hand. RPC port mapper must be up. Look at your firewall rules.
I used to have some problems with NFS, but i solved it with new distro reinstallation or kernel compiling, so i can't help you much .
 
Old 10-28-2005, 03:24 AM   #3
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Linux.tar.gz
Try to mount it by hand. RPC port mapper must be up. Look at your firewall rules.
I used to have some problems with NFS, but i solved it with new distro reinstallation or kernel compiling, so i can't help you much .
I can mount it and umount it as much as i want by hand, but as soon as i send a big file it dies on me. I dont think a firewall can be a problem, because all this is running through LAN behind my firewall, so it doesnt have any interference.
I'd get a new kernel, but i'm having trouble on my main computer with newer ones, because the newer fglrx (ati radeon) drivers dont work on my computer as expected so i have to keep my current kernel which is the latest version that works with fglrx. So unless ati makes some decent drivers i cant upgrade kernel. I also have a real nice set up and don't want / need to change distro, and mainly it would just be a waste of time.
I had it working before fine, but in some upgrade it all broke. It could be because i am using Sarge on my server and SID on my main and theyre using different versions. I'll start experimenting this weekend unless someone can give me some good configuration advice to get it working.
 
Old 10-28-2005, 10:06 AM   #4
headlessb
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 16

Rep: Reputation: 0
Webmin

I've used a utility called webmin and I've liked it so far, it seems to have everything I need for everything networking related. Just use synaptic package manager or aptitude or even apt-get and look for webmin and webmin-exports. After you install it, you'll have to get to the interface which is on https://127.0.0.1:10000 and go to the networking section and look for NFS exports and it should be there. I hope this helps you out some.
 
Old 10-28-2005, 11:38 AM   #5
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Original Poster
Rep: Reputation: 30
Re: Webmin

Quote:
Originally posted by headlessb
I've used a utility called webmin and I've liked it so far, it seems to have everything I need for everything networking related. Just use synaptic package manager or aptitude or even apt-get and look for webmin and webmin-exports. After you install it, you'll have to get to the interface which is on https://127.0.0.1:10000 and go to the networking section and look for NFS exports and it should be there. I hope this helps you out some.
I've used webmin before, but i don't like it too much, and everything you can do in webmin you can do either better or the same manually. Also by doing things manually you tend to learn more about how this works. Just tell me what webmin settings you use and i can try to use them manually. Otherwise ill just spend time testing out different settings until it works or i get too tired after spending a long time working on it.
 
Old 10-28-2005, 05:40 PM   #6
headlessb
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 16

Rep: Reputation: 0
well, here's a site I found searching for info on NFS, although I'm sure you've seen it:

http://www.metaconsultancy.com/whitepapers/nfs.htm

I have no clue what the "master(no_root_squash,rw,sync,insecure)" is, at least from what I've seen from my config also, I havn't seen it before, even after running a google search on it. what does that "master()" function do?

here's my exports file

Quote:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/home/headlessb (rw)
I know I'm probably not much help, but I hope this helps a little bit ^^.
 
Old 10-29-2005, 04:22 PM   #7
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by headlessb
well, here's a site I found searching for info on NFS, although I'm sure you've seen it:

http://www.metaconsultancy.com/whitepapers/nfs.htm

I have no clue what the "master(no_root_squash,rw,sync,insecure)" is, at least from what I've seen from my config also, I havn't seen it before, even after running a google search on it. what does that "master()" function do?

here's my exports file

I know I'm probably not much help, but I hope this helps a little bit ^^.
master isn't a function, it's a alias for my computer's ip which is 192.168.2.9, but if i ever have to change it i can just change it in /etc/hosts and it'll update everything that uses that. the master() part allows only master to connect to that using the rw, sync, insecure and no_root_squash, which are the four different settings you can set (this from man).
Well that guide helps. Gives you some advice on the latter settings. I'm going to play around with it now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
Using PLIP to install Slack 10 - NFS broken db391 Linux - Laptop and Netbook 0 09-13-2004 06:33 AM
QT installation seems to be broken; need advice what to do qanopus Linux - Software 2 08-26-2004 03:26 PM
NFS broken IMustBe Stupid Linux - Networking 6 11-12-2002 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration