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

Problem z włączeniem quoty



Witam,

Czy ktoś się już spotkał z problemem we włączeniu quoty na debian etch?
Zarówno pod xfs jak i pod ext3.

Co robie.

# apt-get install quota
# vim /etc/fstab
# cat /etc/fstab

proc /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/sda1 none swap sw 0 0
/dev/sda2 / ext3 defaults 0 0
/dev/sda5 /tmp ext3 defaults 0 0
/dev/sda6 /var/log ext3 defaults 0 0
/dev/sda7 /var/www ext3 defaults,noatime,usrquota 0 0

# mount /dev/sda7 -o remount
# touch /var/www/aquota.user
# chmod 600 /var/www/aquota.user
# /etc/init.d/quota start
Checking quotas...done.
Turning on quotas...done.

# quota -u 1500
quota: error while getting quota from /dev/sda7 for #1500 (id 1500): Success

# edquota -u 1500
edquota: error while getting quota from /dev/sda7 for #1500 (id 1500): Success
Segmentation fault

W logach:
Jun  7 11:25:06 v5 kernel: edquota[2422]: segfault at 0000000000000004 rip 000000000804a623 rsp 00000000ff89ca20 error 4
Jun  7 11:25:11 v5 kernel: edquota[2423]: segfault at 0000000000000004 rip 000000000804a623 rsp 00000000ffaebf40 error 4
Jun  7 11:25:49 v5 kernel: edquota[2433]: segfault at 0000000000000004 rip 000000000804a623 rsp 00000000ffd751f0 error 4

Próbowałem quotatool. Wygląda że działa (tylko dlaczego nie można podać
uid użytkownika nie istniejącego w /etc/passwd?).

# quotatool -u root -b -q 1000000 -l 1000000 /dev/sda7
# quotatool -d -u root /dev/sda7
0 /dev/sda7 202584 1000000 1000000 0 4 0 0 0

Repquota też działa:

# repquota -a
*** Report for user quotas on device /dev/sda7
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --  202584 1000000 1000000              4     0     0       

Dystrybucja Debian Etch, Kernel:

ii  linux-image-2.6.18-4-amd64    2.6.18.dfsg.1-12etch2           Linux 2.6.18 image on AMD64

Testowałem też dla kernela z backports.org:

ii  linux-image-2.6.21-1-amd64    2.6.21-4~bpo.1                  Linux 2.6.21 image on AMD64

Wynik ten sam.

Najciekawsze, że posiadam identyczny serwer(y) - ta sama dystrybucja,
ten sam fs, ten sam kernel (2.6.18-4-amd4) - tam problem nie występuje.

System plików to 2x300GB spięte na kontrolerze 3ware w RAID0. System
plików sformatowany z opcją -i 4096 i -O dir_index.

# df -i /dev/sda7
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/sda7            138182656      12 138182644    1% /var/www

# df /dev/sda7
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda7            535383180    202592 507545980   1% /var/www

Jak już pisałem, próbowałem bawić się z XFS - ten sam efekt :/

-- 
Piotr 'QuakeR' Gasidło, BOFH @ pandora.barbara.eu.org
############## sending lusers to /dev/null since 1998
##### Waiting for tomorrow, for a little ray of light
### Waiting for tomorrow just to see your smile again

Attachment: signature.asc
Description: Digital signature


Reply to: