On Sat, Nov 15, 2008 at 4:46 AM, Arthur Bundo <arthurbundo at yahoo.com> wrote:

>
>
> zpool import -f 8762664235089133115 pool1
> cannot mount '/export': directory is not empty
> cannot mount '/export/home': directory is not empty
>
> now i have a pool1 directory on the / with an empty ROOT and boot folders
> inside
>
> it is the /export/home that i want to mount, precisely that directory
>

Yes, you are halfway there now.

To mount a dataset from pool1 on any directory, you can do it like this:

1. Make sure that nothing is currently mounted on the directory, and that
there are no files in the directory.  Ideally it should not even exist.

2. Adjust the specific dataset properties to make it mount in the right
place.
# zfs set -o mountpoint=/some/directory pool1/foo/bar

3. Tell ZFS that all is OK now to mount that dataset
# zfs mount pool1/foo/bar

The one thing that you must consider is that sometimes you want to mount
pool1/foo on a specific directory /somewhere, but pool1/foo/bar is already
mounted below that.  You need to unmount it first in this situation.

To see where unmounted datasets think they should be mounted, use:
# zfs list -o name,mounted,mountpoint -r pool1



-- 
Any sufficiently advanced technology is indistinguishable from magic.
   Arthur C. Clarke

My blog: http://initialprogramload.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/opensolaris-help/attachments/20081115/6059ee3d/attachment.html>

Reply via email to