Yes, I think Eric is correct. Funny, this is an adjunct to the thread I started entitled "Thoughts on ZFS Pool Backup Strategies". I was going to include this point in that thread but thought better of it.
It would be nice if there were an easy way to extract a pool configuration, with all of the dataset properties, ACLs, etc. so that you could easily reload it into a new pool. I could see this being useful in a disaster recovery sense, and I'm sure people smarter than I can think of other uses. >From my reading of the documentation and man pages, I don't see that any such command currently exists. Something that would allow you dump the config into a file and read it back from a file using typical Unix semantics like STDIN/STDOUT. I was thinking something like: zpool dump <pool> [-o <filename>] zpool load <pool> [-f <filename] Without "-o" or "-f", the output would go to STDOUT or the input would come from STDIN, so you could use this in pipelines. If you have a particularly long lived and stable pool, or one that has been through many upgrades, this might be a nice way to save a configuration that you could restore later (if necessary) with a single command. Thoughts? On Wed, Mar 24, 2010 at 15:31, Eric D. Mudama <edmud...@bounceswoosh.org>wrote: > On Wed, Mar 24 at 12:20, Wolfraider wrote: > >> Sorry if this has been dicussed before. I tried searching but I >> couldn't find any info about it. We would like to export our ZFS >> configurations in case we need to import the pool onto another >> box. We do not want to backup the actual data in the zfs pool, that >> is already handled through another program. >> > > I'm pretty sure the configuration is embedded in the pool itself. > Just import on the new machine. You may need --force/-f the pool > wasn't exported on the old system properly. > > --eric > > -- > Eric D. Mudama > edmud...@mail.bounceswoosh.org > > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss@opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > -- "You can choose your friends, you can choose the deals." - Equity Private "If Linux is faster, it's a Solaris bug." - Phil Harman Blog - http://whatderass.blogspot.com/ Twitter - @khyron4eva
_______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss