S.M.A.R.T. Error "Short offline self test failed [unsupported scsi opcode]"

I am brand new to all of this, so I apologize in advance for my ignorance with setting up Proxmox, TrueNAS, VMs, etc., and appreciate any assistance that anyone is willing to provide.

I have setup TrueNAS as a VM on Proxmox, which is on a Dell PowerEdge server. The HDDs are all directly attached to the standard drive bays, so there is no PCIe slots involved, and the only hardware RAID that is being used is the boot drive, which is also the drive on which both Promox and TrueNAS are installed. The other drives are all standard HDDs that have successfully been added on Proxmox, and I believe at least, passed through successfully to TrueNAS, including having the serial numbers connected to the end of the product number and added to the end of the listing for each drive in the TrueNAS VM config (scsi1: /dev/disk/by-id/ata-ST_xxxxxxx-xxxxxxx_xxxxxx,size=xxxxxxG,serial=xxxxxx. I have also successfully setup a 4 devs with 2 drives each as a Mirror RAID in TrueNAS, and have successfully setup multiple levels of Datasets and even have been able to begin writing to them within the network without issue.

Despite all of this, I am still getting the error “Short offline self test failed [unsupported scsi opcode]” when trying to run a short or long S.M.A.R.T. test in the Disks section of the TrueNAS GUI and when I run it in the TrueNAS Shell.

I had no issue running S.M.A.R.T. tests on the drives on Proxmox before setting up the TrueNAS VM and passing through the drives, so I am guessing there is something I am missing somewhere, but cannot figure out at this point what steps are left that I might be missing and need to do.

In the TrueNAS Shell I ran “sudo smartctl -x /dev/sdb”, and although it did acknowledge the drive, it stated “SMART support is: Unavailable - device lacks SMART capability.”

I have attempted to include an image but I received an error that stated I cannot include media in a post, and the TrueNAS Shell says that it does not allow for copying of the results otherwise I would have included the results for more clear reference.

Any guidance that can be shared would be greatly appreciated. Thank you in advance.

It looks like your are passing the drives from Proxmox rather than the controller. Don’t do that!
If you do not have a HBA, you should pass through the chipset SATA controller.
Backup the pool, destroy and recreate.

Are the drive SCSI? just sayin.

As @etorix has said, if you are not passing through the entire drive controller then you are doing it incorrectly and the possibility of data loss is real. I ran ESXi and used RDM for a few years, while I was very disciplined in how I operated the system, I eventually bought a cheap no frills controller (HBA) and passed through the controller and my data is much safer. It also makes setting up a TrueNAS VM significantly easier.

EDIT:
sudo smartctl -x /dev/sdb try to use sudo smartctl -d sat -x /dev/sdb, it may work (SCSI to ATA Translation), or it may not.

Thank you, etorix. I just followed what I saw on basically all of the step-by-step setup videos I found on YouTube that installed TrueNAS as a VM on Proxmox, but what you’re saying does make sense. I just didn’t realize that there would be such a difference or issue.

Nearly every passthrough video I’ve found covers HBA for PCIe connected drives, but I did find a video that shows a walkthrough for a similar on a server similar to the one I have. The process on that video though required a bunch of what were at least to me very complex steps that were performed through an SSH connection, which even if I followed exactly, I would be concerned I wouldn’t know how to undue what I did if I ever needed to, particularly if I mess up somewhere along the way or if it ends up blocking any of my other drives from Proxmox and other VMs since the steps included blacklisting from Proxmox.

Hopefully I can figure out how to do get this passthrough done correctly. I plan on trying what joeschmuck thoughtfully provided. Thank you again for taking the time to help me out.

Thank you also, joeschmuck.

As I explained in the reply to etorix, I am having a really difficult time finding a video or resource on how to properly setup the sata passthrough properly, and being such a novice definitely does not help.

I appreciate you providing the command that you did, and will give it a try.

Thank you again for taking the time to help reply and help me out.

If the drives are directly connected to the motherboard, this very likely will not allow you to pass through the drive controller. Here is one reason why, your boot drive is also on the same controller (often the case) so it prevents you from shooting yourself in the foot. This is not a limitation of Proxmox, it is a hardware limitation.

If you are unable to pass through the controller then you “should” run TrueNAS on bare metal. OR you could install an HBA and pass through the entire controller.