From owner-freebsd-fs@freebsd.org Sat Mar 3 07:13:36 2018 Return-Path: Delivered-To: freebsd-fs@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 C7F09F45E59 for ; Sat, 3 Mar 2018 07:13:36 +0000 (UTC) (envelope-from spry@anarchy.in.the.ph) Received: from mail-io0-x22f.google.com (mail-io0-x22f.google.com [IPv6:2607:f8b0:4001:c06::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6240072145 for ; Sat, 3 Mar 2018 07:13:36 +0000 (UTC) (envelope-from spry@anarchy.in.the.ph) Received: by mail-io0-x22f.google.com with SMTP id l12so12909975ioc.10 for ; Fri, 02 Mar 2018 23:13:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarchy-in-the-ph.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=Zmhbj/B95oFwFdgvEn4jZD8VJxgBshR0rWNhHXux6mk=; b=dB1WD1/EdT9tI8fjU2yuWRJs31PG0AyUrFuIo1lAiBgNL30Y9FqBkv9LthvwVZl54q bcNaSyrl+VucjbL9BE+hDEce7xRtKx7TMOiFVNHg97a06RRlYxN8NwPNLgUPL5E73Qf4 ls/f83PfUjsH4YexsAB5yo5flZDA48bIeBsnLSY7dDZYKqEvjzHh+gEbIvpCJ0TZHo57 lWY6m95umfBFeEjhBtvFaIoeH6Pqt0qYg1ROgbiOJwA9Fnn9+BDzcVc69YSbnMtIdgn1 W+NykSJNCAW6ilypviQ6Xq5X4wE/p/3WH2P2t7dUXWnVf6trTjqn7k1Ru7hZCTeJSlLO Rylw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Zmhbj/B95oFwFdgvEn4jZD8VJxgBshR0rWNhHXux6mk=; b=O51pnrU9u9rF3JnmwNWawShv+UVDc3lE9EHMaWCcDU/6P9dYK/XbZj/yPqUeJMXpIu q4x8IxN+zoPSXxQIy+WR1d06PfmcUGANs3LnNO88DlWI7pUx2B7rsgKvkZuEs0FAf9kf cgBqopDwHwCjZqlaHazQRwkivhlFM72aHTecA1dTCyiJh7B+8ZVVzsWh8kWVNxX5FN80 Zsza/quzOr1aVIjliuPZFEe1RA/X3EOLyxC1KVAEO099aLnE3UpsB4k5SQuVU07CwVuX ZAfozp6l9jYnZoDfaift4TPdtsKsfkgBDV73n7dx7udFL4+hJEmxOsaEXJtcQ3jL4ZUN X68Q== X-Gm-Message-State: APf1xPDBMwyWbb7n/BXrRwB8mnZhzGt3VdvC0dapSsKYoAqLrWLGSVT0 douJzpeoisXORFg89geMRheTy8f7 X-Google-Smtp-Source: AG47ELu7vbLW8RHGWNttyG/JjxiWkslL1mzVQGy89LeErAR1yVir5pWoLD6T6ZJc4dT3fuNzIMv8mw== X-Received: by 10.107.22.1 with SMTP id 1mr10040873iow.238.1520061215571; Fri, 02 Mar 2018 23:13:35 -0800 (PST) Received: from m1a1x0.krakensys.lokal ([118.200.253.91]) by smtp.googlemail.com with ESMTPSA id 80sm1732632itk.13.2018.03.02.23.13.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Mar 2018 23:13:35 -0800 (PST) Subject: Re: growfs only works on GPT partitioning schemes? To: Warner Losh , Martin Simmons References: <201802261411.w1QEBRt1002026@higson.cam.lispworks.com> Cc: FreeBSD FS From: "Mars G. Miro" Message-ID: <5A9A4B1E.8070206@anarchy.in.the.ph> Date: Sat, 3 Mar 2018 15:13:34 +0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Mar 2018 07:13:37 -0000 On 02/26/18 22:30, Warner Losh wrote: > > On Mon, Feb 26, 2018 at 7:11 AM, Martin Simmons > wrote: > > >>>>> On Mon, 26 Feb 2018 11:55:10 +0800, Mars G Miro said: > > > > It seems that growfs only works on GPT partitioned schemes ? > > > > When I first installed my FreeBSD, I unfortunately chose BSD during the > > FS creation. Now that I ran out of space, I wanted to increase the > > filesystem size. Successfully did so in Virtualbox but after rebooting, the > > HD doesn't see the new allocated space. It has another virtual HD, one > > created with GPT and I was able to increase it via growfs. > > For the BSD scheme, I think you also have to resize the slice (i.e. > the MBR > entry) and then resize the BSD partition within the slice. > > > You do. The /etc/rc.d script that does resize on boot does that > automatically, but we have no other automation for the process. > > Warner You guys have any idea how to resize the slice ? I have 2 HDs, both have already been increased (in VirtualBox). The BSD partitioned scheme below doesn't see the newly allocated disk space, only the GPT one. camcontrol reprobe / gpart recover / etc doesn't do anything. mars@fbsd11vm1:~ % gpart show => 0 83886080 ada0 BSD (40G) 0 4194304 1 freebsd-ufs (2.0G) 4194304 16777216 2 freebsd-ufs (8.0G) 20971520 62914559 4 freebsd-ufs (30G) 83886079 1 - free - (512B) => 40 104857520 ada1 GPT (60G) [CORRUPT] 40 12582912 1 freebsd-swap (6.0G) 12582952 92274608 2 freebsd-ufs (44G) I think I might just have to dump/restore this to another GPT virtual HD then. Thanks. -- I sent a message to another time, But as the days unwind -- this I just can't believe, I sent a message to another plane, Maybe it's all a game -- but this I just can't conceive. ... I met someone who looks at lot like you, She does the things you do, but she is an IBM. She's only programmed to be very nice, But she's as cold as ice, whenever I get too near, She tells me that she likes me very much, But when I try to touch, she makes it all too clear. ... I realize that it must seem so strange, That time has rearranged, but time has the final word, She knows I think of you, she reads my mind, She tries to be unkind, she knows nothing of our world. -- ELO, "Yours Truly, 2095"