I think I'm doing the right thing here, but perhaps I have misunderstood the process to duplicate a filesystem using ZFS. The intent is to have an exact duplicate of a given ZFS filesystem at a given point in time, when a snapshot was taken. When I follow a snapshot-clone path, the new filesystem does not "match" the original filesystem. It appears that the clone is the same as the snapshot of the original filesystem, but the snapshot does not "agree" with the original filesystem.
Nothing is writing the filesystem in question during this process.
Any suggestions as to how to resolve this problem would be very welcome.
i386 build as of: 9.0-STABLE FreeBSD 9.0-STABLE #2 r237164: Sat Jun 16 17:49:32 PDT 2012
All filesystems are formatted with the current version.
ZFS believes the clone is the same as the snapshot, and the live filesystem is the same as the snapshot
diff, however, tells a different story.
Compare one specific directory in the original filesystem to clone
Compare snapshot to original filesystem:
Nothing is writing the filesystem in question during this process.
Any suggestions as to how to resolve this problem would be very welcome.
i386 build as of: 9.0-STABLE FreeBSD 9.0-STABLE #2 r237164: Sat Jun 16 17:49:32 PDT 2012
Code:
[jeff@port16 ~]$ zfs upgrade
This system is currently running ZFS filesystem version 5.
Code:
[jeff@port16 ~]$ zfs list -r test/sgs4g-rsync/sdcard/Trans16Gc10
NAME USED AVAIL REFER MOUNTPOINT
test/sgs4g-rsync/sdcard/Trans16Gc10 22.9G 153G 4.24G /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10
[jeff@port16 ~]$ sudo zfs snapshot test/sgs4g-rsync/sdcard/Trans16Gc10@pre-clone
[jeff@port16 ~]$ sudo zfs clone -o mountpoint=/home/jeff/tmpmnt/ test/sgs4g-rsync/sdcard/Trans16Gc10@pre-clone test/cloned
Code:
[jeff@port16 ~]$ sudo zfs diff test/sgs4g-rsync/sdcard/Trans16Gc10@pre-clone test/cloned
[jeff@port16 ~]$ sudo zfs diff test/sgs4g-rsync/sdcard/Trans16Gc10@pre-clone
[jeff@port16 ~]$
Compare one specific directory in the original filesystem to clone
Code:
[jeff@port16 ~]$ sudo diff -r --brief /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/ \
/home/jeff/tmpmnt/.android_secure/
Only in /home/jeff/tmpmnt/.android_secure/: com.adobe.reader-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.adobe.reader-2.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.boatbrowser.free-1.asec
Only in /home/jeff/tmpmnt/.android_secure/: com.boatbrowser.free-2.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.clov4r.android.nil-1.asec
Only in /home/jeff/tmpmnt/.android_secure/: com.clov4r.android.nil-2.asec
Only in /home/jeff/tmpmnt/.android_secure/: com.evernote-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.evernote-2.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.farsight.AndroidPinball.javaProject-2.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.flufflydelusions.app.enotesclassiclite-1.asec
Only in /home/jeff/tmpmnt/.android_secure/: com.flufflydelusions.app.enotesclassiclite-2.asec
Only in /home/jeff/tmpmnt/.android_secure/: com.mxtech.videoplayer.ad-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.mxtech.videoplayer.ad-2.asec
Only in /home/jeff/tmpmnt/.android_secure/: com.riteshsahu.SMSBackupRestore-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.riteshsahu.SMSBackupRestore-2.asec
Files /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/com.socialnmobile.dictapps.notepad.color.note-1.asec and /home/jeff/tmpmnt/.android_secure/com.socialnmobile.dictapps.notepad.color.note-1.asec differ
Only in /home/jeff/tmpmnt/.android_secure/: com.usaa.mobile.android.usaa-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.usaa.mobile.android.usaa-2.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.xtakagi.android.memopad-1.asec
Files /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/menion.android.locus.pro-1.asec and /home/jeff/tmpmnt/.android_secure/menion.android.locus.pro-1.asec differ
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: net.androgames.level-1.asec
Only in /home/jeff/tmpmnt/.android_secure/: net.skyscanner.android.main-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: net.skyscanner.android.main-2.asec
Code:
[jeff@port16 ~]$ sudo diff -r --brief /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.zfs/snapshot/pre-clone/.android_secure/ \
/usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.zfs/snapshot/pre-clone/.android_secure/: com.adobe.reader-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.adobe.reader-2.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.boatbrowser.free-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.zfs/snapshot/pre-clone/.android_secure/: com.boatbrowser.free-2.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.clov4r.android.nil-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.zfs/snapshot/pre-clone/.android_secure/: com.clov4r.android.nil-2.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.zfs/snapshot/pre-clone/.android_secure/: com.evernote-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.evernote-2.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.farsight.AndroidPinball.javaProject-2.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.flufflydelusions.app.enotesclassiclite-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.zfs/snapshot/pre-clone/.android_secure/: com.flufflydelusions.app.enotesclassiclite-2.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.zfs/snapshot/pre-clone/.android_secure/: com.mxtech.videoplayer.ad-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.mxtech.videoplayer.ad-2.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.zfs/snapshot/pre-clone/.android_secure/: com.riteshsahu.SMSBackupRestore-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.riteshsahu.SMSBackupRestore-2.asec
Files /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.zfs/snapshot/pre-clone/.android_secure/com.socialnmobile.dictapps.notepad.color.note-1.asec and /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/com.socialnmobile.dictapps.notepad.color.note-1.asec differ
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.zfs/snapshot/pre-clone/.android_secure/: com.usaa.mobile.android.usaa-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.usaa.mobile.android.usaa-2.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: com.xtakagi.android.memopad-1.asec
Files /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.zfs/snapshot/pre-clone/.android_secure/menion.android.locus.pro-1.asec and /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/menion.android.locus.pro-1.asec differ
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: net.androgames.level-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.zfs/snapshot/pre-clone/.android_secure/: net.skyscanner.android.main-1.asec
Only in /usr/home/jeff/sgs4g-rsync/sdcard/Trans16Gc10/.android_secure/: net.skyscanner.android.main-2.asec