I would use a script to generate zfs commands. Here is an example for
the pool tank:

zfs list  -Hr -o name tank | while read dataset; do echo zfs create
$dataset; zfs get -H -s local all $dataset | awk '{ print "zfs set  " $1
" " $2 "=" $3 }'; done

Hope this help.

On Thu, 2009-06-18 at 11:47 -0700, Nikhil wrote:

> Hey ZFS experts,
> 
> Where is the ZFS metadata stored under? Can it be viewed through some 
> commands?
> 
> Here is my requirement: I have a machine with lots of ZFS filesystems on it 
> under couple of zpools and there is this another new machine with empty 
> disks, what I want now is the similar layout of the pools, filesystems with 
> quota,reservation and other properties intact along with the naming 
> conventions created on the new machine.
> 
> How do I create a schema or reverse engineer to run the zfs/zpool commands 
> required to create the similay layout of the zfs filesystems on the new 
> machine.
> Is there a import stuff like that?
> 
> Thanks.
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to