Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

zfs sharenfs and host restriction

807557May 14 2009 — edited May 21 2009
Hello guys/gals,

i've been googling/searching Sun forums for a half a day now and still can't figure out my problem. I have a simple task at hand where i need to export and zfs volume via NFS to a particular host. I want to make sure that this is the only host that can connect to this export. So my syntax is:

zfs set sharenfs=rw=192.168.1.30 tank/accounting

so now i am going to my linux host (192.168.1.30) and try to mount the export:

mount 192.168.1.20:/tank/accounting /accounting

mount: 192.168.1.20:/tank/accounting /accounting failed, reason given by server: Permission denied

If i simply run:

zfs set sharenfs=on tank/accounting

it works fine, i count mount export ok.

While one the linux client i can run "showmount -e 192.168.1.20" and can see my export listed just fine.

/tank/accounting

What am i doing wrong ?

Thanks a bunch
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2009
Added on May 14 2009
2 comments
4,058 views