XFS frozen when moving file from one project quota to another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm under Debian/Linux 5.0.8. I'm trying to move a file from one project
quota to another one.
XFS freeze.

I have tested on 2 same servers -> same bug.

Based on my article on http://wiki.debian.org/fr/Quota (in french)


Example:

Creating FS (1):
	dd if=/dev/zero of=/root/file.xfs bs=1M count=100
	mkfs.xfs /root/file.xfs
	mkdir /media/mount.xfs
	mount -o loop,prjquota /root/file.xfs /media/mount.xfs

Creating directories:
	mkdir /media/mount.xfs/dirA /media/mount.xfs/dirB

Declaring project:
	echo 1:/media/mount.xfs/dirA >> /etc/projects
	echo 2:/media/mount.xfs/dirB >> /etc/projects
	echo prjDirA:1 >> /etc/projid
	echo prjDirB:2 >> /etc/projid

Setting up project:
	xfs_quota -x -c 'project -s prjDirA' /media/mount.xfs
	xfs_quota -x -c 'project -s prjDirB' /media/mount.xfs

Configuring project:
	xfs_quota -x -c 'limit -p bhard=20m prjDirA' /media/mount.xfs
	xfs_quota -x -c 'limit -p bhard=20m prjDirB' /media/mount.xfs

Control:
	xfs_quota -x -c report /media/mount.xfs
		Project quota on /media/mount.xfs (/dev/loop0)
		                               Blocks
		Project ID       Used       Soft       Hard    Warn/Grace
		---------- --------------------------------------------------
		prjDirA             0          0      20480     00 [--------]
		prjDirB             0          0      20480     00 [--------]

Create basic file (2)
	dd if=/dev/zero of=/media/mount.xfs/dirA/5Mo.file bs=1M count=5

Moving ... bash don't return. i can't break process. XFS crash and need to
restart my serveur via button.
	mv /media/mount.xfs/dirA/5Mo.file /media/mount.xfs/dirB/
	^C^C^C

Some informations:
	ps aux | grep mv
		root      4275  0.0  0.0  13952   784 pts/0    D+   19:32
0:00 mv /media/mount.xfs/dirA/5Mo.file /media/mount.xfs/dirB/

	lsof | grep 4275
		mv        4275     root  cwd       DIR                8,1
4096     229377 /root
		mv        4275     root  rtd       DIR                8,1
4096          2 /
		mv        4275     root  txt       REG                8,1
85320      41031 /bin/mv
		mv        4275     root  mem       REG                8,1
17424      24600 /lib/libattr.so.1.1.0
		mv        4275     root  mem       REG                8,1
14616      25939 /lib/libdl-2.7.so
		mv        4275     root  mem       REG                8,1
1375536      25934 /lib/libc-2.7.so
		mv        4275     root  mem       REG                8,1
29360      25917 /lib/libacl.so.1.1.0
		mv        4275     root  mem       REG                8,1
109464      25893 /lib/libselinux.so.1
		mv        4275     root  mem       REG                8,1
119288      25907 /lib/ld-2.7.so
		mv        4275     root  mem       REG                8,5
1771376     180831 /usr/lib/locale/locale-archive
		mv        4275     root    0u      CHR              136,0
2 /dev/pts/0
		mv        4275     root    1u      CHR              136,0
2 /dev/pts/0
		mv        4275     root    2u      CHR              136,0
2 /dev/pts/0
		mv        4275     root    3r      REG                7,0
5242880        133 /media/mount.xfs/dirA/5Mo.file



Information about my server:
	uname -a: Linux lnx043002 2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43
UTC 2011 x86_64 GNU/Linux

	OS: Debian 5.0.8

	dpkg -l | grep samba
		ii  libcrypt-smbhash-perl                0.12-2
generate LM/NT hash of a password for samba
		ii  samba                                2:3.5.6~dfsg-3~bpo50+1
SMB/CIFS file, print, and login server for Unix
		ii  samba-common                         2:3.5.6~dfsg-3~bpo50+1
common files used by both the Samba server and client
		ii  samba-common-bin                     2:3.5.6~dfsg-3~bpo50+1
common files used by both the Samba server and client

	dpkg -l | grep xfs
		ii  x11-xfs-utils                        7.3+1
X font server utilities
		ii  xfsdump                              2.2.48-1
Administrative utilities for the XFS filesystem
		ii  xfsprogs                             2.9.8-1lenny1
Utilities for managing the XFS filesystem


	dpkg -l | grep lvm
		ii  lvm2                                 2.02.39-8
The Linux Logical Volume Manager



(1) Tested also on LVM+DrDB
(2) Tested also with 108GB of user's data

Best regard
Boris Sanègre.


_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs



[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux