From owner-freebsd-questions Wed Jun 23 4:21: 4 1999 Delivered-To: freebsd-questions@freebsd.org Received: from volodya.prime.net.ua (volodya.prime.net.ua [195.64.229.17]) by hub.freebsd.org (Postfix) with ESMTP id 0045A150B0 for ; Wed, 23 Jun 1999 04:20:51 -0700 (PDT) (envelope-from andyo@prime.net.ua) Received: from prime.net.ua (localhost [127.0.0.1]) by volodya.prime.net.ua (8.9.3/8.8.8) with ESMTP id OAA03835; Wed, 23 Jun 1999 14:29:11 +0300 (EEST) (envelope-from andyo@prime.net.ua) Message-ID: <3770C4FE.22D82CFD@prime.net.ua> Date: Wed, 23 Jun 1999 14:29:03 +0300 From: "Andy V. Oleynik" Organization: M-Info X-Mailer: Mozilla 4.6 [en] (X11; I; FreeBSD 3.2-STABLE i386) X-Accept-Language: ru, en MIME-Version: 1.0 To: "Christopher J. Michaels" Cc: FreeBSD Mailing List Subject: Re: How often are quota's updated? References: <000001bebd0d$c7e12c40$0200000a@shithead.weeble.dyndns.org> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "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