Remove a drive from a pool it's not

sansrealname

Cadet
Joined
Dec 31, 2023
Messages
2
Running TrueNAS-13.0-U6.1 on a Lenovo Thinkserver RD640 with LSI HBA in IT mode. Pool1 is 8 drives in RAIDZ2. Pool2 is 4 drives in RAIDZ1.

I while back I needed to replace a drive in Pool1, but when I attempted to do the replace process I received an error because the drive was a couple hundred MB smaller the drive it was replacing (and other drives in the pool). I realized my mistake and used a different drive with the correct size.

Over the weekend I discovered a drive in Pool2 needs replacing. The drives in this pool exactly match the size of the drive I was unable to add to Pool1. After swapping out the failing drive with the replacement drive, I'm unable to use it in Pool2 because the system is reporting the drive is in Pool1 (in the Storage->Disks UI). If I look at Pool1 status, the replacement drive is not listed as one of its drives.

How do I remove the replacement drive from Pool1 (which it was never fully added to)? The 'zpool remove' command reports the drive is not in the pool.

root@truenas[/]# zpool remove Pool1 /dev/da14
cannot remove /dev/da14: no such device in pool
 

sansrealname

Cadet
Joined
Dec 31, 2023
Messages
2
Well, never mind. I rebooted the server and now the replacement drive is freed up to add to Pool2.

Also, apologies for the botched subject.
 
Top