Skip to contentSkip to conversation

Kernel 2.4.3 NFS problem in combo with xfs allocsize

DISCUSSION Bas van der Vlies 1 participant 1 message Jun 27, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

We just installed a new kernel 2.4.3 and experiencing problems with allocation of blocks. With the standard debian kernel from squeeze (2.6.32-5-amd64) we do not have any problems with the same xfs settings

xfs mount options:
* LABEL=lisapool /lisapool xfs rw,uquota,prjquota,nobarrier,allocsize=1048576k,logbsize=256k

I do a nfs 3 mount on a node and when copying small files everything is ok:
{{{
mount -o rw,vers=3
}}}

Now on the mounted directory: ls -lsrh
{{{
288K -rw-r--r-- 1 root root 288K Jun 27 13:50 bash.1 }}}

When i do a copy the file size is correct
{{{
288K -rw-r--r-- 1 root root 288K Jun 27 15:14 bash.1_cp }}}

When the file size is bigger: ls -lsrh
{{{
1.5M -rw-r--r-- 1 root root 1.5M Jun 27 13:55 bash.groot }}}

Now copying this big file:
{{{
1.0G -rw-r--r-- 1 root root 1.5M Jun 27 15:14 bash.groot_cp }}}

Note the size equals the xfs allocsize option and causing problems on our quota enabled file server. When i set an allocsize of 4K we don't see these problem. Also copying between 2 local file system is behaving as expected. Have other people noticed this problem?

Regards

Signature · 4 lines
********************************************************************
*  Bas van der Vlies                    e-mail: [email protected]       *
*  SARA - Academic Computing Services   Amsterdam, The Netherlands *
********************************************************************