Expanding a spool on a system with a single zfs root disk?
Dr Josef Karthauser
joe at tao.org.uk
Sat Sep 24 23:18:26 UTC 2011
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
=> 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
# 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
# zpool list void
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
void 126G 112G 13.7G 89% 1.00x ONLINE -
More information about the freebsd-fs
mailing list