Date: Wed, 25 Mar 2020 23:32:41 +0000 From: Gary Palmer <gpalmer@freebsd.org> To: Attila Nagy <bra@fsn.hu> Cc: freebsd-fs@freebsd.org Subject: Re: Importing a vdev copied zpool from file Message-ID: <20200325233241.GA43047@in-addr.com> In-Reply-To: <CAM2hQG_iREkW=tsX=rF8XCOe1CFxumbftr7am6uZ0X6u-YFKQw@mail.gmail.com> References: <CAM2hQG_iREkW=tsX=rF8XCOe1CFxumbftr7am6uZ0X6u-YFKQw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 26, 2020 at 12:29:10AM +0100, Attila Nagy wrote: > Hi, > > I'm wondering, why this doesn't work and what could be done to make it work? > > # zpool status disk0 > pool: disk0 > state: ONLINE > scan: none requested > config: > > NAME STATE READ WRITE CKSUM > disk0 ONLINE 0 0 0 > da0 ONLINE 0 0 0 > > errors: No known data errors > # zpool export disk0 > # dd if=/dev/da0 of=/data/da0 > # zpool import -d /data disk0 > pool: disk0 > id: 13816971982532029716 > state: UNAVAIL > status: One or more devices contains corrupted data. > action: The pool cannot be imported due to damaged devices or data. > see: http://illumos.org/msg/ZFS-8000-5E > config: > > disk0 UNAVAIL insufficient replicas > 10876703685892021104 UNAVAIL corrupted data Use mdconfig(8) or similar to turn the file into a device and then it should work Regards, Gary
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200325233241.GA43047>