zfs receive -u 
 -- richard

On Nov 22, 2013, at 6:42 AM, Jim Klimov <[email protected]> wrote:

> On 2013-11-21 20:06, Gabriele Bulfon wrote:
>> - Issuing a zfs import -N (no mount, no share) and rebooting, mounts the
>> pool without -N, so with mounting and sharing. Shouldn't it persist my
> > idea of having the pool without mounting and sharing on reboot?
> 
> Take a look at my new write-up as I am walking over my old admin notes:
> http://wiki.openindiana.org/oi/Advanced+-+ZFS+Pools+as+SMF+services+and+iSCSI+loopback+mounts
> 
> This page and its example code is currently a work in progress, full
> of hardcoded values and stuff like that. Still, it can already get you
> started on the part about persisting the -N :)
> 
> Or, as Richard suggested, you can go over the backup pool and have
> its datasets marked with canmount=noauto instead of canmount=on.
> A moderately hacky way is suggested below:
> 
> POOL=backup
> zfs list -H -o name -t filesystem -r $POOL | while read Z; do
>  if zfs get all "$Z" | grep canmount | egrep ' (received|local)' |
>    grep -w on ; then echo "zfs set canmount=noauto '$Z'"; fi
> done
> 
> The output of this should be (unless I typo'ed somewhere) based on
> the list of datasets which have explicitly defined canmount=on, with
> markup which you can copy-paste in the shell to set canmount=noauto :)
> 
> HTH,
> //Jim Klimov
> 
> 
> 
> 
> -------------------------------------------
> illumos-discuss
> Archives: https://www.listbox.com/member/archive/182180/=now
> RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175743-23d1427b
> Modify Your Subscription: https://www.listbox.com/member/?&;
> Powered by Listbox: http://www.listbox.com

--

[email protected]
+1-760-896-4422






-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to