I have a working FreeBSD (8.2-STABLE) system installed on a ZFS root pool 'root-pool' which is a 2-disk mirror using two 160GB drives:
drive1: 160GB gpt/mirror1
drive2: 160GB gpt/mirror2
I know the BSD version is pretty old, but it's a complicated build and it's running just perfectly. The system was pretty full so I though I'd replace both drives with two new 500GB drives:
drive3: 500GB gpt/mirror3
drive4: 500GB gpt/mirror4
I initialized both drives in GPT format and then did the following:
Once the new drives had resilvered, the pool looked like this:
I then detached the original disks:
and rebooted - all is fine... except the pool still shows size as 160GB! I then set 'autoexpand' on:
and rebooted again, but pool is still showing as 160GB, even though new drives are 500GB:
I'm probably just missing something very simple, but how do I force ZFS to 'see' the extra space on the new drives/pool and allow me to use it for data?
I'd appreciate any light anyone can shed on this.
drive1: 160GB gpt/mirror1
drive2: 160GB gpt/mirror2
Code:
# zpool status root-pool
pool: root-pool
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
root-pool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
gpt/mirror1 ONLINE 0 0 0
gpt/mirror2 ONLINE 0 0 0
errors: No known data errors
drive3: 500GB gpt/mirror3
drive4: 500GB gpt/mirror4
I initialized both drives in GPT format and then did the following:
Code:
# zpool attach -f root-pool gpt/mirror2 gpt/mirror3
# zpool attach -f root-pool gpt/mirror2 gpt/mirror4
Code:
# zpool status root-pool
pool: root-pool
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
root-pool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
gpt/mirror1 ONLINE 0 0 0
gpt/mirror2 ONLINE 0 0 0
gpt/mirror3 ONLINE 0 0 0
gpt/mirror4 ONLINE 0 0 0
errors: No known data errors
Code:
# zpool detach root-pool gpt/mirror1
# zpool detach root-pool gpt/mirror2
zpool set autoexpand=on root-pool
and rebooted again, but pool is still showing as 160GB, even though new drives are 500GB:
Code:
# zpool list root-pool
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
root-pool 149G 135G 14G 90% 1.00x ONLINE -
I'd appreciate any light anyone can shed on this.