XFS und Quota

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
alexander newald
Posts: 1117
Joined: 2002-09-27 00:54
Location: Hannover
 

XFS und Quota

Post by alexander newald »

Hi,

ich versuche auf einem neuen Server mit XFS Quota zu setzen:

Code: Select all

#mount
/dev/sda7 on /www/apache/home type xfs (rw,quota)

# quotatool -u test -b -l 50 -q 50 /dev/sda7
quotatool: Failed fetching quotas: No such file or directory

# cat .config | grep XFS
CONFIG_XFS_FS=y
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
quotatool ist 1.4.7, kernel ist 2.6.11.2

Was ist falsch
User avatar
Joe User
Project Manager
Project Manager
Posts: 11186
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: XFS und Quota

Post by Joe User »

Code: Select all

No such file or directory
Der erste April war gestern...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
alexander newald
Posts: 1117
Joined: 2002-09-27 00:54
Location: Hannover
 

Re: XFS und Quota

Post by alexander newald »

;-) Ist wirklich die Ausgabe!

Code: Select all

close(3)                                = 0
open("/etc/mtab", O_RDONLY)             = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=432, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(3, "LABEL=/ / ext3 rw 0 0nproc /proc"..., 4096) = 432
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
stat64("/proc/fs/xfs/stat", {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
quotactl(Q_XGETQUOTA|USRQUOTA, "/dev/sda7", 2000, 0xbfffdda0) = -1 ENOENT (No such file or directory)
write(2, "quotatool: ", 11quotatool: )             = 11
write(2, "Failed fetching quotas: No such "..., 49Failed fetching quotas: No such file or directory) = 49
write(2, "n", 1
)                       = 1
exit_group(3)                           = ?
User avatar
Joe User
Project Manager
Project Manager
Posts: 11186
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: XFS und Quota

Post by Joe User »

Hast Du die fehlenden Files spasseshalber mal angelegt? Wenn Du jetzt mit Nein antwortest, wirst Du Dir ein dickes RTFM/RTFF einfangen...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
alexander newald
Posts: 1117
Joined: 2002-09-27 00:54
Location: Hannover
 

Re: XFS und Quota

Post by alexander newald »

Ã?h. welche Datei? /dev/sda7 ist die Partition ???
mc5000
Posts: 308
Joined: 2004-06-17 11:56
Location: Köln
 

???

Post by mc5000 »

Vielleicht versteh ich das nicht ganz (wahrscheinlich sogar :wink: ), aber was kommt bei:

Code: Select all

# quotatool -u test -b -l 50 -q 50 /www/apache/home
mausgreck
Posts: 84
Joined: 2005-03-19 17:22
 

Nicht initialisiert?

Post by mausgreck »

Ich verwende kein XFS, aber das hört sich nach nicht initialisierten quotas an:

Code: Select all

        /*
         * If everything's NULL, this dquot doesn't quite exist as far as
         * our utility programs are concerned.
         */
        if (XFS_IS_DQUOT_UNINITIALIZED(dqp)) {
                xfs_qm_dqput(dqp);
                return XFS_ERROR(ENOENT);
        }
Oder?
cosmicboy
Posts: 146
Joined: 2003-02-04 13:28
 

Re: XFS und Quota

Post by cosmicboy »

Damit ich auf meinem System mit XFS Quota ans laufen bringen konnte, mußte ich Kernelparameter übergeben.

Bei Grub siehts bei mir so aus:

Code: Select all

kernel (hd0,0)/boot/bzImage root=/dev/md6 rootflags=usrquota,grpquota ro
Hilft dir das weiter?
alexander newald
Posts: 1117
Joined: 2002-09-27 00:54
Location: Hannover
 

Re: XFS und Quota

Post by alexander newald »

Hm, aber was fehlt bei mir zum Initialisieren der Quotas unter XFS ?
cosmicboy
Posts: 146
Joined: 2003-02-04 13:28
 

Re: XFS und Quota

Post by cosmicboy »

Alexander Newald wrote:Hm, aber was fehlt bei mir zum Initialisieren der Quotas unter XFS ?
Du magst zwar XFS in deine Sourcen kompiliert haben, aber dein Kernel lädt keine Quotaunterstützung. War bei mir so und weiß der Geier warum.

Kernelparameter übergeben und dann ging es zumindest bei mir sofort!
mausgreck
Posts: 84
Joined: 2005-03-19 17:22
 

Re: XFS und Quota

Post by mausgreck »

cosmicboy wrote:Kernelparameter übergeben und dann ging es zumindest bei mir sofort!
Aber das scheint nur nötig zu sein, wenn XFS am rootfs liegt, nicht?