Morning all, situation is as follows: OpenSolaris NFS server, Linux client. I''ve created a ZFS filesystem and shared it over NFS: -bash-3.2# zfs list | grep vz datatank/vz 126M 457G 126M /datatank/vz datatank/vz/private 37K 457G 19K /datatank/vz/private datatank/vz/private/28999 18K 457G 18K /datatank/vz/private/28999 datatank/vz/root 37K 457G 19K /datatank/vz/root datatank/vz/root/28999 18K 457G 18K /datatank/vz/root/28999 -bash-3.2# cat /etc/dfs/sharetab /datatank/vz/root/28999 - nfs anon=0,sec=sys,rw=@192.168.178.0/24 /datatank/vz/root - nfs anon=0,sec=sys,rw=@192.168.178.0/24 /datatank/vz/private - nfs anon=0,sec=sys,rw=@192.168.178.0/24 /datatank/vz/private/28999 - nfs anon=0,sec=sys,rw=@192.168.178.0/24 /datatank/vz - nfs anon=0,sec=sys,rw=@192.168.178.0/24 So far, so good. I can mount it on my linux machine: [root at node123 vz]# mount -t nfs 192.168.178.31:/datatank/vz on /vz type nfs (rw,addr=192.168.178.31) As you can see ,I''ve created a file system datatank/vz/root/28999, which should appear on the Linux client. It doesn''t: [root at node123 vz]# ls -l /vz/private/ total 0 It does on the server: -bash-3.2# ls -l /datatank/vz/private/ total 3 drwxr-xr-x 2 root root 2 May 18 09:21 28999 Can anyone give me some directions on this? This message posted from opensolaris.org
By the way. I can see directories I create in /datatank/vz, but the filesystems created under it, I can''t see. This message posted from opensolaris.org
Johan Kooijman wrote:> [root at node123 vz]# mount -t nfs > 192.168.178.31:/datatank/vz on /vz type nfs (rw,addr=192.168.178.31) > > As you can see ,I''ve created a file system datatank/vz/root/28999, which should appear on the Linux client. It doesn''t: > > [root at node123 vz]# ls -l /vz/private/ > total 0 > > It does on the server: > > -bash-3.2# ls -l /datatank/vz/private/ > total 3 > drwxr-xr-x 2 root root 2 May 18 09:21 28999 > > Can anyone give me some directions on this?They''re different filesystems. And you haven''t mounted them. So you can''t see them. That''s how NFS works. mount -t nfs 192.168.178.31:/datatank/vz/private/28999 /my/local/fs NFS v4 has some magic that may allow you to just traverse the filesystems (if the Linux client is featureful enough), but NFS v3 does not. -- Carson
On May 18, 2008, at 3:39 AM, Johan Kooijman wrote:> Morning all, > > situation is as follows: OpenSolaris NFS server, Linux client. > > I''ve created a ZFS filesystem and shared it over NFS: > > -bash-3.2# zfs list | grep vz > datatank/vz 126M 457G 126M /datatank/vz > datatank/vz/private 37K 457G 19K /datatank/ > vz/private > datatank/vz/private/28999 18K 457G 18K /datatank/ > vz/private/28999 > datatank/vz/root 37K 457G 19K /datatank/ > vz/root > datatank/vz/root/28999 18K 457G 18K /datatank/ > vz/root/28999 > > -bash-3.2# cat /etc/dfs/sharetab > /datatank/vz/root/28999 - nfs > anon=0,sec=sys,rw=@192.168.178.0/24 > /datatank/vz/root - nfs > anon=0,sec=sys,rw=@192.168.178.0/24 > /datatank/vz/private - nfs > anon=0,sec=sys,rw=@192.168.178.0/24 > /datatank/vz/private/28999 - nfs > anon=0,sec=sys,rw=@192.168.178.0/24 > /datatank/vz - nfs anon=0,sec=sys,rw=@192.168.178.0/24 > > So far, so good. I can mount it on my linux machine: > > [root at node123 vz]# mount -t nfs > 192.168.178.31:/datatank/vz on /vz type nfs (rw,addr=192.168.178.31) > > As you can see ,I''ve created a file system datatank/vz/root/28999, > which should appear on the Linux client. It doesn''t: > > [root at node123 vz]# ls -l /vz/private/ > total 0 > > It does on the server: > > -bash-3.2# ls -l /datatank/vz/private/ > total 3 > drwxr-xr-x 2 root root 2 May 18 09:21 28999 > > Can anyone give me some directions on this?I believe that you will need to mount those filesystems directly. In later versions of the OpenSolaris NFsv4 client, those filesystems will be mounted automatically. I believe this feature is also available on later versions of the Linux NFSv4 client as well but I don''t happen to remember the specifics. Spencer