I'm not sure if I should post this here or over on the TrueNAS community. I'm running TrueNAS (formerly FreeNAS) as a VM on my Proxmox host. I know, this isn't a best practice (I need a completely self contained environment for a testing/development environment on one server). Using this guide, I was able to pass-thru two physical harddrives to the TrueNAS VM and setup a ZFS mirror pool. It works great for what it's intended to do.
Only issue I'm trying to find a solution for is how I associate the physical drives in Proxmox with the drives as seen by TrueNAS. Using the aforementioned guide, I passed through the drives based on their /dev/disk/by-id/xxxxx designation (with xxxx being the unique disk identifier). Unfortunately, since I'm not passing through the disk controller, only the disks themselves, TrueNAS still seems to not see all the characteristics of the drives (such as the unique disk identifier or smart status):
I'm ok with not having the smart status or other details as I get all of this from Proxmox. However, what I do need to understand is if I had a drive failure, how would I correlated the failure as reported in TrueNAS (drives identified as "da1" and "da2") with the physical drive in Proxmox ("sdb" and "sdc"). So far, none of the commands I can issue in the TrueNAS FreeBSD terminal result in anything that would correlated to the drives as seen by Proxmox.
Here is the link to the aforementioned guide that I used to pass the drives through to the TrueNAS VM:
https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)
Thanks so very much. I appreciate the help. If it makes more sense for me to pursue this with the TrueNAS community, I'm happy to do so.
Only issue I'm trying to find a solution for is how I associate the physical drives in Proxmox with the drives as seen by TrueNAS. Using the aforementioned guide, I passed through the drives based on their /dev/disk/by-id/xxxxx designation (with xxxx being the unique disk identifier). Unfortunately, since I'm not passing through the disk controller, only the disks themselves, TrueNAS still seems to not see all the characteristics of the drives (such as the unique disk identifier or smart status):
I'm ok with not having the smart status or other details as I get all of this from Proxmox. However, what I do need to understand is if I had a drive failure, how would I correlated the failure as reported in TrueNAS (drives identified as "da1" and "da2") with the physical drive in Proxmox ("sdb" and "sdc"). So far, none of the commands I can issue in the TrueNAS FreeBSD terminal result in anything that would correlated to the drives as seen by Proxmox.
Here is the link to the aforementioned guide that I used to pass the drives through to the TrueNAS VM:
https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)
Thanks so very much. I appreciate the help. If it makes more sense for me to pursue this with the TrueNAS community, I'm happy to do so.
Last edited: