Add 3rd disk to existing mirror -- "Add to Pool" or "Extend vDEV"

I have a pool that currently consists of two 14 TB disks in a mirror configuration. I have a third 14 TB disk that I’d like to add in order to increase redundancy.

On the command line, I’d just do:

zpool attach tank current_disk-1 new_disk

…but what’s the right way to do this through the GUI? I see two paths and it’s not clear to me from the TrueNAS docs what the difference between them is:

  1. From the Storage Dashboard under Unused Disks, click Add to Pool


  2. From Manage Devices, click the Mirror and then Extend under ZFS Info


Hardware
  • Supermicro X9SCM-F
  • Xeon E3-1270
  • 32 GB DDR3-1600 ECC (4 x 8 GB)
  • 2x WD 14 TB drives (mirrored)

Nope. You must create a partition table first and then refer to the ZFS partition by UUID.

It’s extend vdev in the UI.

2 Likes

:point_up:
“Extend” will make your 3-way mirror.

Option 1 “Add” would stripe a new vdev with the existing one.

1 Like

Thanks @pmh & @etorix – “Extend” did it.

Re: command line equivalent, I’ve been messing with zfs in Proxmox recently and forgot that TrueNAS uses partitions instead of whole disks. I’d do something like this, although sgdisk would recreate the 2 GB (swap?) partition that’s on my two existing disks. “Extend” did not – the third disk only has a single partition.

# copy partition table from existing disk to new disk
sgdisk /dev/[current_disk-1] -R /dev/[new_disk]

# randomize GUIDs on new disk
sgdisk -G /dev/[new_disk]

# get partition UUIDs
blkid

# attach new disk
zpool attach tank [current_PARTUUID] [new_PARTUUID]

SCALE stopped using swap a few releases ago, so the 2GB partition is no longer created. (Bad decision, IMHO.)

Isn’t it in Fangtooth?

https://ixsystems.atlassian.net/browse/NAS-134309

Absolutely. A server without swap - what a censored idea.

Yes, a server should not run out of RAM. Granted. But without swap once it does that the OOM killer will just terminate random processes.

With swap the monitoring software will send an alarm to the admin on duty but the server will keep chugging along.

This is 2 GB padding as free space, put back when iX found that, to the surprise of absolutely no-one, removing the 2 GB partition led to major pain when replacing drives, but if I’m not mistaken it is no longer a partition so it is less obvious to see.

Case in point, for those who missed it in the Memes thread: NAS-135499