From owner-freebsd-questions@freebsd.org Wed Jul 3 10:36:11 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C746B15CF81A for ; Wed, 3 Jul 2019 10:36:11 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6D4FB6E024 for ; Wed, 3 Jul 2019 10:36:11 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: matthew/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 23F66737E for ; Wed, 3 Jul 2019 10:36:11 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from leaf.local (unknown [88.212.184.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id D0E09C222 for ; Wed, 3 Jul 2019 10:36:09 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk/D0E09C222; dkim=none; dkim-atps=neutral Subject: Re: ZFS filesystem full and logs To: freebsd-questions@freebsd.org References: <9a4367f7-d0b5-e1df-0569-b22a9d182a63@netfence.it> From: Matthew Seaman Message-ID: Date: Wed, 3 Jul 2019 11:36:08 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <9a4367f7-d0b5-e1df-0569-b22a9d182a63@netfence.it> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 6D4FB6E024 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-3.00 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-1.00)[-0.995,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jul 2019 10:36:11 -0000 On 03/07/2019 08:57, Andrea Venturoli wrote: > When using UFS, if a filesystem gets full, this is logged via syslogd. > Can the same happen somehow for ZFS? > If it's possible, how is it done? ZFS doesn't fill up file systems: it fills up pools[*]. If your entire zpool is full up, then you'll know about it PDQ, as your machine will be a very unhappy bunny. However, because your zpool will (in general) have access to all of the available space on your hard drives, you're going to see a lot fewer problems with space usage than if you're dealing with a bunch of UFSes each fixed at just a fraction of your total available space. If the entire pool does fill up, you won't be able to write anything via syslog(8) anyhow. Keeping on top of disk usage is a standard task for system monitoring (nagios, icinga, many more) and most people would also make graphs showing usage over time (grafana, cacti, various others). If that's a bit too heavy-weight for you, then you could write a small periodic script to run every day and alert you in the daily e-mails if disk usage has hit whatever predefined limits you choose. Cheers, Matthew [*] Unless you set size limits on specific ZFSes...