From owner-freebsd-questions@FreeBSD.ORG Thu Jul 14 07:55:59 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FBBF16A41C for ; Thu, 14 Jul 2005 07:55:59 +0000 (GMT) (envelope-from i.tanusheff@procreditbank.bg) Received: from mail.procreditbank.bg (mail.procreditbank.bg [212.95.179.198]) by mx1.FreeBSD.org (Postfix) with SMTP id ED4E043D45 for ; Thu, 14 Jul 2005 07:55:57 +0000 (GMT) (envelope-from i.tanusheff@procreditbank.bg) Received: (qmail 58205 invoked from network); 14 Jul 2005 10:55:55 +0300 Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 14 Jul 2005 10:55:55 +0300 Received: from proxy.procreditbank.bg ([127.0.0.1]) by localhost (mail.procreditbank.bg [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 40624-688 for ; Thu, 14 Jul 2005 10:55:54 +0300 (EEST) Received: (qmail 58194 invoked from network); 14 Jul 2005 07:55:54 -0000 Received: from unknown (HELO outmail.procreditbank.bg) (172.16.248.123) by mail.procreditbank.bg with SMTP; 14 Jul 2005 07:55:54 -0000 In-Reply-To: <1121288487.25124.83.camel@hwijbenga.mspace.merchantspace.com> To: Hilco Wijbenga MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 From: Ivailo Tanusheff Message-ID: Date: Thu, 14 Jul 2005 10:55:21 +0300 X-MIMETrack: Serialize by Router on DOMINO_HQ/PROCREDITBANK(Release 6.5.1|January 21, 2004) at 07/14/2005 10:55:54 AM, Serialize complete at 07/14/2005 10:55:54 AM X-Virus-Scanned: by amavisd-new using ClamAV at procreditbank.bg Content-Type: text/plain; charset="US-ASCII" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Soft-updates & du & df X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 07:55:59 -0000 Hilco Wijbenga Sent by: owner-freebsd-questions@freebsd.org 07/14/2005 12:01 AM To freebsd-questions@freebsd.org cc Subject Soft-updates & du & df Hi, I've taken over the administration of a FreeBSD box and now I've run into a problem that I could not solve by means of Google or the FreeBSD mailinglist archives. I am quite familiar with (Gentoo) GNU/Linux but a complete newbie when it comes to FreeBSD. While I was doing some work I got an error about a device being full. As it turned out /var was completely full. Not a big problem because there were a few very big log files that I could throw away. Problem solved? Apparently not because root@svn[var]# df -h /var Filesystem Size Used Avail Capacity Mounted on /dev/ad2s1d 248M 246M -18M 108% /var even though root@svn[var]# du -hs /var 43M /var Shouldn't du and df roughly agree on the amount that's used/available? /var is mounted using soft-updates root@svn[var]# mount /dev/ad2s1a on / (ufs, local) devfs on /dev (devfs, local, multilabel) /dev/ad2s1e on /tmp (ufs, local, soft-updates) /dev/ad2s1f on /usr (ufs, local, soft-updates) /dev/ad2s1d on /var (ufs, local, soft-updates) /dev/gvinum/raid on /raid (ufs, local, soft-updates) According to what I found using Google regarding soft-updates this means that my changes are not written to disk immediately? Does that have anything to do with this? It looks like I didn't really solve the problem because if I try to copy a fairly big file (say 2MB) to the /var/log directory I get another 'No space left on device' even though there should now be about 200MB available. I can create small files though. How do I get du and df to agree again? Or do I have a different problem? Please let me know if I left out any important information. Bye, Hilco _______________________________________________ You can force the updates to be written to the disk using sync (8) for the whole system or fsync on a specific files. Or you can just wait a while so the updates are written to thr disk. Ivailo Tanusheff