Spin down disk passed through to VM

proxSid

New Member
Aug 8, 2023
7
0
1
Hello; I am trying to configure 2 of my HDD to spin down if there are idle for XX amount of time. The 2 disks are passed over to a VM (unraid) using the following method:
Code:
scsi1: /dev/disk/by-id/ata-WDC_WD40EFAX-68JH4N1_WD-WXC2D53NEK11,backup=0,size=3907018584K,scsiblock=1

Since I am not able to passthrough the drives via PCIe, I am trying to see how i can spin down the drives as unRaid will not spin them down as they are "virtual" drives

Thank you,
 
pvestatd keeps the drive active
If you want to be able to spin it down, you would have to either disable the storage or exclude the drive in /etc/lvm/lvm.conf with
Code:
global_filter=["r|/dev/zd.*|", "r|/dev/disk/by-id/ata-WDC_WD40EFAX-68JH4N1_WD-WXC2D53NEK11"]
 
Thank you, i added this line into the .conf file and remoted PVE but on my unRaid VM I am still not able to spin down the disk. This might have something to do with the passthrough method i used.
 
Did you either restart PVE or run vgscan to reload the LVM config?
You should then be able to spin down the disk from the host with:
Bash:
hdparm -y /dev/sdX
If you want it to automatically spin down after some time of inactivity, you can use hd-idle, which is found in the Debian repository.
 
With my setup, I have this drive passed through via qm set scsi to a unraid VM. And when I rebooted and tried issuing that command it was still green in unraid. I even tried to spin down via unraid and it stays green. Might need a HBA card it seems like and pass that entire card over.
 

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!