Unable to resilver using the GUI

Hi,

I am very new to TrueNAS, and I am experimenting with a set of 3 old 750GB drives.

I created a 3 drive dRAID1 pool, with 2 data drives and 1 parity one.
I purposedly removed one drive, and replaced it with another one.
I am trying to re-silver the pool.
I got into Storage, and see that there is one unused disk.
I click on Add to the Pool.
When I an in (2) Data, I select the drive.
The Children field is blank and cannot be modified, despite a notice saying:

The number of children must at the minimum accomodate the total number of disks required for the previous configuration options including parity drives.

Number of VDEVs is 1, and cannot be modifed.
For the following optional steps, nothing it set.

When I click to “Update Pool”, I get:

Item#0 is not valid per list types: [EINVAL] datavdevs.draid_data_disks: null not allowed

That’s probably because the review step shows:

Data 1 × DRAID1 | 1 × 698.64 GiB (HDD) Est. Usable Raw Capacity 0 B

I don’t know why the Raw capacity is 0.

If I use instead a bigger 1TB drive, same problem.

But if I use the following shell commands:

root@truenas[~]# zpool status
pool: all
state: DEGRADED
status: One or more devices has been removed by the administrator.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Online the device using zpool online’ or replace the device with
‘zpool replace’.
config:

    NAME                                      STATE     READ WRITE CKSUM
    all                                       DEGRADED     0     0     0
      draid1:2d:3c:0s-0                       DEGRADED     0     0     0
        b60ca9e7-59a2-44b8-bd6f-ff00775864ef  REMOVED      0     0     0
        fe9b0a9e-01ce-4f2e-8dc6-b3f5a97b4fbe  ONLINE       0     0     0
        46505cc6-f9bf-4b7a-a080-9ae29f59c0d9  ONLINE       0     0     0

errors: No known data errors

pool: boot-pool
state: ONLINE
config:

    NAME         STATE     READ WRITE CKSUM
    boot-pool    ONLINE       0     0     0
      nvme0n1p3  ONLINE       0     0     0

errors: No known data errors
root@truenas[~]# zpool replace all b60ca9e7-59a2-44b8-bd6f-ff00775864ef /dev/sda

Then, that works, the POOL is resilvered.

Why does the GUI fail?

I opened the following ticket:

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

You should refer to the new drive by the GUUID of the ZFS partition, never place the entire drive into the vdev. If the drive is new you need to create a partition table, first.

Thanks for the advice, I am still learning.

I was doing things wrong.

Instead of clicking “Add to Pool”, you need to click on “Manage Devices”.

Expand then the VDEV, and you see what drive is missing. Click on it, and the GUI offers to replace it with an available drive.

There is a “Force” option useful if the disk to re-use is marked as belonging to another pool.

Just click on replace, and resilvering starts without any problem.