Hi.

 System is snv_56 x86 32bit
 
bash-3.00# zpool status solaris
  pool: solaris
 state: ONLINE
 scrub: scrub stopped with 0 errors on Thu Mar 22 16:25:23 2007
config:

        NAME        STATE     READ WRITE CKSUM
        solaris     ONLINE       0     0     0
          c0t1d0    ONLINE       0     0     0

errors: No known data errors
bash-3.00# 


bash-3.00# zfs list
NAME                              USED  AVAIL  REFER  MOUNTPOINT
solaris                          11.7G  5.02G  3.27G  /solaris
solaris/d100                     1.64G  5.02G  1.64G  /solaris/d100
solaris/[EMAIL PROTECTED]      0      -  1.64G  -
solaris/[EMAIL PROTECTED]        0      -  1.64G  -
solaris/d100-copy                12.0M  5.02G  12.0M  /solaris/d100-copy
solaris/d100-copy1               1.31G  5.02G  1.31G  /solaris/d100-copy1
solaris/d101                      348M  5.02G  15.3M  /solaris/d101
solaris/[EMAIL PROTECTED]   333M      -   348M  -
solaris/[EMAIL PROTECTED]        0      -  15.3M  -
solaris/d101-copy                15.3M  5.02G  15.3M  /solaris/d101-copy
solaris/testws                   5.13G  5.02G  5.13G  /export/testws/
bash-3.00# 


File systems solaris/d100 and solaris/d100-copy1 contain the same data.

bash-3.00# ls -l /solaris/d100 | wc -l
     163
bash-3.00# ls -l /solaris/d100-copy1 | wc -l
     163
bash-3.00# 

bash-3.00# gtar cvf /solaris/2.tar /solaris/d100-copy1
bash-3.00# gtar cvf /solaris/1.tar /solaris/d100
bash-3.00# ls -l /solaris/1.tar
-rw-r--r--   1 root     other    1755699200 Mar 22 16:15 /solaris/1.tar
bash-3.00# ls -l /solaris/2.tar
-rw-r--r--   1 root     other    1755699200 Mar 22 16:19 /solaris/2.tar
bash-3.00# 


bash-3.00# zdb -v solaris/d100 >/tmp/1
bash-3.00# zdb -v solaris/d100-copy1 >/tmp/2
bash-3.00# diff -u /tmp/1 /tmp/2 
--- /tmp/1      Thu Mar 22 16:41:52 2007
+++ /tmp/2      Thu Mar 22 16:41:57 2007
@@ -1,7 +1,7 @@
-Dataset solaris/d100 [ZPL], ID 189, cr_txg 779704, 1.64G, 807 objects
+Dataset solaris/d100-copy1 [ZPL], ID 128, cr_txg 831226, 1.31G, 807 objects
 
     Object  lvl   iblk   dblk  lsize  asize  type
-         0    7    16K    16K   416K   242K  DMU dnode
+         0    7    16K    16K   416K   239K  DMU dnode
          1    1    16K    512    512     1K  ZFS master node
          2    1    16K    512    512     1K  ZFS delete queue
          3    1    16K  10.5K  10.5K     4K  ZFS directory
@@ -807,5 +807,5 @@
        806    1    16K  66.5K  66.5K  66.5K  ZFS plain file
        807    1    16K  67.5K  67.5K  67.5K  ZFS plain file
        808    1    16K  24.5K  24.5K  24.5K  ZFS plain file
-       809    3    16K   128K  1.58G  1.58G  ZFS plain file
+       809    3    16K   128K  1.58G  1.24G  ZFS plain file
 
bash-3.00# 

bash-3.00# find /solaris/d100-copy1/ -inum 809 -ls
  809 1304748 -rw-r--r--   1 root     other    1692205056 Mar 22 16:05 
/solaris/d100-copy1/m1
bash-3.00# find /solaris/d100/ -inum 809 -ls
  809 1652825 -rw-r--r--   1 root     other    1692205056 Mar 22 16:05 
/solaris/d100/m1
bash-3.00# diff -b /solaris/d100/m1 /solaris/d100-copy1/m1
bash-3.00# 

While lsize is the same for both files asize is smaller fr the second one.
Why is it? When is is possible? Both file systems have compression turned off 
and default recordsize. Diff claims both files to be the same.

Any idea?
 
 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to