Skip to content

Instantly share code, notes, and snippets.

@ngoc-minh-do
Last active February 20, 2025 14:11
Show Gist options
  • Select an option

  • Save ngoc-minh-do/62879bdc226a9731a0bd9768b89df649 to your computer and use it in GitHub Desktop.

Select an option

Save ngoc-minh-do/62879bdc226a9731a0bd9768b89df649 to your computer and use it in GitHub Desktop.

Passthrough HDD on Proxmox

Check SMART data

smartctl --all /dev/sda

Check speed

Maximum throughput with a much higher blocksize, simulating video downloads

fio --ioengine=libaio --direct=1 --sync=1 --rw=read --bs=1M --numjobs=1 --iodepth=1 --runtime=60 --time_based --name seq_read --filename=/dev/sda

4K performance

fio --ioengine=libaio --direct=1 --sync=1 --rw=read --bs=4K --numjobs=1 --iodepth=1 --runtime=60 --time_based --name seq_read --filename=/dev/sda

Pass through HDD

ls -l /dev/disk/by-id/
lsblk -o +MODEL,SERIAL,WWN
qm set 100 -scsi3 /dev/disk/by-id/ata-ST2000DM006-2DM164_Z5610A2V,serial=Z5610A2V
cat /etc/pve/qemu-server/100.conf

NOTE: Also add ,backup=0 if you want to tell proxmox that these volumes are out of proxmox's backup job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment