2013-08-22
Slitaz -- nfs
1.
root@slitaz:~# cat /etc/exports
/home/nfs *(rw,subtree_check,fsid=0)
/media/data-ln/armhf *(rw,subtree_check)
2.
root@slitaz:~# netstat -nltup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:58767 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 3270/rpcbind
tcp 0 0 0.0.0.0:33617 0.0.0.0:* LISTEN 3281/rpc.mountd
tcp 0 0 :::111 :::* LISTEN 3270/rpcbind
tcp 0 0 :::80 :::* LISTEN 1039/httpd
tcp 0 0 :::82 :::* LISTEN 979/httpd
tcp 0 0 :::56852 :::* LISTEN -
udp 0 0 0.0.0.0:2049 0.0.0.0:* -
udp 0 0 0.0.0.0:111 0.0.0.0:* 3270/rpcbind
udp 0 0 0.0.0.0:51862 0.0.0.0:* -
udp 0 0 0.0.0.0:49840 0.0.0.0:* 3281/rpc.mountd
udp 0 0 0.0.0.0:901 0.0.0.0:* 3270/rpcbind
udp 0 0 :::111 :::* 3270/rpcbind
udp 0 0 :::53927 :::* -
udp 0 0 :::901 :::* 3270/rpcbind
3.
root@slitaz:~# showmount -a
All mount points on slitaz:
192.168.0.102:/home/nfs
192.168.0.102:/media/data-ln/armhf
4.
root@slitaz:~# mount | tail -4
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sda9 on /media/data-ln type ext3 (rw,nosuid,nodev,noexec,noatime,errors=continue,barrier=1,data=ordered)
192.168.00.102:/media/data-ln/armhf on /mnt/armhf type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=2049,timeo=70,retrans=3,sec=sys,local_lock=none,addr=192.168.0.102)
192.168.0.102:/home/nfs on /mnt/nfs/home type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=2049,timeo=70,retrans=3,sec=sys,local_lock=none,addr=192.168.0.102)
root@slitaz:~#
5.
root@slitaz:~# ls -l /mnt/nfs/home
total 8
-rw-r--r-- 1 root root 869 Aug 22 22:43 nfs-segfault
-rw-r--r-- 1 root root 75 Aug 22 22:42 uname-a
root@slitaz:~# mount > /mnt/nfs/home/nfs-mount
root@slitaz:~# ls -l /mnt/nfs/home
total 12
-rw-r--r-- 1 65534 65534 986 Aug 22 22:48 nfs-mount
-rw-r--r-- 1 root root 869 Aug 22 22:43 nfs-segfault
-rw-r--r-- 1 root root 75 Aug 22 22:42 uname-a
root@slitaz:~# cat /mnt/nfs/home/nfs-mount
rootfs on / type rootfs (rw)
tmpfs on /run type tmpfs (rw,relatime)
tmpfs on / type tmpfs (rw,relatime,size=3004872k)
proc on /proc type proc (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1633896k,nr_inodes=201123,mode=755)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,relatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sda9 on /media/data-ln type ext3 (rw,nosuid,nodev,noexec,noatime,errors=continue,barrier=1,data=ordered)
192.168.00.102:/media/data-ln/armhf on /mnt/armhf type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=2049,timeo=70,retrans=3,sec=sys,local_lock=none,addr=192.168.0.102)
192.168.0.102:/home/nfs on /mnt/nfs/home type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=2049,timeo=70,retrans=3,sec=sys,local_lock=none,addr=192.168.0.102)
root@slitaz:~#