Adding a disk to existing vdev 25.10.1

I have (had) a pool with single vdev which included NVME mirror array (2x samsung 990pro drives). One of the 990pro failed and I had to replace it today (truenas just decided to degrade disk, I could not access it afterwards and even smartctl command could not access it).

I was too quick to act and what I did is that I have first detached failed drive without replacing it.

What is the correct procedure to add additional drive to existing vdev?

I tried with expanding but I hit another issue, my truenas was configured roughly 18 months ago and at that time it was allowed to have pool name with spaces in it, and now when I try to extend the pool, it reports an error because the name of the pool contain space.

My question is:

  • is there a way to add disk to a pool (which contain spaces) through the CLI?
  • if that is not possible, is there a way to rename pool (less complicated/more automated than one explained here: HOWTO: Rename a ZFS pool )?

(there is a bunch of vm’s, snapshot and replication schedules which will all go haywire with the pool name change and I am really not looking forward to that)

Short update:

It appears that after update to the latest 25.10.1, my system allows extension of my pool in order to replace failed disk (this clearly failed before because pool name included space, I apparently replaced the disk before updating to 25.10.1).