* XFS frozen when moving file from one project quota to another
[not found] <OF62081B23.59A4BF92-ONC1257903.003AB613-C1257903.003D9151@LocalDomain>
@ 2011-09-06 18:47 ` Boris.SANEGRE
2011-09-07 6:35 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Boris.SANEGRE @ 2011-09-06 18:47 UTC (permalink / raw)
To: xfs, debian-user; +Cc: debian-user-french, Salokine Terata
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@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: XFS frozen when moving file from one project quota to another
2011-09-06 18:47 ` XFS frozen when moving file from one project quota to another Boris.SANEGRE
@ 2011-09-07 6:35 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2011-09-07 6:35 UTC (permalink / raw)
To: Boris.SANEGRE; +Cc: debian-user-french, debian-user, Salokine Terata, xfs
On Tue, Sep 06, 2011 at 08:47:04PM +0200, Boris.SANEGRE@agis-sa.fr wrote:
>
> Hi,
>
> I'm under Debian/Linux 5.0.8. I'm trying to move a file from one project
> quota to another one.
Which isn't allowed, but old kernels indeed did hang instead of properly
rejecting it.
Try backporting commit 6a0775a991d5597ce98f1e15373288ea133cc793
[XFS] Fix hang after disallowed rename across directory quota domains
which went into Linux 2.6.30 (which is almost three years old)
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-07 6:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <OF62081B23.59A4BF92-ONC1257903.003AB613-C1257903.003D9151@LocalDomain>
2011-09-06 18:47 ` XFS frozen when moving file from one project quota to another Boris.SANEGRE
2011-09-07 6:35 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox