Expand ZFS

positech3

Member
Jan 11, 2022
4
0
6
124
I am in need of adding some space on my ZFS pool and wanted to see if it was possible to add more disks to this or if I would only replace Existing drives with Larger ones.
 
Depends on your pool setup. Whats your output of zpool status? If its not a draid it should work. But if you also boot from that pool it gets a bit harder.
 
Last edited:
:~# zpool status
pool: Storage01
state: ONLINE
scan: scrub repaired 0B in 00:00:00 with 0 errors on Sun Feb 13 00:24:01 2022
config:

NAME STATE READ WRITE CKSUM
Storage01 ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-SSDSC2BB960G7R_PHDV651501R7960FGN ONLINE 0 0 0
ata-SSDSC2BB960G7R_PHDV650500UL960FGN ONLINE 0 0 0

errors: No known data errors

pool: rpool
state: ONLINE
scan: scrub repaired 0B in 00:27:54 with 0 errors on Sun Feb 13 00:51:55 2022
config:

NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-INTEL_SSDSC2BA800G4R_BTHV711406YT800OGN-part3 ONLINE 0 0 0
ata-INTEL_SSDSC2BA800G4R_BTHV715401ZT800OGN-part3 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
ata-INTEL_SSDSC2BA800G4R_BTHV710401HY800OGN-part3 ONLINE 0 0 0
ata-INTEL_SSDSC2BA800G4R_BTHV711407CU800OGN-part3 ONLINE 0 0 0
mirror-2 ONLINE 0 0 0
ata-INTEL_SSDSC2BA800G4R_BTHV711407BX800OGN-part3 ONLINE 0 0 0
ata-INTEL_SSDSC2BA800G4R_BTHV7114072H800OGN-part3 ONLINE 0 0 0

errors: No known data errors
 
Do you want to expand Storage01 or rpool? Do you got two more 2.5" slots and SATA/SAS ports? Adding more disks to Storage1 should be easy. You could get another 2 SSDs and make that mirror to a striped mirror like your rpool. I think to rpool you also could add a new mirror but then you would need to manually partition and format the new disks first, copy/sync over the bootloader to the boot partition and only after that create a mirror using the two third partitions.
 
Last edited: