Expanding a spool on a system with a single zfs root disk?

Dr Josef Karthauser joe at tao.org.uk
Sat Sep 24 23:13:25 UTC 2011


On 24 Sep 2011, at 23:05, Dr Josef Karthauser wrote:

> On 24 Sep 2011, at 23:00, Dr Josef Karthauser wrote:
> 
>> On 24 Sep 2011, at 22:44, Dr Josef Karthauser wrote:
>> 
>>> 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?
>> 
>> Ok, so it looks like zpool has an autoexpand setting... I've switched it on, but it hasn't expanded. Perhaps it only expands when it's loaded? Another reboot in order then.....
> 
> Ah, no, that didn't work. It's still the same size:
> 
> 	# zpool get all void
> 	NAME  PROPERTY       VALUE       SOURCE
> 	void  size           126G        -
> 
> So, yes please, I could do with some more suggestions.

I've sussed it:

	# zpool online -e void gpt/disk0
	# zpool list
	NAME   SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
	void   226G   112G   114G    49%  1.00x  ONLINE  -

So, is it a bug that autoexpand doesn't work on zpools?

Glad to have got it working, I was down to my last 10G! :)

Joe



More information about the freebsd-fs mailing list