From owner-freebsd-questions Wed Jun 23 8:23:36 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cartman.weeble.dyndns.org (ubppp233-44.dialin.buffalo.edu [128.205.233.44]) by hub.freebsd.org (Postfix) with ESMTP id 6A35A153E2 for ; Wed, 23 Jun 1999 08:23:16 -0700 (PDT) (envelope-from cjm2@earthling.net) Received: from shithead (cjm2@shithead.weeble.dyndns.org [10.0.0.2]) by cartman.weeble.dyndns.org (8.9.3/8.9.3) with SMTP id LAA26427; Wed, 23 Jun 1999 11:22:55 -0400 (EDT) (envelope-from cjm2@earthling.net) From: "Christopher J. Michaels" To: "Andy V. Oleynik" Cc: "FreeBSD Mailing List" Subject: RE: How often are quota's updated? Date: Wed, 23 Jun 1999 11:22:53 -0400 Message-ID: <000201bebd8c$43602c80$0200000a@shithead.weeble.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <3770C4FE.22D82CFD@prime.net.ua> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Man do I feel like an idiot. I could SWEAR that I changed that to YES before. Oh well. Thank you for pointing out my mistake. Guess I need to do a better job of proofreading my mail. ;^) -Chris -----Original Message----- From: root@volodya.prime.net.ua [mailto:root@volodya.prime.net.ua]On Behalf Of Andy V. Oleynik Sent: Wednesday, June 23, 1999 7:29 AM To: Christopher J. Michaels Cc: FreeBSD Mailing List Subject: Re: How often are quota's updated? "Christopher J. Michaels" wrote: > How often are quota's updated in 3.2-STABLE? I seem to remember the output > of quota -v being fairly close to realtime on my 2.2.8-STABLE system. Now > it seems I have to run quotacheck before quotas get updated. > > Did I do something wrong this time around? Since this machine only gets > rebooted when necessary, it appears to be a problem. > > ---- > 7:56pm [cjm2@cartman] ~ -> quota -v > Disk quotas for user cjm2 (uid 1000): > Filesystem blocks quota limit grace files quota limit > grace > /usr 40821 100000 0 634 0 0 > 7:56pm [cjm2@cartman] ~ -> dd if=/dev/zero of=test count=500000 > 500000+0 records in > 500000+0 records out > 256000000 bytes transferred in 44.412038 secs (5764203 bytes/sec) > 7:59pm [cjm2@cartman] ~ -> du -d 0 > 289307 . > 7:59pm [cjm2@cartman] ~ -> quota -v > Disk quotas for user cjm2 (uid 1000): > Filesystem blocks quota limit grace files quota limit > grace > /usr 40821 100000 0 634 0 0 > ---- > > I know I'm over quota at this point... this could be a security risk, > someone could just fill my file system and I'd be none the wise since it > doesn't seem to keep up with these things. > > Now I KNOW something's wrong. Check the following output out... after I've > run quotacheck it says that I'm over quota. > > ---- > 8:03pm [cjm2@cartman] ~ -> quota -v > Disk quotas for user cjm2 (uid 1000): > Filesystem blocks quota limit grace files quota limit > grace > /usr 292220* 100000 0 none 670 0 0 > 8:04pm [cjm2@cartman] ~ -> cat > test2 > This is a test of my quotas > 8:04pm [cjm2@cartman] ~ -> > ---- > > and file test2 does exist. So it's not even enforcing quotas at all. What > did I do wrong? > > ---- > 8:04pm [cjm2@cartman] /etc -> grep quota /etc/rc.conf > check_quotas="YES" # check quotas on startup (or NO) > enable_quotas="NO" # turn on quotas on startup (or NO). > ---- Here U have quota turned off. Do U run it later by quotaon? > > > Also, options QUOTA is in my kernel config, and I have rebuilt and installed > the kernel, several times, and I did do a make clean. > > What have I missed? > > -Chris > > "f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng." > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- WBW Andy V. Oleynik (When U work in virtual office U have good chance to obtain virtual money ö%-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message