Hi all, I am trying to write a script to move disk partitions from one disk to another. The ufs partitions are transfered using ufsdump and ufsrestore - quite easily. My question is : How can I do a dump and restore of a partition that contains a ZFS file system? P.S. My script would have access to the disk and its partitions , but offline - when the machine was booted from NFS. So I need to get access to the ZFS filesystem partition name /dev/dsk/ , either directly or by mounting the root directory and find the partition by some zfs command (which I do not know). Thanks !! --me2unix This message posted from opensolaris.org
Does it sound possible at all , or cannot be done with the current ZFS commands yet? This message posted from opensolaris.org
Chris Gerhard
2007-May-30 09:40 UTC
[zfs-discuss] Re: how to move a zfs file system between disks
You can do this using zfs send and receive. See http://blogs.sun.com/chrisg/entry/recovering_my_laptop_using_zfs for an example. If the file system was remote then you would need to squeeze some ssh commands into the script but the concept is the same. This message posted from opensolaris.org
Richard Elling
2007-May-30 14:23 UTC
[zfs-discuss] Re: how to move a zfs file system between disks
H E wrote:> Does it sound possible at all , > or cannot be done with the current ZFS commands yet?zfs replace -- richard
Thanks actually I already saw the script mentioned there. Is it possible to use zfs send/receive when the disk is not mounted? i.e. give it device name as paramter and not zfs partition names? -me2unix This message posted from opensolaris.org
Chris Gerhard
2007-May-31 14:47 UTC
[zfs-discuss] Re: how to move a zfs file system between disks
It is not possible to use send and receive of the pool is not imported. It is however possible to use send and receive when the file system is not mounted. --chris This message posted from opensolaris.org