Ah it's a somewhat mis-leading error message:

bash-3.00# mount -F lofs /zpool1/test /export/test
bash-3.00# share -F nfs -o rw,anon=0 /export/test
Could not share: /export/test: invalid path
bash-3.00# umount /export/test
bash-3.00# zfs set sharenfs=off zpool1/test
bash-3.00# mount -F lofs /zpool1/test /export/test
bash-3.00# share -F nfs -o rw,anon=0 /export/test

So if any zfs file-system has sharenfs enabled, you will get "invalid 
path". If you disable sharenfs, then you can export the lofs.

Lund


J.P. King wrote:
>>
>> I can not export lofs on NFS. Just gives invalid path,
> 
> Tell that to our mirror server.
> 
> -bash-3.00$ /sbin/mount -p | grep linux
> /data/linux - /linux lofs - no ro
> /data/linux - /export/ftp/pub/linux lofs - no ro
> -bash-3.00$ grep linux /etc/dfs/sharetab
> /linux  -       nfs     ro      Linux directories
> -bash-3.00$ df -k /linux
> Filesystem           1K-blocks      Used Available Use% Mounted on
> data                 3369027462 3300686151  68341312  98% /data
> 
>> and:
>>
>> http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6578437
> 
> I'm using straight Solaris, not Solaris Express or equivalents:
> 
> -bash-3.00$ uname -a
> SunOS leprechaun.csi.cam.ac.uk 5.10 Generic_127111-01 sun4u sparc 
> SUNW,Sun-Fire-V240 Solaris
> 
> I can't comment on the bug, although I notice it is categorised under 
> nfsv4, but the description doesn't seem to match that.
> 
>> Jorgen Lundman       | <[EMAIL PROTECTED]>
> 
> Julian
> -- 
> Julian King
> Computer Officer, University of Cambridge, Unix Support
> 

-- 
Jorgen Lundman       | <[EMAIL PROTECTED]>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to