FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 09-06-2011, 06:47 PM
 
Default XFS frozen when moving file from one project quota to another

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.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: OFA406DB9E.729FBB28-ONC1257903.006155C9-C1257903.00672FA2@grpldc.com">http://lists.debian.org/OFA406DB9E.729FBB28-ONC1257903.006155C9-C1257903.00672FA2@grpldc.com
 
Old 09-07-2011, 06:18 AM
Stan Hoeppner
 
Default XFS frozen when moving file from one project quota to another

On 9/6/2011 1:47 PM, 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.
XFS freeze.


Hello Boris,

Your question will not be answered on the Debian users list as nobody on
this list has the knowledge required to assist you with your XFS issue.


You asked twice on the XFS list before receiving a response.
Demonstrate some patience, and you will receive assistance on the XFS
mailing list, which is the proper place to receive the help you need.
Also, bringing this issue up on any mailing list other than XFS is futile.


Quite often XFS questions are answered one or two days after the
original post. Not all are answered the same day, and especially ones
demonstrating, for example, a previously undiscovered bug. The
developers may be doing research before answering you. There may be
other reasons you haven't received a response.


If you are unable to be patient, please buy and install a commercial
Linux distribution such as RHEL or SLES, and buy a support contract that
guarantees 4-6 hour response time. There are no guaranteed response
times, nor a guarantee of a response at all, in the FOSS world.


Regards,

--
Stan


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4E670CB1.7090004@hardwarefreak.com">http://lists.debian.org/4E670CB1.7090004@hardwarefreak.com
 
Old 09-07-2011, 06:35 AM
Christoph Hellwig
 
Default XFS frozen when moving file from one project quota to another

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)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110907063542.GA12064@infradead.org">http://lists.debian.org/20110907063542.GA12064@infradead.org
 

Thread Tools




All times are GMT. The time now is 03:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org