Skip to contentSkip to conversation

XFS Quota Check OOM

DISCUSSION Stefan Priebe - Profihost AG 4 participants 12 messages Aug 30, 2010 – Sep 1, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

on one of our systems i want to activate prjquota support. The relevant disk is the root disk so i added prjquota to rootflags kernel line.

But when i do so i always get OOM out of Memory while checking quota's. I also upgraded the system from 8GB to 16GB RAM but still the same. Kernel is vanilla 2.6.32.19.

Stefan

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#1 lore raw

i already run an xfs_repair over the drive but no results...

Stefan

Am 30.08.2010 14:14, schrieb Stefan Priebe - Profihost AG:

Quoted 9 lines

Hi,

on one of our systems i want to activate prjquota support. The relevant disk is the root disk so i added prjquota to rootflags kernel line.

But when i do so i always get OOM out of Memory while checking quota's. I also upgraded the system from 8GB to 16GB RAM but still the same. Kernel is vanilla 2.6.32.19.

Quoted 6 lines

Stefan

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#2 lore raw
In reply to Stefan Priebe - Profihost AG

Can really nobody help :-(

Stefan

Am 30.08.2010 14:14, schrieb Stefan Priebe - Profihost AG:

Quoted 9 lines

Hi,

on one of our systems i want to activate prjquota support. The relevant disk is the root disk so i added prjquota to rootflags kernel line.

But when i do so i always get OOM out of Memory while checking quota's. I also upgraded the system from 8GB to 16GB RAM but still the same. Kernel is vanilla 2.6.32.19.

Quoted 6 lines

Stefan

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#3 lore raw

Le Tue, 31 Aug 2010 09:36:30 +0200 vous écriviez:

Quoted 1 line

Can really nobody help :-(

What is the size of the filesystem, output of xfs_info, output of uname -a, version of xfs_utils?
What are the main tasks of the system, memory wise?

Signature · 11 lines
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |	<[email protected]>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#4 lore raw

Hi!

Disk Size:
/dev/sda3 4.8T 2.7T 2.2T 55% /

uname -a:
Linux abc 2.6.32.19intel #1 SMP Wed Aug 18 15:46:03 CEST 2010 x86_64 GNU/Linux

xfs_info /dev/sda3

meta-data=/dev/sda3              isize=256    agcount=32, agsize=40038461 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=1281230752, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096
log      =internal               bsize=4096   blocks=32768, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

xfs_utils: Actual Debian Version:
xfs_quota -V
xfs_quota version 2.9.8

Mein Task is nothing - just to store a lot of Data once per day.

Stefan

Am 31.08.2010 10:44, schrieb Emmanuel Florac:

Quoted 8 lines

Le Tue, 31 Aug 2010 09:36:30 +0200 vous écriviez:

Quoted 1 line

Can really nobody help :-(

What is the size of the filesystem, output of xfs_info, output of uname -a, version of xfs_utils?
What are the main tasks of the system, memory wise?

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#5 lore raw

Le Tue, 31 Aug 2010 14:25:40 +0200 vous écriviez:

Quoted 2 lines

Disk Size:
/dev/sda3 4.8T 2.7T 2.2T 55% /

This is really very very weird. Why on earth would you use such a big root filesystem? It is extremely impractical and dangerous to store data on the root filesystem. Do you have any good reason not to have a small root filesystem and a distinct data one?

Signature · 11 lines
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |	<[email protected]>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#6 lore raw

Oh we don't do this today. But it is a really old system where someone someday decided to do that. Sadly i can't change this...

Stefan

Am 31.08.2010 14:43, schrieb Emmanuel Florac:

Quoted 10 lines

Le Tue, 31 Aug 2010 14:25:40 +0200 vous écriviez:

Quoted 2 lines

Disk Size:
/dev/sda3 4.8T 2.7T 2.2T 55% /

This is really very very weird. Why on earth would you use such a big root filesystem? It is extremely impractical and dangerous to store data on the root filesystem. Do you have any good reason not to have a small root filesystem and a distinct data one?

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#7 lore raw

Le Tue, 31 Aug 2010 14:56:40 +0200 vous écriviez:

Quoted 3 lines

Oh we don't do this today. But it is a really old system where someone someday decided to do that. Sadly i can't change this...

Did you upgrade the kernel recently? Or simply enabled quotas?

Signature · 11 lines
------------------------------------------------------------------------
Emmanuel Florac     |   Direction technique
                    |   Intellique
                    |	<[email protected]>
                    |   +33 1 78 94 84 02
------------------------------------------------------------------------

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#8 lore raw

Hi!

After booting the System to a RAM Image with prjquota (the quota check wents fine) and upgrading to xfsprogs 3.1.3.

I'm getting this when trying to setup a project Quota:
xfs_quota -x -c "project -s 2" /
Setting up project 2 (path /serverbackup/abc)...
Processed 1 (/etc/projects and cmdline) paths for project 2 with recursion depth infinite (-1).

cat /etc/projects
2:/serverbackup/abc

cat /etc/projid
abc:2

ls -la /serverbackup/abc/
total 102412
drwxr-xr-x 2 root root 16 Aug 24 00:41 .
drwxr-xr-x 62 root root 8192 Aug 31 13:05 ..
-rw-r--r-- 1 root root 104857600 Aug 24 00:41 abc

mount
/dev/sda3 on / type xfs (rw,noatime,nodiratime,nobarrier,prjquota)

Stefan

Am 31.08.2010 15:20, schrieb Emmanuel Florac:

Quoted 8 lines

Le Tue, 31 Aug 2010 14:56:40 +0200 vous écriviez:

Quoted 3 lines

Oh we don't do this today. But it is a really old system where someone someday decided to do that. Sadly i can't change this...

Did you upgrade the kernel recently? Or simply enabled quotas?

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#9 lore raw
Quoted 10 lines · Stefan Priebe - Profihost AG

Hi!

After booting the System to a RAM Image with prjquota (the quota check wents fine) and upgrading to xfsprogs 3.1.3.

I'm getting this when trying to setup a project Quota:
xfs_quota -x -c "project -s 2" /
Setting up project 2 (path /serverbackup/abc)... Processed 1 (/etc/projects and cmdline) paths for project 2 with recursion depth infinite (-1).

That's normal, I think. Adding project quota involves descending the directory heirachy specified and adding the project id to every file and directory. You can limit the recursion depth it runs to if you want to, but the default (infinite) is to walk the entire heirarchy.

You can confirm by running a quota report and checking the output...

Cheers,

Dave.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#10 lore raw

quota report returns nothing... :-( except two newlines...

# xfs_quota -x -c "report -phnN" /

#

Stefan

Am 01.09.2010 01:28, schrieb Dave Chinner:

Quoted 17 lines · Stefan Priebe - Profihost AG
Quoted 10 lines

Hi!

After booting the System to a RAM Image with prjquota (the quota check wents fine) and upgrading to xfsprogs 3.1.3.

I'm getting this when trying to setup a project Quota:
xfs_quota -x -c "project -s 2" /
Setting up project 2 (path /serverbackup/abc)... Processed 1 (/etc/projects and cmdline) paths for project 2 with recursion depth infinite (-1).

That's normal, I think. Adding project quota involves descending the directory heirachy specified and adding the project id to every file and directory. You can limit the recursion depth it runs to if you want to, but the default (infinite) is to walk the entire heirarchy.

Quoted 5 lines

You can confirm by running a quota report and checking the output...

Cheers,

Dave.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#11 lore raw
In reply to Stefan Priebe - Profihost AG
Quoted 9 lines · Stefan Priebe - Profihost AG

Hi,

on one of our systems i want to activate prjquota support. The relevant disk is the root disk so i added prjquota to rootflags kernel line.

But when i do so i always get OOM out of Memory while checking quota's. I also upgraded the system from 8GB to 16GB RAM but still the same. Kernel is vanilla 2.6.32.19.

Can you post your kernel log with the OOM messages and if existing any messages from XFS before that?

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs