Howto - grow a TN Core zfs pool possible by replacing the old with newer, larger disks out of the box?

flashdrive

Patron
Joined
Apr 2, 2021
Messages
264
Hello

I have found this:


zpool get all data

Check:
zpool get autoexpand poolname

Enable:
zpool set autoexpand=on poolname

zpool list

zpool status

zpool online -e data gptid/787b8c36-f47f-11e7-98c4-001a4d670c50 gptid/272648e1-f42f-11e7-b0bc-001a4d670c50 gptid/65a97147-1426-11e7-9207-001a4d670c50 gptid/0e15663c-f3f1-11e7-bc35-001a4d670c50
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
autoexpand=on has been the default for a very long time--at least since the days of FreeNAS 8.x, which is over 10 years old. The answer to your question is to replace the smaller disks with the larger disks one at a time through the GUI. If you're having problems with that, some detail about what's happening would be nice.
 

flashdrive

Patron
Joined
Apr 2, 2021
Messages
264
Hello @danb35

thank you for your answer.

In fact I am preparing to read about expansion - I have not done the expansion yet.

First I want to evaluate the known caveats.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
The caveats are those that apply to any disk replacement, primarily that if you remove a disk from your pool you've reduced (or lost, depending on your pool's configuration) redundancy. If you have the ability to have the replacement disk online in addition to the existing pool disks (i.e., you have a spare SATA connector you can use, even if only temporarily), you can avoid this problem. The docs explain how to replace a disk:

...but don't seem to address expanding a pool that way any more. But the old docs did:
 
Top