NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Swap over NFS



	Hello,

	I'm trying to configure swap over NFS (on a diskless workstation).

	I have created a swapfile on nfsserver:/srv/schwarz/ (swapfile.0) and
added in client /etc/fstab :

nfsserver:/srv/schwarz/swapfile.0 none swap sw,nfsmntpt=/swap

	nfs server seems to run as expected as client can mount
nfsserver:/srv/schwarz in /

	But when I try to mount swap, sysctl returns an error :

schwarz# swapctl -A
mount_nfs: can't access /srv/schwarz/swapfile.0: Permission denied
swapctl: 192.168.10.128:/srv/schwarz/swapfile.0: mount failed

(192.168.10.128 is nfs server ip address, 192.168.10.106 is client one).

	NFS server export file is :

/home                   -network 192.168.10.0 -mask 255.255.255.0 \
                        -maproot=nobody
/srv/heisenberg         -network 192.168.10.101 -mask 255.255.255.255 \
                        -maproot=root
/srv/pythagore          -network 192.168.10.102 -mask 255.255.255.255 \
                        -maproot=root
/srv/hilbert            -network 192.168.10.103 -mask 255.255.255.255 \
                        -maproot=root
/srv/abel               -network 192.168.10.104 -mask 255.255.255.255 \
                        -maproot=root
/srv/thales             -network 192.168.10.105 -mask 255.255.255.255 \
                        -maproot=root
/srv/schwarz            -network 192.168.10.106 -mask 255.255.255.255 \
                        -maproot=root
/usr/src                -network 192.168.10.106 -mask 255.255.255.255 \
                        -maproot=root

	Some other informations :
schwarz# ls -l /
...
drwx------   2 root  wheel         512 Apr  2 10:29 swap
-rw-------   1 root  wheel  2097152000 Feb  4 18:50 swapfile.0
...

	I have try to put swapfile.0 on another nfs exported disk and I obtain
exactly same error (of course, I have modified /etc/exports and
restarted mountd) and I don't understand where is my mistake.

	Best regards,

	JB


Home | Main Index | Thread Index | Old Index