Mailing List Archive

quota?
I dont see it in the TODO or any of the archive, but has anybody tried
using disk quotas with drbd ? They fail to enable for me on 2.4.3 with
drbd-0.6.1-pre2
Is this a feature that drbd needs to implement, or does the kernel need to
have stuff added for quotas on /dev/nb0, or does the quota utilities need
updating to work with drbd?
RE: quota? [ In reply to ]
Hi Ryan

> I dont see it in the TODO or any of the archive, but has anybody tried
> using disk quotas with drbd ? They fail to enable for me on 2.4.3 with
> drbd-0.6.1-pre2 Is this a feature that drbd needs to implement, or does
the
> kernel need to have stuff added for quotas on /dev/nb0, or does the quota
> utilities need updating to work with drbd?

I don't think that's an issue of drbd, I'd rather suspect your choice of
filesystem: I suspect you're using ext3 on the drbd device.

if yes, you've got to be carefule about your quota - tools: the tools check
if the filesystem type is in a list of systems known to support quotas and
if it doesn't match just silently don't do anything. Most systems I came
across dont't have ext3 on this list.

I've sent patches for this to sct and quota tools maintainers; don't know if
it's actually been included or not.

Bye, Martin
*******************************************************
Martin Bene, Tech. Manager Web Solutions
KPNQwest Austria GmbH, A-8020 Graz, Nikolaiplatz 4
t +43 (316) 813824, f +43 (316) 813824-26
e martin.bene@example.com, i http://www.kpnqwest.at
*******************************************************
RE: quota? [ In reply to ]
I am using ext2 as of currently. I was planning on moving up to ext3 or
some other sort of journalling file system if everything else works.




On Fri, 5 Oct 2001, Bene, Martin wrote:

> Hi Ryan
>
> > I dont see it in the TODO or any of the archive, but has anybody tried
> > using disk quotas with drbd ? They fail to enable for me on 2.4.3 with
> > drbd-0.6.1-pre2 Is this a feature that drbd needs to implement, or does
> the
> > kernel need to have stuff added for quotas on /dev/nb0, or does the quota
> > utilities need updating to work with drbd?
>
> I don't think that's an issue of drbd, I'd rather suspect your choice of
> filesystem: I suspect you're using ext3 on the drbd device.
>
> if yes, you've got to be carefule about your quota - tools: the tools check
> if the filesystem type is in a list of systems known to support quotas and
> if it doesn't match just silently don't do anything. Most systems I came
> across dont't have ext3 on this list.
>
> I've sent patches for this to sct and quota tools maintainers; don't know if
> it's actually been included or not.
>
> Bye, Martin
> *******************************************************
> Martin Bene, Tech. Manager Web Solutions
> KPNQwest Austria GmbH, A-8020 Graz, Nikolaiplatz 4
> t +43 (316) 813824, f +43 (316) 813824-26
> e martin.bene@example.com, i http://www.kpnqwest.at
> *******************************************************
>
>
RE: quota? [ In reply to ]
> I am using ext2 as of currently. I was planning on moving up
> to ext3 or
> some other sort of journalling file system if everything else works.

So, what you're doing is something like this:

* you've got userquota enabled in fstab:
/dev/nb0 /var/spool/mail ext3 noauto,usrquota 1 0

* you've got a quota.user file on the filesystem (from running
quotacheck -v /dev/nb0
once to initialize)

* you're turning on userquotas after starting datadisk
start drbd
start datadisk
quotaon -uv /dev/nb0

and quotas still aren't working?

Just as a confirmation: I'm running a system using ext3 + drbd with
userquotas, no problems so far.

Bye, Martin
RE: quota? [ In reply to ]
> * you've got a quota.user file on the filesystem (from running
> quotacheck -v /dev/nb0
> once to initialize)

I skipped this step - i have in the past just did a touch aquota.user or
the like, but after doing this, quotaon did not error out like it used to.

Thanks!