|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
NFS Troubles!!
Hi everyone I am currently having NFS set up trouble.
To give you a little background knowledge, I am trying to nfs on these computers: 192.168.1.66 the server 192.168.1.71 is the client. This is my /etc/exports on 192.168.1.66 Code:
/usr/mount/350gb/ -maproot=disappearedng -alldirs -network 192.168.1.71 showmount -e produces: Code:
Exports list on localhost: /usr/mount/350gb/ 192.168.1.71 rpcbind_enable="YES" nfs_server_enable="YES" mountd_flags="-r" in my /etc/rc.conf On 192.168.1.71, I have done # nfsiod -n 4 and this is what I get when I try to mount Code:
$sudo mount_nfs 192.168.1.66:/usr/mount/350gb /usr/imports/ Password: [udp] 192.168.1.66:/usr/mount/350gb: Permission denied ... Code:
# Device Mountpoint FStype Options Dump Pass# /dev/ad4s4b none swap sw 0 0 /dev/ad4s4a / ufs rw 1 1 /dev/ad4s4e /tmp ufs rw 2 2 /dev/ad4s4f /usr ufs rw 2 2 /dev/ad4s4d /var ufs rw 2 2 /dev/ad4s1d /usr/mount/50gb ufs rw 2 2 /dev/ad4s2d /usr/mount/350gb ufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 And how do I restart my nfsdaemon??? Do I need to restart mountd, nfsd and what else whenever I change /etc/exports and if yes, how do I do it? (I know you can do this by sudo /etc/rc.d/nfsd stop) Thx |
|
|||
I see no log output - have you looked at the logs?
__________________
"No, that's wrong, Cartman. But don't worry, there are no stupid answers, just stupid people." -- Mr. Garrison Forum Netiquette |
|
|||
I don't know how the logs will help me diagnose the problem...
How do you go about that? If yes, which logs should I look at? If the nfs server was NOT successfully connected, will logs be useful?? |
|
|||
How about /var/log/messages in server.
|
|
|||
OK I will take a look at that. (But I doubt i really will be able to find anything interesting there.)
Is there anything wrong with my /etc/exports? I hear that you can only export a location where it's the root of a partition. Is that true? Notice that I have -maproot=disappearedng -alldirs -network on my /etc/exports. What exactly does maproot do? Does it enable root privileges to disappearedng? If i did not have that there, does that mean that my disappearedng on the client side does not have root privileges? Can disappearedng still be able to write on the exported driver even if maproot is off? |
|
|||
Remove all fancy options and try again. Once it's working add configuration options you need. Note, in most cases root access with root rights to network volumes is discouraged. Root account is a local administration account after all.
|
|
|||
OK i have removed all the fancy options right now to simplify things:
now my /etc/exports looks like: Code:
/usr/mount/350gb/ 192.168.1.71 Code:
#NFS rpcbind_enable="YES" nfs_server_enable="YES" mountd_flags="-r" Code:
Sep 11 14:15:23 savecore: no dumps found Sep 11 14:15:24 root: /etc/rc: WARNING: $dbus_enable is not set properly - see rc.conf(5). Sep 11 14:15:25 avahi-daemon[832]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns! Sep 11 14:15:27 kernel: drm0: <Intel i945G> on vgapci0 Sep 11 14:15:27 kernel: info: [drm] AGP at 0xd0000000 256MB Sep 11 14:15:27 kernel: info: [drm] Initialized i915 1.5.0 20060119 Sep 11 14:15:27 kernel: drm0: [ITHREAD] Sep 11 14:16:08 console-kit-daemon[945]: GLib-CRITICAL: g_hash_table_lookup: assertion `hash_table != NULL' failed Sep 11 14:16:08 console-kit-daemon[945]: GLib-CRITICAL: g_hash_table_destroy: assertion `hash_table != NULL' failed Sep 11 14:17:07 mountd[686]: mount request denied from 192.168.1.71 for /usr/mount/350gb Sep 11 14:17:28 mountd[686]: mount request denied from 192.168.1.71 for /usr/mount/350gb Sep 11 14:18:56 su: BAD SU disappearedng to root on /dev/ttyp1 Sep 11 14:18:59 su: disappearedng to root on /dev/ttyp1 Sep 11 14:21:03 mountd[686]: mount request denied from 192.168.1.71 for /usr/mount/350gb Code:
Exports list on localhost: /usr/mount/350gb/ 192.168.1.71 Code:
sudo mount_nfs 192.168.1.66:/usr/mount/350gb/ /usr/imports/ [udp] 192.168.1.66:/usr/mount/350gb: Permission denied |
|
|||
Did you restart NFSD after changing exports file. Not sure if it changes anything, but I've never used trailing slash myself. /usr/mount/350gb maybe?
Snippet from my rc.conf Code:
rpcbind_enable="YES" nfs_server_enable="YES" nfs_server_flags="-t -n 6 -h 192.168.2.254" mountd_flags="-r" rpc_lockd_enable="YES" rpc_statd_enable="YES" Code:
/usr/local/www -network 192.168.2.0 -mask 255.255.255.0 /usr/local/portage -maproot=root -network 192.168.2.0 -mask 255.255.255.0 Last edited by Speedy; 11th September 2008 at 07:06 PM. |
|
|||
OK I think I might have discovered some problems>
So now my /etc/rc.conf is: Code:
rpcbind_enable="YES" nfs_server_enable="YES" mountd_flags="-r" rpc_lockd_enable="YES" rpc_statd_enable="YES" Code:
/usr/mount/350gb/ -mapall=root 192.168.1.71 Code:
Sep 11 18:13:05 mountd[687]: mount request from 192.168.1.71 from unprivileged port Sep 11 18:13:21 mountd[687]: mount request denied from 192.168.1.71 for /usr/mount/350gb Sep 11 18:15:22 nfsd[1503]: can't bind udp addr *: Address already in use Sep 11 18:15:32 nfsd[1513]: can't bind udp addr *: Address already in use Sep 11 18:16:52 nfsd[1567]: can't bind udp addr *: Address already in use and when I do the following on the client, I get Code:
[disappearedng@ ~]$ sudo mount_nfs 192.168.1.66:/usr/mount/350gb/ /usr/imports/ [udp] 192.168.1.66:/usr/mount/350gb: RPCPROG_NFS: RPC: Program not registered [udp] 192.168.1.66:/usr/mount/350gb: RPCPROG_NFS: RPC: Program not registered [udp] 192.168.1.66:/usr/mount/350gb: RPCPROG_NFS: RPC: Program not registered [udp] 192.168.1.66:/usr/mount/350gb: RPCPROG_NFS: RPC: Program not registered [udp] 192.168.1.66:/usr/mount/350gb: RPCPROG_NFS: RPC: Program not registered [udp] 192.168.1.66:/usr/mount/350gb: RPCPROG_NFS: RPC: Program not registered [udp] 192.168.1.66:/usr/mount/350gb: RPCPROG_NFS: RPC: Program not registered |
|
|||
THANKS TO EVIL TOAST ON FreeBSDhelp on EFNET,
I found the problem In my /etc/exports, I have /usr/mount/350gb/ it's supposed to be /usr/mount/350gb (without the slash!!!) !!! OMG this is so unbelievable |
|
|||
Isn't this what I wrote in post #8? I've noticed before people do not read what I write. Gotta be something wrong with me ... maybe I just do not belong here ...
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Matlab R2008b via linuxulator in FreeBSD, Installation Troubles | ninjatux | FreeBSD General | 2 | 24th March 2009 04:23 AM |
window manager troubles | techmarks | FreeBSD General | 3 | 29th September 2008 10:19 PM |
Opera Widget Javascript Troubles | thejosephgrace | General software and network | 6 | 3rd August 2008 01:34 PM |