xfs
[Top] [All Lists]

Copy file , file blocks is different

To: xfs@xxxxxxxxxxx
Subject: Copy file , file blocks is different
From: Homer Li <01jay.ly@xxxxxxxxx>
Date: Thu, 24 Jan 2013 17:48:25 +0800
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=7/jF6a5++8OWda+sKPaRN06hpkBL3JD1XfQtCNxjDLg=; b=JYYXl6ws9piVB0l6Jrhgac1U5pdzAmj9ZeMvQ1dyZOCYD37QA/7ixbZmTYdpvWtDyo O66ge44nmcWhLMyc+dHFYdJn+hEf5nOIvp2YSF2NEEXLoemjwlEp4ubi23gzvkB6+d0s hae0vdcewRCYfgat4+UOT/zi5CL+lIKRpBZgxdQE4hg6NXE2s+408L05POr9qZJy0KEE 2ikFkh6Z2mtS6wdsAig3a1EqU9HnZkH/fYvLISePbyp1WdNClLB090y8kdNptbDa9K9K xPv713HBKLDOz96+J9gLoKt2KRCYTRVTY+l1GA/879bCjAn8e7i7VBK26Lr5LzO6uwPO c6kg==
Hello,

 There are 2 file in the xfs device, md5 is the same, but the size is different.Â
ÂÂÂÂÂ I don't know why .......
ÂÂÂÂÂ Does anyone could help me?


ÂÂÂÂÂ Server1 is EMC Isilon export from NFS (mount point: A, onefs)
ÂÂÂÂÂ Server2 is rack server export from NFS (mount point: B, xfs)
 Login node could access A and B by NFS client, and then "copy /A/xxx/xxx to /B/xxx/xxx", the file size is different.
 I Switch to Server3 , and use jfs or ext3, it 's ok.

ÂÂÂÂÂ mount point:
df -h /export/data1/
Filesystem Size Used Avail Use% Mounted on
/dev/sdbÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 17TÂÂ 13TÂ 4.1TÂ 76% /export/data1


I don't know why their "Blocks" is different.

#find /export/data1 -name 130111_I262_FCD1F5KACXX_L8_ORYknyECRAASE-41_1.fq.gz |xargs stat
 File: `/export/data1/data/F12FTSCCKF0542-01_ORYknyE/DGESEP00000760/130111_I262_FCD1F5KACXX_L8_ORYknyECRAASE-41/130111_I262_FCD1F5KACXX_L8_ORYknyECRAASE-41_1.fq.gz'
 Size: 287928288  Blocks: 562360 IO Block: 4096 regular file
Device: 810h/2064dÂÂÂ Inode: 145099ÂÂÂÂÂ Links: 1
Access: (0555/-r-xr-xr-x)Â Uid: (Â 501/Â solexa)ÂÂ Gid: (Â 501/Â solexa)
Access: 2013-01-22 14:11:53.742552293 +0800
Modify: 2013-01-15 06:51:21.650490280 +0800
Change: 2013-01-15 06:51:21.926667534 +0800
 File: `/export/data1/data/TEST/130111_I262_FCD1F5KACXX_L8_ORYknyECRAASE-41_1.fq.gz'
 Size: 287928288  Blocks: 1048576 IO Block: 4096 regular file
Device: 810h/2064dÂÂÂ Inode: 234501ÂÂÂÂÂ Links: 1
Access: (0644/-rw-r--r--)Â Uid: (Â 501/Â solexa)ÂÂ Gid: (Â 501/Â solexa)
Access: 2013-01-22 15:47:05.078570059 +0800
Modify: 2013-01-22 15:24:27.774527465 +0800
Change: 2013-01-22 15:24:27.774527465 +0800


Here is jfs status,
# stat 130111_I262_FCD1F5KACXX_L8_ORYknyECRAASE-41_1.fq.gz
 File: `130111_I262_FCD1F5KACXX_L8_ORYknyECRAASE-41_1.fq.gz'
 Size: 287928288  Blocks: 562360 IO Block: 4096 regular file
Device: 810h/2064dÂÂÂ Inode: 4ÂÂÂÂÂÂÂÂÂÂ Links: 1
Access: (0644/-rw-r--r--)Â Uid: (Â 501/Â solexa)ÂÂ Gid: (Â 501/Â solexa)
Access: 2013-01-24 16:01:49.793750980 +0800
Modify: 2013-01-24 16:02:14.766622939 +0800
Change: 2013-01-24 16:02:14.766622939 +0800



md5:
find /export/data1 -name 130111_I262_FCD1F5KACXX_L8_ORYknyECRAASE-41_1.fq.gz |xargs md5sum
f570d91ed71b1cbeac6d594766a3055f /export/data1/data/F12FTSCCKF0542-01_ORYknyE/DGESEP00000760/130111_I262_FCD1F5KACXX_L8_ORYknyECRAASE-41/130111_I262_FCD1F5KACXX_L8_ORYknyECRAASE-41_1.fq.gz
f570d91ed71b1cbeac6d594766a3055f /export/data1/data/TEST/130111_I262_FCD1F5KACXX_L8_ORYknyECRAASE-41_1.fq.gz


Here is the xfs config and system info:

#xfs_info /export/data1
meta-data="" isize=256ÂÂÂ agcount=32, agsize=137260368 blks
ÂÂÂÂÂÂÂÂ =ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ sectsz=512ÂÂ attr=2
dataÂÂÂÂ =ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ bsize=4096ÂÂ blocks=4392331776, imaxpct=5
ÂÂÂÂÂÂÂÂ =ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ sunit=0ÂÂÂÂÂ swidth=0 blks
namingÂÂ =version 2ÂÂÂÂÂÂÂÂÂÂÂÂÂ bsize=4096ÂÂ ascii-ci=0
logÂÂÂÂÂ =internalÂÂÂÂÂÂÂÂÂÂÂÂÂÂ bsize=4096ÂÂ blocks=521728, version=2
ÂÂÂÂÂÂÂÂ =ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ sectsz=512ÂÂ sunit=0 blks, lazy-count=1
realtime =noneÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ extsz=4096ÂÂ blocks=0, rtextents=0


# cat /etc/redhat-release
CentOS release 6.3 (Final)

uname -r
2.6.32-279.el6.x86_64

# modinfo xfs
filename:ÂÂÂÂÂÂ /lib/modules/2.6.32-279.el6.x86_64/kernel/fs/xfs/xfs.ko
license:ÂÂÂÂÂÂÂ GPL
description:ÂÂÂ SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
author:ÂÂÂÂÂÂÂÂ Silicon Graphics, Inc.
srcversion:ÂÂÂÂ 2D92BBDEE6D42920ECC78EB
depends:ÂÂÂÂÂÂÂ exportfs
vermagic:ÂÂÂÂÂÂ 2.6.32-279.el6.x86_64 SMP mod_unload modversions



--
Best Regards
Homer Li
<Prev in Thread] Current Thread [Next in Thread>