Share your knowledge at the LQ Wiki.
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 04-03-2005, 05:48 PM   #1
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Rep: Reputation: 30
NFS Broke my Router and DNS Server?

Hey guys,

That's a bit of a vague subject line - sorry.

Ok here's the setup:

OpenBSD 3.6 Router
OpenBSD 3.6 DNS Cacher
FreeBSD 5.4 PRERELEASE Fileserver


I wanted to get the ports and the source for OpenBSD somewhere on my network as none of my OBSD boxes has enough hard drive space to store it. To get around this problem I decided to setup an NFS share on my FreeBSD fileserver (plenty of spare space on there).

Everything was going well. I had the ports tree stored on the FreeBSD box under /OBSD. Then I added a line to the OBSD fstabs which read:

fileserver:/OBSD/usr/src /usr/src nfs 1 2 - the line was essentially slab copied from the handbook. (The above line is a quick guess as what I had - may not be exact).

When it came time to reboot the Dns server I did this thinking everything would be fine. When partitions were being mounted during boot I receive an error to the effect of "the nfs partition has unexpected inconsistencies."

I was then reduced to single user mode. Using vi I went into the fstab file and commented out the nfs line - rebooted and everything came up. HOWEVER, my DNS cacher fails to do any lookups. My DNS cacher is/was running djbdns to do its job. I was contemplating rebuilding it anyway with a different package to see which I preferred. Due to this, the DNS server doesn't bother me. The thing that has be in a bind is that I forgot to remove the nfs line from the router. Low and behold, we lost power and the router rebooted and came up with the same error. I went into the fstab and commented out the line and up she came. BUT, the router won't route. The router can ping the network and the router can ping the Internet. The network clients can ping the router but they can't ping outside to the Internet. I rebooted the router again and watched carefully - everything seems in place - including the routing lines - i.e. the lines saying that the box is routing from one nic to the other as it should be.

Furthermore, the router is also my dhcp server - and dhcp is working fine - afaict.

I don't know where to take it from here. That router was a royal pain in the a$$ to configure. I REALLY don't want to rebuild it. I don't know whether I should attempt to get the nfs working again and see if that fixes things or whether I should get everything else working stand alone before I use nfs. PLEASE help me as currently the network is effectively offline and that's *bad*.

Any help would be greatly appreciated. I have no idea why the box won't route - nor why the DNS cacher wouldn't lookup. The cacher as I said doesn't bother me. I've started rebuilding it anyway.

Please help me,

Thanks in Advance,

Please help guys, even step by step help on how to configure the nfs correctly may be a start. Or any ideas as to what broke woule be fantastic.


Last edited by Gsee; 04-05-2005 at 01:51 AM.
Old 04-05-2005, 07:18 AM   #2
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
I'll skip the formalities since with 2 OBSD machines and 1 FBSD you *surely* have a clue about what it is you're doing.

NFS is just like the handbook says so far as I know. Edit /etc/exports, HUP mountd and mount the export on the client. Linux's NFS implimentation doesn't always play well with others (big surprise) but I've never had problems from BSD to BSD (though the *exact* error would help a lot, obviously).

As for why that would hose up the DNS on one machine and the routing table on another ... I can't think of any way that it could happen, but if something comes to me, I'll post back.

Oh yeah, and your fstab should look like this:
fileserver:/OBSD/usr/src /usr/src nfs 0 0
You don't want the filesystem dumped or fscked at boot time...

Last edited by sigsegv; 04-05-2005 at 07:23 AM.
Old 04-08-2005, 01:30 AM   #3
Registered: Mar 2004
Location: Australia
Distribution: FreeBSD, OpenBSD, Gentoo, Debian
Posts: 153

Original Poster
Rep: Reputation: 30
I still have no clues as to what happened to my two OBSD boxes but in the end I've ended up rebuilding them from scratch. Was probably due to be done and good for the practice. Would still be good to find out what went wrong?

Thanks for your reply sigsegv - much appreciated and I'll keep it in mind when it comes time to setting up nfs this time round *trembles in boots*



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
DNS Server not working on Linux Router Trano Linux - Networking 5 04-21-2005 01:41 PM
Setup NFS now Samba broke tkman Linux - Networking 2 04-10-2005 03:54 PM
DNS server on redhat 9 with a router sairam71 Linux - Networking 3 12-29-2004 05:30 PM
DNS server setup behind router goodman Linux - Networking 2 04-30-2004 03:42 AM
DNS server configuration with router??? deepika Linux - Networking 10 09-24-2003 02:40 PM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 08:46 AM.

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