Thanks guys for the valuable infos ;) I'll check them all In any case, I think that, because windows clients are "evil", and because it's not possible in windows to have two equal share names on the same host, I believe that CIFS should not decide to allow two equal shares to run over CIFS from two different pools, not even changing their names when already present (as it does, changing them to the full path name of the file set). Probably it should stop the shares completelly, both! And let an admin get into the problem No? Gabriele. Da: Richard Elling A: [email protected] Data: 22 novembre 2013 20.15.39 CET Oggetto: Re: [discuss] zfs import -N not persistent, and ways to mount with no share 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 | Modify Your Subscription
------------------------------------------- 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
