Hi Madhan, zfs rollback will only rollback the snapshot for the current dataset. You will have to individually rollback each of the other datasets if you want to rollback everything.
Regards, Moinak. On Tue, Jul 1, 2008 at 6:07 PM, <Madhan.Balasubramanian at sun.com> wrote: > Hi Moinak, > > Didn't work :-( > bash-3.00# zfs rollback -r test at complete > bash-3.00# ls -l /test/testfs/1/test > -rw-r--r-- 1 root root 0 Jul 1 04:40 /test/testfs/1/test > > Best Regards, > Madhan Kumar > > > > Moinak Ghosh wrote: > > On Tue, Jul 1, 2008 at 4:34 PM, <Madhan.Balasubramanian at sun.com> wrote: > > > Hi, > > I am having difficulty understanding ZFS rollback option. > I'll illustrate it with an example: > > 1.) I have created 2 FS with the following structure: > > bash-3.00# zfs list > NAME USED AVAIL REFER MOUNTPOINT > test 137K 19.6G 26.5K /test > test/testfs 50K 19.6G 25.5K /test/testfs > test/testfs/1 24.5K 19.6G 24.5K /test/testfs/1 > > > 2.) I take a snapshot of the complete pool: > > bash-3.00# zfs snapshot -r test at complete > > 3.) Now I touch a file to differentitate between the snapshot and current > state of the FS. > > bash-3.00# touch /test/testfs/1/test > > 4.) I rollback to the snapshot: > > bash-3.00# zfs rollback test at complete > bash-3.00# zfs list > NAME USED AVAIL REFER MOUNTPOINT > test 205K 19.6G 26.5K /test > test at complete 0 - 26.5K - > test/testfs 94K 19.6G 25.5K /test/testfs > test/testfs at complete 21.5K - 25.5K - > test/testfs/1 47K 19.6G 24.5K /test/testfs/1 > test/testfs/1 at complete 22.5K - 24.5K - > > 5.) Ideally, I'd expect that the file that was created after taking snapshot > be gone. However, I find that it is still present. > bash-3.00# ls -l /test/testfs/1/test > -rw-r--r-- 1 root root 0 Jul 1 04:40 /test/testfs/1/test > > I'll be glad if someone can help me understand why the file hasn't been > rolled back. > > > You should be using zfs rollback -r ... otherwise the individual > filesystem snapshots are not rolled back. > > Regards, > Moinak. > > > > Best Regards, > Madhan Kumar > > > _______________________________________________ > ug-bosug mailing list > List-Unsubscribe: mailto:ug-bosug-unsubscribe at opensolaris.org > List-Owner: mailto:ug-bosug-owner at opensolaris.org > List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54 > > > > _______________________________________________ > ug-bosug mailing list > List-Unsubscribe: mailto:ug-bosug-unsubscribe at opensolaris.org > List-Owner: mailto:ug-bosug-owner at opensolaris.org > List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54 > > > _______________________________________________ > ug-bosug mailing list > List-Unsubscribe: mailto:ug-bosug-unsubscribe at opensolaris.org > List-Owner: mailto:ug-bosug-owner at opensolaris.org > List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54 >