Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jun 2017 12:19:48 +0200
From:      "Ronald Klop" <ronald-lists@klop.ws>
To:        freebsd-stable@freebsd.org
Subject:   mdconfig zpool from copied partition?
Message-ID:  <op.y1cuza01kndu52@53556c9c.cm-6-6b.dynamic.ziggo.nl>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.y1cuza01kndu52>