On Mon, Jun 5, 2017 at 4:19 AM, Ronald Klop wrote:
> 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)
> 342014 - free - (1.0M)
> 2048 5368709121 ms-basic-data (256G)
>536872960 14165831682 freebsd-zfs (675G)
> 19534561282015 - 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.
Provided that the external usb disk isn't already mounted, it ought to
work, but performance may suck for various reasons. However, your
zpool syntax is wrong. The correct invocation is "zpool import
". But since ZFS supports file-backed vdevs, you could skip
a step and omit the mdconfig. Just do "zpool import -d
/mnt/files/ronald " instead.
-Alan
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"