From owner-freebsd-current@freebsd.org Sat May 30 20:05:44 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A87652F4E27; Sat, 30 May 2020 20:05:44 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49ZC9M4JSWz4ZY4; Sat, 30 May 2020 20:05:43 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.110.112]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jf7jg-000694-Hv; Sat, 30 May 2020 22:05:41 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-fs , marco Cc: freebsd-current@freebsd.org Subject: Re: imported zpool not persistent across reboot References: <20200529143703.GA78062@lordsith.net> Date: Sat, 30 May 2020 22:05:39 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <20200529143703.GA78062@lordsith.net> User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.2 X-Scan-Signature: 9e5d90b7ad51a80bf663b69d2bb8c379 X-Rspamd-Queue-Id: 49ZC9M4JSWz4ZY4 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-2.17 / 15.00]; ARC_NA(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[195.190.28.88:from]; NEURAL_HAM_MEDIUM(-0.97)[-0.968]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[klop.ws]; NEURAL_HAM_LONG(-1.02)[-1.023]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.37)[-0.375]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2020 20:05:44 -0000 On Fri, 29 May 2020 16:37:03 +0200, marco wrote: > I'm on -CURRENT (r361307) and using base ZFS. > I imported a zpool that was created on SmartOS with some unsupported > feature flags so had to import it read-only. What was the exact command you used to import the pool? Regards, Ronald. > > [~] zpool get all backup > NAME PROPERTY > VALUE SOURCE > backup size > 1.36T - > backup capacity > 9% - > backup altroot > - default > backup health > ONLINE - > backup guid > 11841096011823395086 default > backup version > - default > backup bootfs > - default > backup delegation > on default > backup autoreplace > off default > backup cachefile > - default > backup failmode > wait default > backup listsnapshots > off default > backup autoexpand > off default > backup dedupditto > 0 default > backup dedupratio > 1.00x - > backup free > 1.24T - > backup allocated > 126G - > backup readonly > on - > backup comment > - default > backup expandsize > - - > backup freeing > 0 default > backup fragmentation > 0% - > backup leaked > 0 default > backup bootsize > - default > backup checkpoint > - - > backup multihost > off default > backup feature@async_destroy > enabled local > backup feature@empty_bpobj > active local > backup feature@lz4_compress > active local > backup feature@multi_vdev_crash_dump > enabled local > backup feature@spacemap_histogram > active local > backup feature@enabled_txg > active local > backup feature@hole_birth > active local > backup feature@extensible_dataset > active local > backup feature@embedded_data > active local > backup feature@bookmarks > enabled local > backup feature@filesystem_limits > enabled local > backup feature@large_blocks > enabled local > backup feature@large_dnode > enabled local > backup feature@sha512 > enabled local > backup feature@skein > enabled local > backup feature@device_removal > enabled local > backup feature@obsolete_counts > enabled local > backup feature@zpool_checkpoint > enabled local > backup feature@spacemap_v2 > active local > backup feature@allocation_classes > enabled local > backup unsupported@com.datto:bookmark_v2 > inactive local > backup unsupported@org.illumos:edonr > inactive local > backup unsupported@com.datto:encryption > inactive local > backup unsupported@com.datto:resilver_defer > inactive local > backup unsupported@org.zfsonlinux:userobj_accounting > readonly local > backup unsupported@org.zfsonlinux:project_quota > readonly local > backup unsupported@com.delphix:log_spacemap > readonly local > > Whenever I reboot that zpool is no longer imported. > > I've checked /boot/defaults/loader.conf, /etc/defaults/rc.conf but > haven't seen any keys that I need to make the imported pool persistent. > I've read something on the cachefile=path setting in zpool(8) but as one > can see it's set to default > I guess I must've overlooked something but haven't found it so far. > > thanks