On 07/18/10 17:39, Packet Boy wrote:

What I can not find is how to take an existing Fedora image and copy
the it's contents into a ZFS volume so that I can migrate this image
from my existing Fedora iScsi target to a Solaris iScsi target (and
of course get the advantages of having that disk image hosted on
ZFS).

Do I just zfs create -V and then somehow dd the Fedora .img file on
top of the newly created volume?

Well, you could simply mount the iscsi devices and choose any method
that is suitable to copy the existing volume. For example Fedora will
create /dev/sd* for each iscisi device it knows about, so you see an
empty drive at that point and the problem simply devolves to whatever
you would do if you wanted to use a new physical drive. nftsclone
works for MSWindows, I suppose dd might work for Linux, although
the disk geometries would have to be identical and you'd have to
copy the entire disk. It might be safer to create new file systems
on the new disk, and use cpio or even tar to copy everything. Shame
it's so hard to do mirroring with Fedora, so the ZFS mirror trick
might be too difficult.

I've spent hours and have not been able to find any example on how to
do this.

Making the new drive bootable is the real problem since it will probably
not have the same identifier. For sure you'd have to edit grub ion the
new drive and perhaps run grub interactively to install a boot loader.

Hope this helps -- Frank
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to