From owner-freebsd-fs@freebsd.org Thu Mar 26 14:07:58 2020 Return-Path: Delivered-To: freebsd-fs@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 0B9E72A10F2 for ; Thu, 26 Mar 2020 14:07:57 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from mail.in-addr.com (mail.in-addr.com [IPv6:2a01:4f8:191:61e8::2525:2525]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48p6JV3FmRz3Lrs for ; Thu, 26 Mar 2020 14:07:53 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by mail.in-addr.com with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1jHTAZ-000PmJ-US; Thu, 26 Mar 2020 14:07:40 +0000 Date: Thu, 26 Mar 2020 14:07:39 +0000 From: Gary Palmer To: mike tancsa Cc: Attila Nagy , freebsd-fs@freebsd.org Subject: Re: Importing a vdev copied zpool from file Message-ID: <20200326140739.GB98069@in-addr.com> References: <616f6969-b137-7db6-894f-f7612e67abcd@sentex.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <616f6969-b137-7db6-894f-f7612e67abcd@sentex.net> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false X-Rspamd-Queue-Id: 48p6JV3FmRz3Lrs X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.83 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.92)[-0.916,0]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; NEURAL_HAM_LONG(-0.91)[-0.914,0] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2020 14:07:58 -0000 On Thu, Mar 26, 2020 at 08:59:17AM -0400, mike tancsa wrote: > On 3/25/2020 7:29 PM, Attila Nagy wrote: > > Hi, > > > > I'm wondering, why this doesn't work and what could be done to make it work? > > > > # dd if=/dev/da0 of=/data/da0 > > What if you add the step > > mdconfig *-o async*??-t vnode -f /data/da0 > > and then try the import ? Note, the async option adds a pretty big speed > increase At least on 11.3, that option has this caveat in the man page: -o [no]option Set or reset options. [no]async For vnode backed devices: avoid IO_SYNC for increased performance but at the risk of deadlocking the entire kernel. Not sure if the risk of deadlocking the kernel is still there or if it's worth any potential speedup Regards, Gary