On Wed, 7 May 2008, Hans wrote:

> hello,
> can i create a image from ZFS with the DD command?
> when i work with linux i use partimage to create an image from one partitino 
> and store it on another. so i can restore it if an error.
> partimage do not work with zfs, so i must use the DD command.
> i think so:
> DD IF=/dev/sda1 OF=/backup/image
> can i create an image this way, and restore it the other:
> DD IF=/backup/image OF=/dev/sda1
> when i have two partitions with zfs, can i boot from the live cd, mount one 
> partition to use it as backup target?
> or is it possible to create a ext2 partition and use a linux rescue cd to 
> backup the zfs partition with dd ?

While the methods you describe are not the zfs way of doing things, 
they should work.  The zfs pool would need to be offlined (taken 
completely out of service, via zpool export) before backing it up via 
raw devices with dd.  Every raw device in the pool would need to be 
backed up at that time in order to make a valid restore possible. Once 
the devices in the pool have been copied, the pool can be re-imported 
to activate it.  This approach is quite a lot of work and the pool is 
not available during this time.

It is much better to do things the zfs way since then the pool can 
still be completely active.  Taking a snapshot takes less than a 
second.  Then you can send the filesystems to be backed up to a file 
or to another system.

Bob
======================================
Bob Friesenhahn
[EMAIL PROTECTED], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

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

Reply via email to