linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.4, 2.4-ac and quotas
@ 2001-09-14 16:45 Matt Bernstein
  2001-09-14 17:02 ` Alan Cox
  2001-09-17 12:56 ` Jan Kara
  0 siblings, 2 replies; 10+ messages in thread
From: Matt Bernstein @ 2001-09-14 16:45 UTC (permalink / raw)
  To: linux-kernel

I'm desperately looking for some recent documentation on quotas.

We've recently upgraded our two Debian potato fileservers to 2.4 and
2.4-ac (currently they're both running 2.4-ac so I can't check 2.4 atm)
and quotas have stopped working.

The quota package is 3.00pre01-7.bunk, and quotaon calls quotactl which
returns -1 ENOENT (No such file or directory), as it's looking for
aquota.user, evidently a "version 2 quota" (according to the edquota
manpage), and not falling back to the quota.user files which do exist.

So now we're essentially running without quota support :-(

On another computer (Debian woody) I've made an ext3 partition, touched
aquota.user and quotactl now returns -1 EINVAL (Invalid argument).

Please can anyone help? Should I switch to XFS and go back to a
2.4.5-based kernel?

Matt


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4, 2.4-ac and quotas
  2001-09-14 16:45 2.4, 2.4-ac and quotas Matt Bernstein
@ 2001-09-14 17:02 ` Alan Cox
  2001-09-14 17:17   ` Matt Bernstein
  2001-09-17 12:56 ` Jan Kara
  1 sibling, 1 reply; 10+ messages in thread
From: Alan Cox @ 2001-09-14 17:02 UTC (permalink / raw)
  To: Matt Bernstein; +Cc: linux-kernel

> We've recently upgraded our two Debian potato fileservers to 2.4 and
> 2.4-ac (currently they're both running 2.4-ac so I can't check 2.4 atm)
> and quotas have stopped working.

The -ac kernels use the updated quota tools - they are needed to support
32bit uid quota

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4, 2.4-ac and quotas
  2001-09-14 17:02 ` Alan Cox
@ 2001-09-14 17:17   ` Matt Bernstein
  2001-09-14 17:27     ` Alan Cox
  2001-09-14 17:51     ` Chris Meadors
  0 siblings, 2 replies; 10+ messages in thread
From: Matt Bernstein @ 2001-09-14 17:17 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

At 18:02 +0100 Alan Cox wrote:

>> We've recently upgraded our two Debian potato fileservers to 2.4 and
>> 2.4-ac (currently they're both running 2.4-ac so I can't check 2.4 atm)
>> and quotas have stopped working.
>
>The -ac kernels use the updated quota tools - they are needed to support
>32bit uid quota

OK.. so I download and build quota-3.01-pre9 on my woody box and I still
get EINVAL (2.4.9-ac10 + ext3 0.9.9 + ext3 speedup + ext3 experimental VM
patch + jfs 1.0.4). Can you tell me where the updated tools are please?


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4, 2.4-ac and quotas
  2001-09-14 17:17   ` Matt Bernstein
@ 2001-09-14 17:27     ` Alan Cox
  2001-09-14 17:51     ` Chris Meadors
  1 sibling, 0 replies; 10+ messages in thread
From: Alan Cox @ 2001-09-14 17:27 UTC (permalink / raw)
  To: Matt Bernstein; +Cc: Alan Cox, linux-kernel

> OK.. so I download and build quota-3.01-pre9 on my woody box and I still
> get EINVAL (2.4.9-ac10 + ext3 0.9.9 + ext3 speedup + ext3 experimental VM
> patch + jfs 1.0.4). Can you tell me where the updated tools are please?

I got them from the quota folks. They are also packaged by most (non debian)
vendors. If you cant find the right tar ball I can pull it out from one
and send it to you

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4, 2.4-ac and quotas
  2001-09-14 17:17   ` Matt Bernstein
  2001-09-14 17:27     ` Alan Cox
@ 2001-09-14 17:51     ` Chris Meadors
  1 sibling, 0 replies; 10+ messages in thread
From: Chris Meadors @ 2001-09-14 17:51 UTC (permalink / raw)
  To: Matt Bernstein; +Cc: linux-kernel

On Fri, 14 Sep 2001, Matt Bernstein wrote:

> OK.. so I download and build quota-3.01-pre9 on my woody box and I still
> get EINVAL (2.4.9-ac10 + ext3 0.9.9 + ext3 speedup + ext3 experimental VM
> patch + jfs 1.0.4). Can you tell me where the updated tools are please?

That is the package I'm using with 2.4.9-ac10.  Did you convertquota?

-Chris
-- 
Two penguins were walking on an iceberg.  The first penguin said to the
second, "you look like you are wearing a tuxedo."  The second penguin
said, "I might be..."                         --David Lynch, Twin Peaks


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4, 2.4-ac and quotas
  2001-09-14 16:45 2.4, 2.4-ac and quotas Matt Bernstein
  2001-09-14 17:02 ` Alan Cox
@ 2001-09-17 12:56 ` Jan Kara
  2001-09-17 13:15   ` Matt Bernstein
  1 sibling, 1 reply; 10+ messages in thread
From: Jan Kara @ 2001-09-17 12:56 UTC (permalink / raw)
  To: Matt Bernstein; +Cc: linux-kernel

  Hello,

> I'm desperately looking for some recent documentation on quotas.
> 
> We've recently upgraded our two Debian potato fileservers to 2.4 and
> 2.4-ac (currently they're both running 2.4-ac so I can't check 2.4 atm)
> and quotas have stopped working.
> 
> The quota package is 3.00pre01-7.bunk, and quotaon calls quotactl which
> returns -1 ENOENT (No such file or directory), as it's looking for
> aquota.user, evidently a "version 2 quota" (according to the edquota
> manpage), and not falling back to the quota.user files which do exist.
> 
> So now we're essentially running without quota support :-(
> 
> On another computer (Debian woody) I've made an ext3 partition, touched
> aquota.user and quotactl now returns -1 EINVAL (Invalid argument).
  Before you can use new quota you have to convert old quotafiles to new
ones. You can do this by convertquota(8) utility which is in the package.
Or you can just run 'quotacheck -F vfsv0 -c <mountpoint>' to create completely
new quota files with new quota format.
  3.01-pre9 which Alan pointed you to is the latest release of quota tools
(I have already some bugfixes but they are of minor nature).

									Honza

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4, 2.4-ac and quotas
  2001-09-17 12:56 ` Jan Kara
@ 2001-09-17 13:15   ` Matt Bernstein
  2001-09-17 13:28     ` Jan Kara
  0 siblings, 1 reply; 10+ messages in thread
From: Matt Bernstein @ 2001-09-17 13:15 UTC (permalink / raw)
  To: Jan Kara; +Cc: linux-kernel

>> I'm desperately looking for some recent documentation on quotas.
>>
>> We've recently upgraded our two Debian potato fileservers to 2.4 and
>> 2.4-ac (currently they're both running 2.4-ac so I can't check 2.4 atm)
>> and quotas have stopped working.

>  Before you can use new quota you have to convert old quotafiles to new
>ones. You can do this by convertquota(8) utility which is in the package.
>Or you can just run 'quotacheck -F vfsv0 -c <mountpoint>' to create completely
>new quota files with new quota format.

Thanks--over the weekend I appear to have that bit working. I still can't
add quotas to my shiny new ext3 partition though :(

$ touch /export01/aquota.user
$ umount /export01
$ mount /export01 -o usrquota
$ quotaon /export01
quotaon: using /export01/aquota.user on /dev/sda3: Invalid argument

The strace shows:
quotactl(0x10000, 0x8053fe8, 0, 0x8053fc8) = -1 EINVAL (Invalid argument)

Is there a recent HOWTO on this (maybe I've got it wrong)?

Cheers,

Matt


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4, 2.4-ac and quotas
  2001-09-17 13:15   ` Matt Bernstein
@ 2001-09-17 13:28     ` Jan Kara
  2001-09-17 14:03       ` Matt Bernstein
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Kara @ 2001-09-17 13:28 UTC (permalink / raw)
  To: Matt Bernstein; +Cc: linux-kernel

  Hello,

> >> I'm desperately looking for some recent documentation on quotas.
> >>
> >> We've recently upgraded our two Debian potato fileservers to 2.4 and
> >> 2.4-ac (currently they're both running 2.4-ac so I can't check 2.4 atm)
> >> and quotas have stopped working.
> 
> >  Before you can use new quota you have to convert old quotafiles to new
> >ones. You can do this by convertquota(8) utility which is in the package.
> >Or you can just run 'quotacheck -F vfsv0 -c <mountpoint>' to create completely
> >new quota files with new quota format.
> 
> Thanks--over the weekend I appear to have that bit working. I still can't
> add quotas to my shiny new ext3 partition though :(
> 
> $ touch /export01/aquota.user
> $ umount /export01
> $ mount /export01 -o usrquota
> $ quotaon /export01
> quotaon: using /export01/aquota.user on /dev/sda3: Invalid argument
> 
> The strace shows:
> quotactl(0x10000, 0x8053fe8, 0, 0x8053fc8) = -1 EINVAL (Invalid argument)
> 
> Is there a recent HOWTO on this (maybe I've got it wrong)?
  And are you sure that /export01/aquota.user is correct quotafile (ie.
created by quotacheck or convertquota)? This is message you usually get
when quotafile has incorrect header... (or also when bogus arguments
are specified but it's probably not your case).

								Honza

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4, 2.4-ac and quotas
  2001-09-17 13:28     ` Jan Kara
@ 2001-09-17 14:03       ` Matt Bernstein
  2001-09-17 14:15         ` Jan Kara
  0 siblings, 1 reply; 10+ messages in thread
From: Matt Bernstein @ 2001-09-17 14:03 UTC (permalink / raw)
  To: Jan Kara; +Cc: linux-kernel, bertie

At 15:28 +0200 Jan Kara wrote:

>  And are you sure that /export01/aquota.user is correct quotafile (ie.
>created by quotacheck or convertquota)? This is message you usually get
>when quotafile has incorrect header... (or also when bogus arguments
>are specified but it's probably not your case).

Bingo.. I naively read http://www.linuxdoc.org/HOWTO/mini/Quota.html
and applied it to vfsv0. Could this be updated to reflect the new quotas
please? I'd like to read of the differences--is, for example, the new
quotacheck faster? Or does it all depend on the speed of the underlying
filesystem ond not much else?

Thanks,

Matt


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4, 2.4-ac and quotas
  2001-09-17 14:03       ` Matt Bernstein
@ 2001-09-17 14:15         ` Jan Kara
  0 siblings, 0 replies; 10+ messages in thread
From: Jan Kara @ 2001-09-17 14:15 UTC (permalink / raw)
  To: Matt Bernstein; +Cc: linux-kernel, bertie

  Hello,

> At 15:28 +0200 Jan Kara wrote:
> 
> >  And are you sure that /export01/aquota.user is correct quotafile (ie.
> >created by quotacheck or convertquota)? This is message you usually get
> >when quotafile has incorrect header... (or also when bogus arguments
> >are specified but it's probably not your case).
> 
> Bingo.. I naively read http://www.linuxdoc.org/HOWTO/mini/Quota.html
> and applied it to vfsv0. Could this be updated to reflect the new quotas
> please? I'd like to read of the differences--is, for example, the new
  Ok. I'll try to update the howto and send it to maintainer.

> quotacheck faster? Or does it all depend on the speed of the underlying
> filesystem ond not much else?
  The main difference is that new quota format supports 32-uids. There are
other minor changes - like root is no longer special user and such.
  quotacheck speed relies completely on filesystem speed - quotacheck
has to scan all the filesystem. If you use e2fslib support on ext2 than
it should be reasonably fast but I agree that otherwise it's pain.

								Honza
--
Jan Kara <jack@suse.cz>
SuSE Labs

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-09-17 14:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-14 16:45 2.4, 2.4-ac and quotas Matt Bernstein
2001-09-14 17:02 ` Alan Cox
2001-09-14 17:17   ` Matt Bernstein
2001-09-14 17:27     ` Alan Cox
2001-09-14 17:51     ` Chris Meadors
2001-09-17 12:56 ` Jan Kara
2001-09-17 13:15   ` Matt Bernstein
2001-09-17 13:28     ` Jan Kara
2001-09-17 14:03       ` Matt Bernstein
2001-09-17 14:15         ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).