Hello Jeff! Could you (or anyone else, of course *G*) please show me how?
Situation: There shall be 2 snapshots of a ZFS called rpool/rb-test Let's call those snapshots "01" and "02". $ sudo zfs create rpool/rb-test $ zfs list rpool/rb-test NAME USED AVAIL REFER MOUNTPOINT rpool/rb-test 18K 170G 18K /rpool/rb-test $ sudo zfs snapshot rpool/rb-t...@01 $ sudo zfs snapshot rpool/rb-t...@02 $ sudo zfs clone rpool/rb-t...@02 rpool/rb-test-02 $ sudo zfs promote rpool/rb-test-02 $ zfs list -r rpool | grep rb-test rpool/rb-test 0 170G 18K /rpool/rb-test rpool/rb-test-02 18K 170G 18K /rpool/rb-test-02 rpool/rb-test...@01 0 - 18K - rpool/rb-test...@02 0 - 18K - Now, what do I need to do, so that I get rpool/rb-test back to where it was when the snapshot rpool/rb-t...@01 was created, but WITHOUT losing what's at rpool/rb-t...@02? As there's no rpool/rb-t...@01, I obviously can't do a zfs rollback rpool/rb-t...@01. I suppose I might be able to do "zfs rollback rpool/rb-test...@01", but that would destroy rpool/rb-test...@02, wouldn't it? Could you please be so kind and show what exactly needs to be done? Thanks a lot, Alexander On Fri, Dec 11, 2009 at 08:45, Jeff Bonwick <jeff.bonw...@sun.com> wrote: > Yes, although it's slightly indirect: > > - make a clone of the snapshot you want to roll back to > - promote the clone > > See 'zfs promote' for details. > > Jeff > > On Fri, Dec 11, 2009 at 08:37:04AM +0100, Alexander Skwar wrote: > > Hi. > > > > Is it possible on Solaris 10 5/09, to rollback to a ZFS snapshot, > > WITHOUT destroying later created clones or snapshots? > > > > Example: > > > > --($ ~)-- sudo zfs snapshot rpool/r...@01 > > > > --($ ~)-- sudo zfs snapshot rpool/r...@02 > > > > --($ ~)-- sudo zfs clone rpool/r...@02 rpool/ROOT-02 > > > > --($ ~)-- LC_ALL=C sudo zfs rollback rpool/r...@01 > > cannot rollback to 'rpool/r...@01': more recent snapshots exist > > use '-r' to force deletion of the following snapshots: > > rpool/r...@02 > > > > So it isn't as simple as that. But what needs to be done, to preserve > > rpool/ROOT-02? > > > > Actually, I'm not concerned (that much) with preserving the clone > > rpool/ROOT-02. But I'd like to keep the contents of rpool/ROOT as > > it was when I created the @02 snapshot. > > > > Is the only possible way to create a backup of rpool/r...@02 (eg. > > of the snapshot directory /rpool/ROOT/.zfs/snapshots/02) and then > > restore it later on (eg. backup to tape, backup to someother filesystem > > using zfs send|recv, rsync, tar, ...)? > > > > Thanks a lot, > > > > Alexander > > -- > > ? Keine Internetzensur in Deutschland! ? http://zensursula.net ? ? > > ?? ? Lifestream (Twitter, Blog, ?) ??http://alexs77.soup.io/ ? ? ? > > ? Chat (Jabber/Google Talk) ? a.sk...@gmail.com , AIM: alexws77 ?? > > _______________________________________________ > > zfs-discuss mailing list > > zfs-discuss@opensolaris.org > > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > -- Alexander -- ↯ Keine Internetzensur in Deutschland! ↪ http://zensursula.net ↩ ↯ ↯ Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/ ↯ ↯ Chat (Jabber/Google Talk) ↣ a.sk...@gmail.com , AIM: alexws77 ↯ Sent from Winterthur, ZH, Switzerland
_______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss