From owner-freebsd-stable@freebsd.org Mon Jun 5 10:35:10 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F9EDBFBA6E for ; Mon, 5 Jun 2017 10:35:10 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3938E78E52 for ; Mon, 5 Jun 2017 10:35:09 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dHp6z-0006dZ-8g for freebsd-stable@freebsd.org; Mon, 05 Jun 2017 12:19:49 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-stable@freebsd.org Date: Mon, 05 Jun 2017 12:19:48 +0200 Subject: mdconfig zpool from copied partition? MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: 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.0 X-Scan-Signature: 71684ae416b12bc74806129cb02de027 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2017 10:35:10 -0000 Hi, I'm trying something like this: # dd if=/dev/da0p2 of=/somefile # mdconfig -f /somefile # zpool import md0 da0p2 comes from my external usb-disk: => 34 1953458109 da0 GPT (931G) 34 2014 - free - (1.0M) 2048 536870912 1 ms-basic-data (256G) 536872960 1416583168 2 freebsd-zfs (675G) 1953456128 2015 - free - (1.0M) Is this possible? Or will I miss some partion info in the end? I already have this: # mdconfig -lv md0 vnode 104G /mnt/files/ronald/freebsd-zfs.da0p2 NB: my dd was interrupted after 104GB, but I'm making a new copy already. Regards, Ronald.