Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jun 2017 20:17:44 -0700
From:      Mel Pilgrim <list_freebsd@bluerosetech.com>
To:        David Christensen <dpchrist@holgerdanske.com>, freebsd-questions@freebsd.org
Subject:   Re: zpool import -N mounts filesystems anyway
Message-ID:  <1f776896-9b34-1a60-3bbe-9850ca940315@bluerosetech.com>
In-Reply-To: <c2fff621-9ec7-e790-8b58-67170f97e42e@holgerdanske.com>
References:  <7f41df25-df2e-298e-d33e-cc95874e831c@bluerosetech.com> <eb778163-8387-fd55-8e8f-d65ec221e6e8@holgerdanske.com> <d4b055f2-2273-6df8-fe55-640f3b56e04d@bluerosetech.com> <c2fff621-9ec7-e790-8b58-67170f97e42e@holgerdanske.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 06/18/2017 13:19, David Christensen wrote:
> 
> Have you tried setting canmount to noauto?

It also doesn't work as expected.

# zfs get -r canmount,mountpoint backupA
NAME        PROPERTY    VALUE                   SOURCE
backupA     canmount    noauto                  local
backupA     mountpoint  /backup-ext/backupA     local
backupA/z0  canmount    noauto                  local
backupA/z0  mountpoint  /backup-ext/backupA/z0  inherited from backupA

# zpool export backupA
# zpool import backupA
# zfs list -ro name,mounted,mountpoint backupA
NAME        MOUNTED  MOUNTPOINT
backupA         yes  /backup-ext/backupA
backupA/z0       no  /backup-ext/backupA/z0


Despite canmount=noauto, ZFS mounted the root dataset automatically 
anyway.  The only way I know of to guarantee a dataset won't be mounted 
on import, despite documentation to the contrary, is to make sure it has 
or inherits mountpoint=none.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1f776896-9b34-1a60-3bbe-9850ca940315>