I have a sneaking feeling I''m missing something really obvious. If you have zfs fs that see little use and have lost track of whether changes may have occurred since last snapshot, is there some handy way to determine if a snapshot matches its filesystem. Or put another way, some way to determine if the snapshot is different than its current filesystem. I knot about the diff tools and of course I guess one could compare overall sizes in bytes for a good idea, but is there a way provided by zfs?
Harry Putnam wrote:> I have a sneaking feeling I''m missing something really obvious. > > If you have zfs fs that see little use and have lost track of whether > changes may have occurred since last snapshot, is there some handy way > to determine if a snapshot matches its filesystem. Or put another > way, some way to determine if the snapshot is different than its > current filesystem. > > I knot about the diff tools and of course I guess one could compare > overall sizes in bytes for a good idea, but is there a way provided by > zfs? >If you have a recent enough OS release... zfs diff <snapshot> [<snapshot> | <filesystem>] -- Andrew Gabriel
Andrew Gabriel <Andrew.Gabriel at oracle.com> writes:> Harry Putnam wrote: >> I have a sneaking feeling I''m missing something really obvious. >> >> If you have zfs fs that see little use and have lost track of whether >> changes may have occurred since last snapshot, is there some handy way >> to determine if a snapshot matches its filesystem. Or put another >> way, some way to determine if the snapshot is different than its >> current filesystem. >> >> I knot about the diff tools and of course I guess one could compare >> overall sizes in bytes for a good idea, but is there a way provided by >> zfs? >> > > If you have a recent enough OS release... > > zfs diff <snapshot> [<snapshot> | <filesystem>]Apparently my OS is new enough (b 147 <openindiana>)... since the command is known. Very nice... but where is the documentation? `man zfs'' has no hits on a grep for diff (except different..) Ahh never mind... I found: http://www.c0t0d0s0.org/archives/6829-zfs-diff-in-Opensolaris.html Which tells all about it but apparently too new to be in the man page yet? The date there is Aug of 2010... thats kind of a good while ago. The ones with `+'' are added... and a very nice way to get such a list. But I also see a massive list of files with a letter `m'' prefixed on each line, Which is supposed to mean modified, They cannot all really be modified so I''m thinking its something to do with rsyncing files from a windows XP machine to Openindiana.. is that likely?
On Sat, Jun 4, 2011 at 3:51 PM, Harry Putnam <reader at newsguy.com> wrote:> Apparently my OS is new enough (b 147 <openindiana>)... since the command > is known. ?Very nice... ?but where is the documentation? > > `man zfs'' has no hits on a grep for diff (except different..) > > Ahh never mind... I found: > ?http://www.c0t0d0s0.org/archives/6829-zfs-diff-in-Opensolaris.html > > Which tells all about it but apparently too new to be in the man page > yet? ?The date there is Aug of 2010... thats kind of a good while ago.The OI man pages are out of date with respect to some of the tools. I had a similar situation with ipadm. The command exists but OI has no man page for it. IIRC it has to do with the conversion to Illumos, as man pages were moved from a separate consolidation to being packaged with their respective commands. This means the bulk of the man pages are now in Illumos core, so upcoming OI releases will be in better sync. OI 147 still had man pages from the original OpenSolaris docs consolidation. Sorry I can''t answer about zfs diff directly-- haven''t used that feature yet. Eric
On Sat, Jun 4, 2011 at 12:51 PM, Harry Putnam <reader at newsguy.com> wrote:> But I also see a massive list of files with a letter `m'' prefixed on > each line, Which is supposed to mean modified, They cannot all really > be modified so I''m thinking its something to do with rsyncing files > from a windows XP machine to Openindiana.. is that likely? >It could be that the atime has been modified on all those files, possibly by rsync. --matt -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20110605/4ab24ac9/attachment.html>