From owner-freebsd-questions Fri Feb 28 13:13:16 2003 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 5203537B405 for ; Fri, 28 Feb 2003 13:13:14 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BBDC43FCB for ; Fri, 28 Feb 2003 13:13:09 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a144.otenet.gr [212.205.215.144]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h1SLD5ks015338; Fri, 28 Feb 2003 23:13:07 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.7/8.12.7) with ESMTP id h1SLD1ef003443; Fri, 28 Feb 2003 23:13:01 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.7/8.12.7/Submit) id h1SLD1AD003442; Fri, 28 Feb 2003 23:13:01 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 28 Feb 2003 23:13:01 +0200 From: Giorgos Keramidas To: David Radovanovic Cc: freebsd-questions@FreeBSD.org Subject: Re: Root filesystem 102% full (was: Disks filling up) Message-ID: <20030228211301.GA3173@gothmog.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-02-28 12:06, David Radovanovic wrote: > Hello, > Searched everywhere which lead me to a prior posting about a similar > problem. My file system is filling up again, but in different places. Thank you for looking at the archives first. Honestly, thanks :-) > I initiated a rscync script that runs via cron which coincidently > ran just before my system filling up. I'm sure the answer is obvious > to anyone but myself. Any help would help divert my disaster. > Thanks. My system: > > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 128990 127118 -8446 107% / > /dev/ad0s1f 257998 118 237242 0% /tmp > /dev/ad0s1g 9092908 2060994 6304482 25% /usr > /dev/ad0s1e 257998 83548 153812 35% /var > /dev/ad2s1a 128990 2 118670 0% /backup > /dev/ad2s1f 257998 2 237358 0% /backuptmp > /dev/ad2s1g 18028798 2083266 14503230 13% /backupusr > /dev/ad2s1e 257998 2 237358 0% /backuptmp > procfs 4 4 0 100% /proc Note that there is no /backupvar mount point listed above... > The script in question: > > #!/bin/sh > > /usr/local/bin/rsync -avx --delete --stats / /backup/ > /usr/local/bin/rsync -av --delete --stats --exclude=/run/ /var/ /backupvar/ > /usr/local/bin/rsync -av --delete --stats /usr/ /backupusr/ The second command will attempt to synchronise /var with /backupvar and effectively create a copy of the entire /var partition in your root filesystem. Since /dev/ad0s1e (your /var partition) is larger than /dev/ad0s1a (the root partition) this will quickly fill the root partition to 100% and start grabbing blocks from the "reserved space" (the default is 8% of the partition). You are running this as root and FreeBSD doesn't block you at 100% but goes on merrily with its job until both the partition and the reserved space are full (100 + 8 = 108%; this is why the usage percentage in / is listed as 107% and not as 100%). > Thanks again for any help. You're welcome :) - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message