Mailinglist Archive: opensuse-factory (600 mails)

< Previous Next >
[opensuse-factory] Factory NFSv4 kernel-server exports to "IP Network" ok, but exports 'empty'(no files or dirs) if just to "Single Host" ?
  • From: Ben DJ <bendj095124367913213465@xxxxxxxxx>
  • Date: Wed, 21 Oct 2009 19:27:49 -0700
  • Message-id: <babafd2f0910211927i7336a8f0x759b58c8d2336966@xxxxxxxxxxxxxx>
Hello,

I've installed NFSv4 kernel server on Factory RC1.

rpm -qa | grep -i nfs-kernel-server
nfs-kernel-server-1.1.3-20.1.x86_64
uname -ri
2.6.31.3-1-default x86_64

I've configured "/etc/exports" as

/nfs 192.168.1.0/24(ro,sync,fsid=0,no_subtree_check)
/nfs/myexport 192.168.1.0/24(ro,nohide,no_root_squash,sync,subtree_check)

After restarting everything, I can mount "/nfs/myexport" correctly.

ifconfig eth0 | grep addr:
inet addr:192.168.1.2 ...
mount -t nfs4 192.168.1.2:/myexport /mnt/test
ls -al /mnt/test
drwxr-xr-x 2 nobody nobody 4096 2009-08-12 20:08 ./
drwxr-xr-x 5 root root 4096 2009-10-20 19:55 ../
-rw-r--r-- 1 nobody nobody 1183 2009-08-12 20:08 blah1
-rw------- 1 nobody nobody 125811 2009-08-12 20:08 blah2
-rw-r--r-- 1 nobody nobody 2248 2009-08-12 20:08 blah3
-rw-r--r-- 1 nobody nobody 2010 2009-08-12 20:08 blah4

But, if I change "/etc/exports" to limit access to a SingleHost -- the
box I'm on,

- /nfs/myexport 192.168.1.0/24(ro,nohide,no_root_squash,sync,subtree_check)
+ /nfs/myexport 192.168.1.2(ro,nohide,no_root_squash,sync,subtree_check)

then I can still execute the mount

mount -t nfs4 192.168.1.2:/myexport /mnt/test
ls -al /mnt/test
drwxr-xr-x 2 nobody nobody 4096 2009-08-12 20:08 ./
drwxr-xr-x 5 root root 4096 2009-10-20 19:55 ../

but see NO files or directories in it.

Why does "IP Network" access work, but not "Single Host"? The exports
man page explains that both are OK "Machine Name Formats".

Thanks.

BenDJ
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages