andrewb
Group: Members
Posts: 316
Joined: July 2005 |
|
Posted: June 16 2008,03:42 |
|
OK,
still not getting NFS to work. I have reduced the test to a single machine. I am using dsl v3.4.11, booted as 'dsl base norestore'. I am using the machine as both client & server to mount directory /home/dsl at /mnt/ttt. the sequence I am using is:
download nfs-kernel-server.dsl load nfs-kernel-server.dsl
run emelfm as root: set permissions for /home/dsl to rwx for all users & recurese subdirectories create /mnt/ttt & set permissions as above. edit /etc/exports: add "/home/dsl *(rw)" delete /etc/hosts.allow & deny copy contents of /etc/hosts (a symlinked file) to a new file in beaver & edit to add line "box 10.0.2.15" (ip of the machine). delete 'box' as hostname for 127.0.0.1 delete /etc/hosts save new file from beaver (above) as /etc/hosts
open root teminal:
Code Sample | [/mnt]# /etc/init.d/portmap start Starting portmap daemon: portmap. [/mnt]# /etc/init.d/nfs-common start Starting NFS common utilities: statd. [/mnt]# /etc/init.d/nfs-kernel-server start Exporting directories for NFS kernel daemon...done. Starting NFS kernel daemon: nfsd mountd. [/mnt]# showmount -e box Export list for box: /ramdisk/home/dsl *
|
modprobe nfs
showmount gives the same for box, localhost, 127.0.0.1 & 10.0.2.15
rpcinfo & mount then give:
Code Sample | [/mnt]# rpcinfo -p box program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 804 status 100024 1 tcp 807 status 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100021 1 udp 1024 nlockmgr 100021 3 udp 1024 nlockmgr 100021 4 udp 1024 nlockmgr 100021 1 tcp 1091 nlockmgr 100021 3 tcp 1091 nlockmgr 100021 4 tcp 1091 nlockmgr 100005 1 udp 1026 mountd 100005 1 tcp 1092 mountd 100005 2 udp 1026 mountd 100005 2 tcp 1092 mountd 100005 3 udp 1026 mountd 100005 3 tcp 1092 mountd [/mnt]# mount box:/home/dsl ttt mount: box:/home/dsl failed, reason given by server: Permission denied [/mnt]# mount box:/ramdisk/home/dsl ttt mount: box:/ramdisk/home/dsl failed, reason given by server: Permission denied
|
using localhost, 127.0.0.1 or 10.0.2.15 in place of box gives the same result.
Then tried adding hosts directly to /etc/exports i.e.:
Code Sample | /home/dsl *(rw) box(rw) localhost(rw) 10.0.2.15(rw) 127.0.0.1(rw) |
this then gave:
Code Sample | [/mnt]# exportfs -rav exportfs: duplicated export entries: exportfs: 10.0.2.15:/ramdisk/home/dsl exportfs: box:/ramdisk/home/dsl exportfs: duplicated export entries: exportfs: 127.0.0.1:/ramdisk/home/dsl exportfs: localhost:/ramdisk/home/dsl exporting localhost:/ramdisk/home/dsl exporting box:/ramdisk/home/dsl exporting *:/ramdisk/home/dsl exporting localhost:/ramdisk/home/dsl to kernel localhost:/ramdisk/home/dsl: Invalid argument exporting box:/ramdisk/home/dsl to kernel box:/ramdisk/home/dsl: Invalid argument [/mnt]# mount 10.0.2.15:/ramdisk/home/dsl ttt mount: 10.0.2.15:/ramdisk/home/dsl failed, reason given by server: Permission denied [/mnt]# |
??
|