Disk Replace with TrueNAS 13.0 with a workaround for the workaround: is this a problem?

fosaq

Dabbler
Joined
Jun 24, 2020
Messages
17
I run a NAS for some months now to test and "evaluate" TrueNAS with some mixed drives.
Some weeks ago I updated to version 13.0 and now I got some new drives and want to replace them.

So I marked the first drive as offline and replaced it (physically).
Then I run the tests and as everything looked good I klicked on "Replace".
But there is a (known) bug I didn't expect: the "Replace" button just don't work.

Ok, don't panic: There is a workaround I found in the forums.
But: The workaround did not work for me. Everytime it says there were partitions present.
I wiped the Disk multiple times in the GUI. I connected it to my windows machine and "initialized" it as GPT... nothing helped.

So I digged a bit deeper and after another wipe I did this in the CLI:
Code:
gpart create -s gpt /dev/ada0

gpart add -s 2G -t freebsd-swap /dev/ada0

gpart add -t freebsd-zfs /dev/ada0

zpool replace -o ashift=12 trunk gptid/{old} gptid/{new}

Then the pool was automatically resilvered with the result in the attached picture.
In this state I cannot "Edit" the first entry.

The pool is shown as healthy but I have some questions:
1. Is this a problem or does the pool just work normal as expected?
2. Is the swap partition used?
3. Can I change it somehow at the moment to display "ada0" like the other drives or...
4. ... can I change it later(tm) with a newer version of TrueNAS by just setting the disk offline, wipe the disk and "replacing" it?

I cannot downgrade to version 12 because I updated the ZFS feature flags.
 

Attachments

  • tn_replaced.PNG
    tn_replaced.PNG
    24.5 KB · Views: 103

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
You could install 13.0-U1 released just now.
That should fix your Replace button issue.
Aim to have all the drives have a gptid
 
Last edited:

fosaq

Dabbler
Joined
Jun 24, 2020
Messages
17
Well... perfect timing!
After updating the drive was shown as ada0 instead it's gptid.
Just to be sure I offlined, wiped and replaced the disk without problems.
The pool got resilvered and now I can go on with the other disks. :cool:

Thank you!
 
Top