Proxmox HDD Passthrough strange behavior?

caerus

New Member
Sep 14, 2024
3
0
1
Hi,

I just face a weird behavior when trying to play around with TrueNAS VM share iSCSI storage to Proxmox.

I'm currently running lastest stable TrueNAS Scale as a VM in my Proxmox Server. I use the CLI command:
Code:
qm set 100 -scsi1 /dev/disk/by-id/ata-ST3000DM001-XXXXXXXX
to passthrough my hard drive to TrueNAS. Within TrueNAS, I create a ZVol with iSCSI share and add it back to STORAGE in Proxmox. I also create LVM within that iSCSI share from Proxmox and install Windows Server on it. Weird behavior happened when I try to shutdown the TrueNAS VM to reboot the whole system.

TrueNAS VM stuck and did not let me shut down. I used "qm stop VMID" to stop it manually but was not able to , so I just shutdown the Proxmox server and reboot.

After reboot, I WAS NOT able to start TrueNAS VM as the error stated
Code:
kvm: -drive file=/dev/disk/by-id/ata-ST8000DM004,if=none,id=drive-sata0,format=raw,cache=none,aio=native,detect-zeroes=on: Could not open '/dev/disk/by-id/ata-ST8000DM004': No such file or directory

TASK ERROR: start failed: QEMU exited with code 1

I panicked and tried to figure out what happened. After running:" ls -l /dev/disk/by-id/" I found out that ALL OF MY DRIVES had been changed from "ata-ST8000DM004-XXXXXXXX-XXXXXX" to "scsi-SATA-ST8000DM004-XXXXX" so I have to detach all the drives and reattach it. Luckily no data was lost and TrueNAS show as if data just been resilvered???????

Hope someone come to this thread and can help me explain what happened to my system or what I did wrong so that I don't mess up again
 

Attachments

  • IMG_3401.jpeg
    IMG_3401.jpeg
    324.3 KB · Views: 0
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!