[OpenIndiana-discuss] chicken and egg file sharing problem

James Carlson carlsonj at workingcode.com
Fri Jun 1 16:06:04 UTC 2012


Tim Dunphy wrote:
> [root at openindiana:~] #mount -F hsfs -o ro /dev/lofi/1 /tank/iso/centos

At this point you have a CD/DVD image mounted on /tank/iso/centos.
It'll be read-only.

> [root at openindiana:~] # zfs set sharenfs=rw=@192.168.1.0/24,anon=0
> tank/iso/centos
> cannot mount '/tank/iso/centos': directory is not empty
> property may be set but unable to remount filesystem

That command doesn't quite make sense.  The data you want to share is in
the CD/DVD image, not ZFS, so why ask ZFS to share anything?  And the
thing you're sharing is read-only, so how is a read-write share going to
work?

I think there's a fundamental misunderstanding here.  Once you've got a
file system mounted, you can just share it:

share -o anon=0 /tank/iso/centos

But maybe that's not quite what you want.  If you really want a writable
file system, mount up the CD/DVD image and copy it over to a ZFS file
system, then share the copied ZFS file system as you wish.

-- 
James Carlson         42.703N 71.076W         <carlsonj at workingcode.com>



More information about the OpenIndiana-discuss mailing list