Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Sep 2011 22:44:48 +0100
From:      Dr Josef Karthauser <joe@tao.org.uk>
To:        freebsd-fs@freebsd.org
Subject:   Expanding a spool on a system with a single zfs root disk?
Message-ID:  <2EF5C613-ACFF-449A-9388-664E0179F450@tao.org.uk>

next in thread | raw e-mail | index | archive | help
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  -




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2EF5C613-ACFF-449A-9388-664E0179F450>