From owner-freebsd-bugs@FreeBSD.ORG Sun Jan 12 07:50:00 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D2E66C36 for ; Sun, 12 Jan 2014 07:50:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AD2BA1D74 for ; Sun, 12 Jan 2014 07:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0C7o0VM096373 for ; Sun, 12 Jan 2014 07:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0C7o0UV096372; Sun, 12 Jan 2014 07:50:00 GMT (envelope-from gnats) Resent-Date: Sun, 12 Jan 2014 07:50:00 GMT Resent-Message-Id: <201401120750.s0C7o0UV096372@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matt Emmerton Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ABAEAAF0 for ; Sun, 12 Jan 2014 07:44:20 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 976701D4D for ; Sun, 12 Jan 2014 07:44:20 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s0C7iKQa074220 for ; Sun, 12 Jan 2014 07:44:20 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s0C7iKWW074199; Sun, 12 Jan 2014 07:44:20 GMT (envelope-from nobody) Message-Id: <201401120744.s0C7iKWW074199@oldred.freebsd.org> Date: Sun, 12 Jan 2014 07:44:20 GMT From: Matt Emmerton To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/185676: freebsd-update claimed success even though install ran out of disk space X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jan 2014 07:50:01 -0000 >Number: 185676 >Category: misc >Synopsis: freebsd-update claimed success even though install ran out of disk space >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 12 07:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Matt Emmerton >Release: 9.1-RELEASE-p7 >Organization: Computer Partners >Environment: FreeBSD olympia.compar.com 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep 9 21:23:37 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: I was using freebsd-update to move to 9.2: # freebsd-update -r 9.2-RELEASE upgrade Ran through all the merging no problem, and then went to install: # freebsd-update install Installing updates... /: write failed, filesystem is full install: ///boot/kernel/INS@bBbO: No space left on device Kernel updates have been installed. Please reboot and run "/usr/sbin/freebsd-update install" again to finish installing updates. OMG! Rebooting would likely have been fatal at that point. And yes, my root FS was full: olympia# df -k Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/ad0s1a 507630 487372 -20352 104% / devfs 1 1 0 100% /dev procfs 4 4 0 100% /proc /dev/ad0s1e 507630 18608 448412 4% /tmp /dev/ad0s1f 34443364 1377450 30310446 4% /usr /dev/ad0s1d 1469326 1057210 294570 78% /var /dev/ad4s1d 946031670 820026292 50322846 94% /bigvol1 After cleaning up root (had some old kernels hanging around) and re-running the install everything was fine. Since "freebsd-update install" knows how much space is needed for the new kernel, could it not check for adequate space up-front? (Same holds true for most other files, too.) >How-To-Repeat: Fill up root filesystem. Run freebsd-update install. See failures yet claims of success. >Fix: Ensure adequate disk space prior to running freebsd-install. >Release-Note: >Audit-Trail: >Unformatted: