From owner-svn-src-head@freebsd.org Tue May 10 18:28:39 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E69E5B36DE8; Tue, 10 May 2016 18:28:39 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B77131B1E; Tue, 10 May 2016 18:28:39 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4AIScrh023079; Tue, 10 May 2016 18:28:38 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4AISc6P023078; Tue, 10 May 2016 18:28:38 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201605101828.u4AISc6P023078@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Tue, 10 May 2016 18:28:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299382 - head/sbin/growfs X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2016 18:28:40 -0000 Author: trasz Date: Tue May 10 18:28:38 2016 New Revision: 299382 URL: https://svnweb.freebsd.org/changeset/base/299382 Log: Update the example growfs(8) manual page to include information on how to make the system "notice" the updated disk size. (Relnotes, since I've forget to set it for "camcontrol reprobe", and it's worth mentioning.) MFC after: 1 month Relnotes: yes Sponsored by: The FreeBSD Foundation Modified: head/sbin/growfs/growfs.8 Modified: head/sbin/growfs/growfs.8 ============================================================================== --- head/sbin/growfs/growfs.8 Tue May 10 18:18:29 2016 (r299381) +++ head/sbin/growfs/growfs.8 Tue May 10 18:28:38 2016 (r299382) @@ -37,7 +37,7 @@ .\" $TSHeader: src/sbin/growfs/growfs.8,v 1.3 2000/12/12 19:31:00 tomsoft Exp $ .\" $FreeBSD$ .\" -.Dd November 20, 2014 +.Dd May 10, 2016 .Dt GROWFS 8 .Os .Sh NAME @@ -99,16 +99,15 @@ will enlarge the file system to the size Expand root file system to fill up available space: .Dl growfs / .Pp -Resize -.Pa /dev/ada0p1 -partition to 2GB and expand the file system: -.Dl gpart resize -i 1 -s 2G ada0 -.Dl growfs -s 2G /dev/ada0p1 +Refresh the LUN size, resize the partition to use all available +capacity, and expand the filesystem accordingly: +.Dl camcontrol reprobe da0 +.Dl gpart recover da0 +.Dl gpart resize -i 1 da0 +.Dl growfs /dev/da0p1 .Sh SEE ALSO -.Xr dumpfs 8 , -.Xr ffsinfo 8 , +.Xr camcontrol 8 , .Xr fsck 8 , -.Xr fsdb 8 , .Xr gpart 8 , .Xr newfs 8 , .Xr tunefs 8