Raid is not adding replacement drive

My replacement drive SDD is not part of the raid I believe. It’s listed as spare.

hoe to I move it into raid?

root@truenas[~]# zpool status
pool: boot-pool
state: ONLINE
status: One or more features are enabled on the pool despite not being
requested by the ‘compatibility’ property.
action: Consider setting ‘compatibility’ to an appropriate value, or
adding needed features to the relevant file in
/etc/zfs/compatibility.d or /usr/share/zfs/compatibility.d.
scan: scrub repaired 0B in 00:01:25 with 0 errors on Fri Jul 18 03:46:26 2025
config:

    NAME                                             STATE     READ WRITE CKSUM
    boot-pool                                        ONLINE       0     0     0
      ata-SanDisk_SSD_PLUS_240GB_22195P800260-part2  ONLINE       0     0     0

errors: No known data errors

pool: tank
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using ‘zpool replace’.
see: Message ID: ZFS-8000-4J — OpenZFS documentation
scan: scrub in progress since Tue Jul 22 16:52:09 2025
1.34T / 5.54T scanned at 7.19G/s, 89.6G / 5.54T issued at 481M/s
0B repaired, 1.58% done, 03:18:20 to go
config:

    NAME                                        STATE     READ WRITE CKSUM
    tank                                        DEGRADED     0     0     0
      raidz1-0                                  DEGRADED     0     0     0
        spare-0                                 DEGRADED     0     0     0
          9054689916214298171                   UNAVAIL      0     0     0  was /dev/sdb2
          6ee8a65e-2e9d-41e3-91eb-e34b25f61da8  ONLINE       0     0     0
        sda2                                    ONLINE       0     0     0
        sdc2                                    ONLINE       0     0     0
    spares
      6ee8a65e-2e9d-41e3-91eb-e34b25f61da8      UNAVAIL 

errors: No known data errors

This is probably the key: the email warning I got after resilvering:

Pool tank state is DEGRADED: One or more devices could not be used because the label is missing or invalid.

What do I do?

Run this in the console or Shell and post the results back using Preformatted Text </> on toolbar or Ctrl+e This should give us an update on your pool status along with some drive info. Don’t reboot unless you have to as the drive names, like ‘sda’, may change. The serial number should be unique for tracking.

You should probably post your full hardware, os version and how you have your pools set up. Expand the ‘Details’ under my post to get an idea of what I’m asking for.

sudo ZPOOL_SCRIPTS_AS_ROOT=1 zpool status -vLtsc lsblk,serial,smartx,smart

This is NORMAL.

The Spare IS being used, that is why it is “UNAVAIL” for other replacements.

Now if you did not intend this replacement drive to be a Spare, then it is simple. Remove the “9054689916214298171” drive from the pool and your Spare will become a permanently replacement. After that, you no longer have a Spare drive. Of course you can add another spare drive in the future.

All the notices of “DEGRADED” and “Replace the device” are letting you know that you still need to take action. Either replace the failed drive or remove it so the Spare takes it’s place permanently.

1 Like

Arwen, Thanks but I’m not sure how to do what you just suggested. Also, I never intended this to be a spare so I don’t know hot it happened. Would you be kind enough to explain exactly what steps I need to take inorder for this drive to become part of the raid?

Thank you so much,
Roger

I tried detaching the drive and got this error message:
[EZFS_NOTSUP] Cannot detach root-level vdevs

You tried to remove the VDEV or pool and not the individual drive. Please post screenshots of your procedure.

I was able to detach the drive as a spare. But when I try to add it to the pool, I get the error: At least 1 vdev is required to make an update to the pool.

I assume the pool already has a vdef but I’m not sure how to put it in in order to attach the drive. https://www.dropbox.com/scl/fi/kovwldbkb5lwvpkbs1qi6/raid-error.JPG?rlkey=xkzqeg2iqfno82kgsmre3bhdq&dl=0

What is the output of the following command, in CODE tags?
zpool status tank

Here is the readout:
zpool status tank
pool: tank
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using ‘zpool replace’.
see: Message ID: ZFS-8000-4J — OpenZFS documentation
scan: resilvered 1.23M in 00:00:02 with 0 errors on Wed Jul 23 13:24:15 2025
config:

    NAME                     STATE     READ WRITE CKSUM
    tank                     DEGRADED     0     0     0
      raidz1-0               DEGRADED     0     0     0
        9054689916214298171  UNAVAIL      0     0     0  was /dev/sdb2
        sdc2                 ONLINE       0     0     0
        sdd2                 ONLINE       0     0     6

errors: No known data errors

Is it possible that the system considers the boot drive to be part of the pool but unavailable?:
https://www.dropbox.com/scl/fi/u63ds822agje27gwc1ice/Boot-Drive.JPG?rlkey=60rowe8h8b5cjk8kahlgwl6rb&dl=0

Looks like you removed the Hot Spare drive and not the failed drive. Your pool is now in jeopardy.

Either follow the instructions in the manual to replace the failed drive, or re-add your other drive as a Hot Spare.

No, pool “tank” is not part of the boot pool. Nor any of it’s drives. Drive letters can change on boot, and the note “was /dev/sdb2” only says that at the time of failure, it device “sdb2”. Not necessarily now.

2 Likes

Arwen,
There seems to be a little confusion. I never had a hot spare, so I couldn’t have replaced it.
I’ve attached a link.

https://www.dropbox.com/scl/fi/eaqt1kbj7j9qr60atykcg/Screengabs-linked.pdf?rlkey=c0wcdv8ujasj8jt3y6bh8an29&dl=0

I have four drives, one an SSD holds the OS. The other spinning drivers were part of the raid. I replaced the bad drive with a new one with the serial number: ZW63DW4G. It is listed as SDA. Somehow when I tried to install it, it became a hot spare, not part of the raid. I have since disconnected it as a hot spare but I got an error a VDEV error message when I try to add it to the raid.

https://www.dropbox.com/scl/fi/kovwldbkb5lwvpkbs1qi6/raid-error.JPG?rlkey=xkzqeg2iqfno82kgsmre3bhdq&dl=0

So that replacement drive seems to be on the system in limbo and IOcan’t attach it.

Thanks for any advice you have.

Roger

Is the new drive a replacement? You use that word yet you say you didn’t plan to add it as a spare.

This is confusing.
Describe what the intent here was and what you have done so far, step by step.

Did this all start because of an issue with sdb? It’s listed as UNAVAIL.

Also, please don’t link to images hosted somewhere else, upload them directly to this forum instead.

You should have gone to Storage, Manage Devices, made sure you could see all disks in your Raid-Z2. (I have a mirror showing). Offline the bad drive, or just click on the Replace button on right side. It brings up the square box and you choose your new disk and click replace.

It looks like you went through adding a drive to your pool and selected the type as spare instead.

1 Like

I wanted to replace a bad drive. I took the bad drive off line. I physically replaced it with a new drive and tried to add it to the pool. Somehow, unintentionally it got added as a spare. I detached it as a spare. Now when I go to storage “unassigned disks” I try to add it to my existing pool called “tank” from the drop down list. I go to the next wizard which says data and choose the size from the drop down list. Then I hit “Save Go To Review” and get the following error message: At least 1 vdev is required to make an update to the pool.

And I am unable to click on “Update Pool.”

I am confused. If I have an existing pool there must be a vdev assigned to it. Why am I getting this error?

The other thing I have tried is going to Topology and Manage Devices. I click on “Add Vdev”
and go through the same wizards as before and get the same error message.

Lastly, when I try “manual disk selection” and click “add” and drag the icon for the extra disk into the “add” window I get the error message "Atleast 3 disk(s) are required for Raidz1 vdevs " even though two disks should already be in there.

Can you follow SmallBarky’s instructions to replace the (now) missing drive?

“Add VDEV” is not something you want to do, that would in fact be catastrophe at this point in time.

You’re doing all wrong.
Spare was a mistake but it wasn’t bad outcome: All you had to do was to follow @Arwen’s instructions and remove the failed drive to confirm the “spare” as a permanent member.

Now, read the new advice carefully: Do not try to add a new drive, replace the failed drive. That’s not the same thing in the GUI!

I’m sorry. The failed drive is no longer listed to I’m not sure how to replace it

Sorry if I’m being dense, I clicked on the SmallBarkey link and can’t find the relevant instruction

I think it was this. Provide screenshots if you need help
Just make sure it is getting added to the same Raid-Z1 VDEV

1 Like