Hi Matt, cool, thank you for doing this!
I'll still write my script since today my two shiny new 320GB USB disks will arrive :). I'll add to that the feature to first send all current snapshots, then bring down the services that depend on the filesystem, unmount the old fs, send a final incremental snapshot then zfs set mountpoint=x to the new filesystem, then bring up the services again. Hope this works as I imagine. Cheers, Constantin Matthew Ahrens wrote: > Constantin Gonzalez wrote: >> What is the most elegant way of migrating all filesystems to the new >> pool, >> including snapshots? >> >> Can I do a master snapshot of the whole pool, including >> sub-filesystems and >> their snapshots, then send/receive them to the new pool? >> >> Or do I have to write a script that will individually snapshot all >> filesystems >> within my old pool, then run a send (-i) orgy? > > Unfortunately, you will need to make/find a script to do the various > 'zfs send -i' to send each snapshot of each filesystem. > > I am working on 'zfs send -r', which will make this a snap: > > # zfs snapshot -r [EMAIL PROTECTED] > # zfs send -r [EMAIL PROTECTED] | zfs recv ... > > You'll also be able to do 'zfs send -r -i @yesterday [EMAIL PROTECTED]'. > > See RFE 6421958. > > --matt -- Constantin Gonzalez Sun Microsystems GmbH, Germany Platform Technology Group, Global Systems Engineering http://www.sun.de/ Tel.: +49 89/4 60 08-25 91 http://blogs.sun.com/constantin/ Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss