From owner-freebsd-fs@FreeBSD.ORG Sat Sep 24 23:18:25 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDFA7106564A for ; Sat, 24 Sep 2011 23:18:25 +0000 (UTC) (envelope-from joe@tao.org.uk) Received: from alpha.tao.org.uk (alpha.tao.org.uk [95.154.203.106]) by mx1.freebsd.org (Postfix) with ESMTP id B59038FC0C for ; Sat, 24 Sep 2011 23:18:25 +0000 (UTC) Received: from localhost (alpha.tao.org.uk [95.154.203.106]) by alpha.tao.org.uk (Postfix) with ESMTP id 3977011E3C9; Sun, 25 Sep 2011 00:02:30 +0100 (BST) Received: from alpha.tao.org.uk ([95.154.203.106]) by localhost (mail.tao.org.uk [95.154.203.106]) (amavisd-maia, port 10024) with LMTP id 05992-02-6; Sun, 25 Sep 2011 00:02:29 +0100 (BST) Received: from [10.0.2.3] (p2.dhcp.tao.org.uk [90.155.77.81]) (Authenticated sender: joemail@alpha.tao.org.uk) by alpha.tao.org.uk (Postfix) with ESMTPA id 10B4911D1AF; Sat, 24 Sep 2011 22:44:42 +0100 (BST) From: Dr Josef Karthauser Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Sat, 24 Sep 2011 22:44:48 +0100 To: freebsd-fs@freebsd.org Message-Id: <2EF5C613-ACFF-449A-9388-664E0179F450@tao.org.uk> Mime-Version: 1.0 (Apple Message framework v1244.3) X-Mailer: Apple Mail (2.1244.3) X-Virus-Scanned: Maia Mailguard 1.0.2a Subject: Expanding a spool on a system with a single zfs root disk? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2011 23:18:26 -0000 Hey guys, I'm scratching my head working out how to expand a zpool on a remote = server. It's got a larger gpart partition, and I want to grow the zpool = into it. I've got remote console access, but the system has the root = disk on the same zfs pool, so I can't simply export and reimport the = pool from single user mode. :/ Any ideas on how to achieve this then? Joe # gpart show =3D> 34 482344893 ad0 GPT (230G) 34 128 1 freebsd-boot (64k) 162 8388608 2 freebsd-swap (4.0G) 8388770 473956157 3 freebsd-zfs (226G) # glabel list ad0p3 Geom name: ad0p3 Providers: 1. Name: gpt/disk0 Mediasize: 242665552384 (226G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 82944 Mode: r1w1e1 secoffset: 0 offset: 0 seclength: 473956157 length: 242665552384 index: 0 Consumers: 1. Name: ad0p3 Mediasize: 242665552384 (226G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 82944 Mode: r1w1e2 =09 # zpool status void pool: void state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM void ONLINE 0 0 0 gpt/disk0 ONLINE 0 0 0 errors: No known data errors =09 # zpool list void NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT void 126G 112G 13.7G 89% 1.00x ONLINE -