ZFS

The ZFS things.

Check Status

Check existing pools:

marc@server:~$ zpool status
  pool: DonairPool
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
    still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
    the pool may no longer be accessible by software that does not support
    the features. See zpool-features(5) for details.
  scan: scrub repaired 0B in 0 days 22:08:59 with 0 errors on Sun May  8 22:33:02 2022
config:

    NAME        STATE     READ WRITE CKSUM
    DonairPool  ONLINE       0     0     0
     mirror-0  ONLINE       0     0     0
       sdc     ONLINE       0     0     0
       sdd     ONLINE       0     0     0
     mirror-1  ONLINE       0     0     0
       sdb     ONLINE       0     0     0
       sde     ONLINE       0     0     0

errors: No known data errors

Get details of the pool:

marc@server:~$ zfs list DonairPool
NAME         USED  AVAIL     REFER  MOUNTPOINT
DonairPool  14.4T  1.83T     14.4T  /media/DonairPool

Auto Expand

Enable auto expand before adding larger disks one at a time:

zpool set autoexpand=on DonairPool

Install New Disk

Once a enw disk is installed, look for it by serial number:

ls -la /dev/disk/by-id

Then verify the extra space shows up:

zpool get expandsize DonairPool

Make it use the extra space (replace serial number):

zpool online -e storage wwn-0x5000c500654c1adc

Run that for each drive, and then confirm with:

zfs list DonairPool