gilgha
Dabbler
- Joined
- Aug 24, 2016
- Messages
- 15
Hello everyone,
I have a FreeNAS home server box running perfectly since more than a year now. At the time of building this box, I filled it up with the drives I had laying around which were:
- 2x 1 TB drives
- 2x 500 GB drives
I created a single ZFS pool with those four drives which resulted in the following capacity:
However, I am currently in the process of building a new server and I decided to buy 2 new 2 TB drives for the FreeNAS system and salvage the 1 TB ones for the new server.
So, I replaced both 1 TB drives with new 2 TB drives (one at a time) using the 'zpool' command line utility. The process worked fine and I was able to do this without even interrupting the system. My ZFS pool is now back to a healthy and redundant state:
However, the total ZFS pool size did not increase.
I don't understand why I don't get a larger pool size since the 'autoexpand' property of the pool was properly set to 'on':
I also tried to manually expand the pool with the following commands but the result is still the same:
What is wrong with my configuration? Shouldn't it be possible to expand the pool size to use the additional space provided by the new 2 TB drives without completely destroying and rebuilding the pool? I really don't want to copy all the data back and forward to the system since I don't have any easy solution to do so.
Any help would be highly appreciated
!
Thanks !
I have a FreeNAS home server box running perfectly since more than a year now. At the time of building this box, I filled it up with the drives I had laying around which were:
- 2x 1 TB drives
- 2x 500 GB drives
I created a single ZFS pool with those four drives which resulted in the following capacity:
[root@freenas] ~# zpool list zfs-volume
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
zfs-volume 1.80T 1.20T 616G - 31% 66% 1.00x ONLINE /mnt
However, I am currently in the process of building a new server and I decided to buy 2 new 2 TB drives for the FreeNAS system and salvage the 1 TB ones for the new server.
So, I replaced both 1 TB drives with new 2 TB drives (one at a time) using the 'zpool' command line utility. The process worked fine and I was able to do this without even interrupting the system. My ZFS pool is now back to a healthy and redundant state:
[root@freenas] ~# zpool status zfs-volume
pool: zfs-volume
state: ONLINE
scan: resilvered 72K in 0h0m with 0 errors on Sat May 13 10:16:32 2017
config:
NAME STATE READ WRITE CKSUM
zfs-volume ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
gptid/42eaa8df-3e21-11e6-b4a2-9cb654066b8b ONLINE 0 0 0
gptid/440b1dbe-3e21-11e6-b4a2-9cb654066b8b ONLINE 0 0 0
ada0 ONLINE 0 0 0
ada1 ONLINE 0 0 0
errors: No known data errors
However, the total ZFS pool size did not increase.
I don't understand why I don't get a larger pool size since the 'autoexpand' property of the pool was properly set to 'on':
[root@freenas] ~# zpool get autoexpand
NAME PROPERTY VALUE SOURCE
freenas-boot autoexpand off default
zfs-volume autoexpand on local
I also tried to manually expand the pool with the following commands but the result is still the same:
[root@freenas] ~# zpool online -e zfs-volume gptid/42eaa8df-3e21-11e6-b4a2-9cb654066b8b
[root@freenas] ~# zpool online -e zfs-volume gptid/440b1dbe-3e21-11e6-b4a2-9cb654066b8b
[root@freenas] ~# zpool online -e zfs-volume ada0
[root@freenas] ~# zpool online -e zfs-volume ada1
What is wrong with my configuration? Shouldn't it be possible to expand the pool size to use the additional space provided by the new 2 TB drives without completely destroying and rebuilding the pool? I really don't want to copy all the data back and forward to the system since I don't have any easy solution to do so.
Any help would be highly appreciated
Thanks !