Hello,
the following procedure to set up quotas worked for me. Maybe it will help
you.

Sincerely,

      - Henrik

# 0) kernel must be compiled with quota support... the standard redhat
kernels have quota support turned on by default.

   stock kernel seems to support old kernels (vfsold),    (at least up to
2.4.17)
   redhat kernels seem to support new quotas (vfsv0)

# 1) add user and/or group quotas to /etc/fstab:

LABEL=/home /home ext3 defaults,usrquota 1 2
LABEL=/home /home ext3 defaults,usrquota,grpquota 1 2

# 2) reboot... you will get a quotaon error message.

# 3) create quotafile (make sure the format is correct):
quotacheck -Maugv -F vfsold   (stock)
quotacheck -Maugv -F vfsv0    (redhat)

You may not need or want the -M flag, see the man pages.

# 4) enable quotas (or reboot)
quotaon -a

# 5) commands:
repquota -a
edquota <user>



----- Original Message -----
From: "Nicolas Bock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 21, 2002 9:14 AM
Subject: Re: quota: Error while getting quota [...] No such file or
directory


> > >quota: Error while getting quota from myhost:(pid3258) for 3369: No
such
> > >file or directory
> > >Disk quotas for user nbock (uid 3369): none
> >
> >
> > You need to initialise the disk quota files on that volume (quota.user
and
> > quota.group). Use edquota to do it.
>
> Even after doing that, I still get the error message:
>
> [0621/9:42]my_client:~>quota
> quota: Error while getting quota from my_client:(pid1059) for 3369: No
such
> file or directory
> Disk quotas for user nbock (uid 3369):
>      Filesystem  blocks   quota   limit   grace   files   quota   limit
> grace
>        /dev/md1 29554420  50000000 60000000           26390   50000
> 75000
>
> I don't know what file quota is talking about. I found out something
> interesting though. Take a look at the following commands:
>
> [0621/10:10]my_client:~>quota
> quota: Error while getting quota from my_client:(pid1059) for 3369: No
such
> file or directory
> Disk quotas for user nbock (uid 3369): none
>
> [0621/10:10]my_client:~>quota -u
> quota: Error while getting quota from my_client:(pid1059) for 3369: No
such
> file or directory
> Disk quotas for user nbock (uid 3369): none
>
> [0621/10:10]my_client:~>quota -F vfsv0
> Disk quotas for user nbock (uid 3369): none
>
> When I force quota to use the new version of quota, then it doesn't
complain
> about some file not being found. Is that a bug in quota?
>
> nick
>
>
>
>
>




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to