I think this is probably something like what I want, the problem is I'm
not really "getting it" yet. If you could explain just what is
happening here in an example. Let's say I have this setup;
oldpool = 10 x 500GB volumes, with two mounted filesystems; fs1 and fs2
I create newpool = 12 x 1TB volumes using new storage hardware.
newpool thus has a lot more capacity than oldpool, but not the same
number of physical volumes or the same size volumes.
That is fine because the zfs send | zfs recv copies the data across.
I want to replicate oldpool and thus oldpool/fs1 and oldpool/fs2 on
newpool/fs1 and newpool/fs2. And I want to do this in a way that
allows me to "switch over" from oldpool to newpool on a day that is
scheduled with the customers and then take oldpool away.
So depending on the volume of data change you might need to do the
snapshot and send several times.
So on Monday I take a snapshot of oldpool, like you say;
zfs snapshot -r oldp...@sendit
And I send/recv it to newpool;
zfs send -R oldp...@sendit | zfs recv -vFd newpool
At this point does all of that data, say 3TB or so, start copying over
to the newpool?
Everything in all the oldpool datasets that was written upto the time
the @sendit snapshot was created will be.
> How do I monitor the progress of the transfer? Once
Unfortunately there is no easy way to do that just now. When the 'zfs
recv' finishes is it is done.
that initial copy is done, on say Wednesday, how do I then do a final
"sync" from oldpool to newpool to pick up any changes that occurred
since the first snapshot on Monday.
Do almost the same again eg:
zfs snapshot -r oldp...@wednesday
zfs send -R -i oldp...@monday oldp...@wednesday | zfs recv -vFd newpool
> I assume that for this final
snapshot I would unmount the filesystems to prevent any changes by the
customer.
That is very good idea, the filesystem does *not* need to be mounted for
the zfs send to work.
Once the last send is finished do:
zpool export oldpool
If you want to actually rename newpool back to the oldpool name do this:
zpool export newpool
zpool import newpool oldpool
Sorry I'm being dense here, I think I sort of get it but I don't have
the whole picture.
You are very close, there is some more info in the zfs(1M) man page.
--
Darren J Moffat
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss