Importing a vdev copied zpool from file

Gary Palmer gpalmer at freebsd.org
Wed Mar 25 23:33:02 UTC 2020


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


More information about the freebsd-fs mailing list