From owner-freebsd-questions@FreeBSD.ORG Mon Feb 28 13:27:00 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 402E1106564A for ; Mon, 28 Feb 2011 13:27:00 +0000 (UTC) (envelope-from nr1c0re@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0DC328FC17 for ; Mon, 28 Feb 2011 13:26:59 +0000 (UTC) Received: by pwj8 with SMTP id 8so894285pwj.13 for ; Mon, 28 Feb 2011 05:26:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=UScxCcRFoqb6ie3ZWDF6epHl1Abrmx+xo9LMinc2Esk=; b=UlD+hP8St80WyxBVzikLwFFSxeG3glMufq20EGTJIT4KdWDAsyZaFc/1lNpLJXhvJ7 6lcCPZ8Sqow1SdqGXneKxFYOoTky5jZojwDtThG75n1pnrUW08+Ik9Axq3qx4pEkzTh7 oDx0/8aQcHjM2GM3zm2rV6umkhkNgwfGJh44s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=d/8wzCccwGvhq6PxsWZ5JgzilIZOHtOrePEIWseEoof5fhFJIyV9QB1JVO3cMecNVP X65DXKY6NQvONsesZM74BCCvD7NDi3dsNU90pXgl4xlN6Ce2qIWgE+nhtFZl8BrvMjXR /Od0Z6LrV1tORK1fu/oIWMqnmio0SLKlPC6+4= MIME-Version: 1.0 Received: by 10.142.12.20 with SMTP id 20mr4349337wfl.221.1298899619353; Mon, 28 Feb 2011 05:26:59 -0800 (PST) Received: by 10.142.50.16 with HTTP; Mon, 28 Feb 2011 05:26:59 -0800 (PST) In-Reply-To: <201102281218.p1SCIR87034416@mail.r-bonomi.com> References: <201102281218.p1SCIR87034416@mail.r-bonomi.com> Date: Mon, 28 Feb 2011 16:26:59 +0300 Message-ID: From: c0re To: Robert Bonomi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: / file system is full, but du does not show that it's full 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: Mon, 28 Feb 2011 13:27:00 -0000 2011/2/28 Robert Bonomi : >> From owner-freebsd-questions@freebsd.org =A0Mon Feb 28 05:31:46 2011 >> Date: Mon, 28 Feb 2011 14:24:30 +0300 >> From: c0re >> To: Matthew Seaman >> Cc: FreeBSD >> Subject: Re: / file system is full, but du does not show that it's full >> >> 2011/1/6 Matthew Seaman : >> > On 06/01/2011 11:26, c0re wrote: >> >> # df -h >> >> Filesystem =A0 =A0 Size =A0 =A0Used =A0 Avail Capacity =A0Mounted on >> >> /dev/ad0s1a =A0 =A0496M =A0 =A0466M =A0 -9.8M =A0 102% =A0 =A0/ >> >> >> >> So it's full. >> >> >> >> But by du it's not appeared to be full >> >> >> >> >> >> # du -hxd 1 / >> >> 2.0K =A0 =A0/.snap >> >> 512B =A0 =A0/dev >> >> 2.0K =A0 =A0/tmp >> >> 2.0K =A0 =A0/usr >> >> 2.0K =A0 =A0/var >> >> 1.9M =A0 =A0/etc >> >> 2.0K =A0 =A0/cdrom >> >> 2.0K =A0 =A0/dist >> >> 1.0M =A0 =A0/bin >> >> 131M =A0 =A0/boot >> >> =A010M =A0 =A0/lib >> >> 356K =A0 =A0/libexec >> >> 2.0K =A0 =A0/media >> >> =A012K =A0 =A0/mnt >> >> 2.0K =A0 =A0/proc >> >> 7.2M =A0 =A0/rescue >> >> 296K =A0 =A0/root >> >> 4.7M =A0 =A0/sbin >> >> 4.0K =A0 =A0/lost+found >> >> 157M =A0 =A0/ >> >> >> > >> > Do you have partitions mounted at /tmp, /usr, /var etc? =A0Does the >> > output of your du command change if you unmount those partitions? (It >> > might be an idea to boot into a livefs CD or DVD given that du(1) live= s >> > in /usr/bin, so a bit tricky to unmount /usr and then run du) >> > >> > My guess is that you've at one time created files beneath what is >> > usually a mount point. =A0Mounting the partition over them makes those >> > files inaccessible, but they still take up space on the drive. >> > >> > =A0 =A0 =A0 =A0Cheers, >> > >> > =A0 =A0 =A0 =A0Matthew >> > >> > -- >> > Dr Matthew J Seaman MA, D.Phil. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 7 = Priory Courtyard >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Flat 3 >> > PGP: http://www.infracaninophile.co.uk/pgpkey =A0 =A0 Ramsgate JID: >> > matthew@infracaninophile.co.uk =A0 =A0 =A0 =A0 =A0 =A0 =A0 Kent, CT11 = 9PW >> > >> > >> >> At last I found time to check it. Booted with frenzy life cd, mounted >> only / partition and saw trash >> /var/spool. Deleted it and it solved problem. >> But later was and idea to mount device of / (/dev/da0s1a) as /mnt/root >> and just delete those files without need of livecd. It works in Linux. >> But in freebsd i got >> >> # mount /dev/da0s1a /mnt/root/ >> mount: /dev/da0s1a : Operation not permitted >> >> So only single user mode or live cd could solve it. > > *NOT* true. =A0Stopping any daemons that were using "/var/spooll", and th= en > umount(1)-ing it would have done the trick from multi-user mode. > Yeah, not true. Checked with lsof /var and it was used by these daemons: devd syslogd rpcbind snmpd mysqld httpd sendmail cron Yes, I can stop them all, but was not sure about stopping devd...