On Wed, Mar 31, 2010 at 4:01 AM, Edward Ned Harvey <solar...@nedharvey.com> wrote: >> The problem that I have now is that each created snapshot is always >> equal to zero... zfs just not storing changes that I have made to the >> file system before making a snapshot. >> >> r...@sl-node01:~# zfs list >> NAME USED AVAIL REFER MOUNTPOINT >> mypool01 91.9G 137G 23K /mypool01 >> mypool01/storage01 91.9G 137G 91.7G /mypool01/storage01 >> mypool01/storag...@30032010-1 0 - 91.9G - >> mypool01/storag...@30032010-2 0 - 91.9G - >> mypool01/storag...@30032010-3 0 - 91.7G - >> mypool02 91.9G 137G 24K /mypool02 >> mypool02/copies 23K 137G 23K /mypool02/copies >> mypool02/storage01 91.9G 137G 91.9G /mypool02/storage01 >> mypool02/storag...@30032010-1 0 - 91.9G - >> mypool02/storag...@30032010-2 0 - 91.9G - > > Try this: > zfs snapshot mypool01/storag...@30032010-4 > dd if=/dev/urandom of=/mypool01/storage01/randomfile bs=1024k count=1024 > zfs snapshot mypool01/storag...@30032010-5 > rm /mypool01/storage01/randomfile > zfs snapshot mypool01/storag...@30032010-6 > zfs list > > And see what happens. > >
I did those test and here are results: r...@sl-node01:~# zfs list NAME USED AVAIL REFER MOUNTPOINT mypool01 91.9G 136G 23K /mypool01 mypool01/storage01 91.9G 136G 91.7G /mypool01/storage01 mypool01/storag...@30032010-1 0 - 91.9G - mypool01/storag...@30032010-2 0 - 91.9G - mypool01/storag...@30032010-3 2.15M - 91.7G - mypool01/storag...@30032010-4 41K - 91.7G - mypool01/storag...@30032010-5 1.17M - 91.7G - mypool01/storag...@30032010-6 0 - 91.7G - mypool02 91.9G 137G 24K /mypool02 mypool02/copies 23K 137G 23K /mypool02/copies mypool02/storage01 91.9G 137G 91.9G /mypool02/storage01 mypool02/storag...@30032010-1 0 - 91.9G - mypool02/storag...@30032010-2 0 - 91.9G - As you can see I have differences for snapshot 4,5 and 6 as you suggested to make a test. But I can see also changes on snapshot no. 3 - I complain about this snapshot because I could not see differences on it last night! Now it shows. The only difference is that I have made since yesterday is system restart. What is still strange: snapshots 1 and 2 are the oldest but they are still equal to zero! After changes and snapshots 3,4,5 and 6 I would expect that snapshots 1 and 2 are "recording" also changes on the storage01 file system, but not... could it be possible that snapshots 1 and 2 are somehow "broken". Anyway this is the first time that I saw strange snapshot behaving, ok it's true that my configuration win7 / vmplayer / sol10 / zpool on phisical disk can be the main reason, but anyway I'm confused that sometimes snapshot "recording" is working (as I have for 3,4,5 and 6) and sometimes not as I have for snapshot 1 and 2. With hardware Solaris and zpools I didn't have this strange snapshot behaving. Definitely something blocked snapshots 1 and 2 to work correctly or? I will monitor and play with it next days... Many thanks to Richard Jahnel and Edward Ned Harvey! Regards, Vladimir _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss