Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have the following in /etc/fstab on FreeBSD:

venture:/usr/redacted    /usr/local/redacted   nfs     rw      0       0

This fails during boot. However, after boot, the following command succeeds

mount -t nfs venture:/usr/redacted /usr/local/redacted

Two related questions:

1) last time I rebooted at the console (this machine is in a datacenter), I'm pretty sure I saw an explanatory message at boot time regarding the failure to mount. I think it had something to do with resolving the hostname. However, this message does not appear in /var/log/messages with other boot-time messages; is there someplace else I should be looking?

2) Any thoughts about what could be preventing the hostname from resolving at boot time, but no problem 30 seconds later from the command prompt?

share|improve this question
3  
Maybe its trying to mount before a local name service of some sort is up? (Local DNS server, etc.) –  derobert Mar 8 '13 at 18:39
    
Heh. Good thought. I was going to respond that "venture" is in the hosts file, but I checked and, no, it isn't. The local DNS server is dnscache, started by svscan late in the boot process, so I bet that's the problem. I'm adding venture to the hosts file for now and we'll see after next reboot whether that fixes the problem. Meanwhile, I'm still interested in an answer (if there is one) to my logging question. –  davidcl Mar 8 '13 at 19:17
1  
No thoughts on the logging issue. I just think that a better solution to your mount failure problem is to start the nfs client after any networking services. Worked for me in the past... If that isn't an option, a dirty workaround that also helped me before is to add this to your /etc/rc.local: mountpoint /usr/redacted || mount /usr/redacted –  Joseph R. Mar 8 '13 at 21:44
    
@Joseph R: I'm not sure how to make a system service in /etc/rc.d start after a local service in /usr/local/etc/rc.d –  davidcl Mar 8 '13 at 22:16
    
Which version of FreeBSD are you using? –  Carpetsmoker Mar 9 '13 at 23:34

1 Answer 1

This might help, my etc/fstab looks like this for FreeBSD 9.1

/dev/gpt/swap0  none    swap    sw  0   0
tmpfs   /tmp    tmpfs   rw,size=228608000   0   0
linproc /compat/linux/proc  linprocfs   rw  0   0

192.168.1.15:/Network/distfiles /usr/ports/distfiles nfs rw,tcp,intr,noatime,nfsv3,wsize=262144,rsize=262144 0 0
192.168.1.15:/Network/packages /Network/packages nfs rw,tcp,intr,noatime,nfsv3,wsize=262144,rsize=262144 0 0
192.168.1.15:/Network/tv /Network/tv nfs rw,tcp,intr,noatime,nfsv3,wsize=262144,rsize=262144 0 0
192.168.1.15:/Network/iso /Network/iso nfs rw,tcp,intr,noatime,nfsv3,wsize=262144,rsize=262144 0 0
192.168.1.15:/Network/wow /Network/wow nfs rw,tcp,intr,noatime,nfsv3,wsize=262144,rsize=262144 0 0
192.168.1.15:/Network/music /Network/music nfs rw,tcp,intr,noatime,nfsv3,wsize=262144,rsize=262144 0 0
192.168.1.15:/Network/public /Network/public nfs rw,tcp,intr,noatime,nfsv3,wsize=262144,rsize=262144 0 0
192.168.1.15:/Network/home/sfourman /Network/home/sfourman nfs rw,tcp,intr,noatime,nfsv3,wsize=262144,rsize=262144 0 0
192.168.1.15:/Network/home/fourmannetworks /Network/home/fourmannetworks nfs rw,tcp,intr,noatime,nfsv3,wsize=262144,rsize=262144 0 0
share|improve this answer
    
I am not sure if this really answers the question. Can you maybe elaborate a bit on how this answers the question? –  Bernhard Apr 5 '13 at 17:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.