TrueNas - How Can I Confirm that Pass-Through Drives Have Spun Down?

iweinstein

New Member
Nov 27, 2022
6
1
3
Hi All,

I'm running TrueNas within Proxmox 7.2-3 on a Dell T630 server. Within TrueNas, I'm using four pass-through drives (da1, da2, da3, and da4).

I'm trying to reduce power consumption and temps on my server, so within the TrueNas UI, I set each disk to spin down after 20 mins and to use Advanced Power Management Level 1. However, because these are pass-through drives (da1, da2, etc.) and not ada drives, I can't use this command to check whether each drive has spun down.

camcontrol cmd da1 -a "E5 00 00 00 00 00 00 00 00 00 00 00" -r -

When I give this command, I get this response "camcontrol: error sending command"

Can someone please provide the proper command or method for confirming spin down on pass-through drives?

Thank you in advance !!!

Ira
 
I guess you used disk passthrough and not PCI passthrough of a HBA?
Then all your TrueNAS is working with are virtual disks, not the real hardware.
As far as I understand you then would have to set Advanced Power Management and spindown times using hdparm directly on the PVE node.
You might need to install hdparm first (apt update && apt install hdparm)and then edit it's config file. There are also examples in the /etc/hdparm.conf like this:
Code:
#/dev/disk/by-id/ata-WDC_WD10EFRX-68PJCN0_WD-WCC4J0998391 {
#        apm = 128
#        acoustic_management = 128
#        spindown_time = 240
#}

Also keep in mind that too frequent spinups and head parking might lower the life expectation of your disks.
 
Last edited:
I guess you used disk passthrough and not PCI passthrough of a HBA?
Then all your TrueNAS is working with are virtual disks, not the real hardware.
As far as I understand you then would have to set Advanced Power Management and spindown times using hdparm directly on the PVE node.
You might need to install hdparm first (apt update && apt install hdparm)and then edit it's config file. There are also examples in the /etc/hdparm.conf like this:
Code:
#/dev/disk/by-id/ata-WDC_WD10EFRX-68PJCN0_WD-WCC4J0998391 {
#        apm = 128
#        acoustic_management = 128
#        spindown_time = 240
#}

Also keep in mind that too frequent spinups and head parking might lower the life expectation of your disks.
Hi Dunuin,

Thanks for your reply and for the info about hdparm. I will look into that today.

There was no HBA card in my server, so I simply installed the hard drives in four of the front bays.

Do you know of any way to confirm whether the disks have actually spun down?

Yes - I agree about frequent spinups and head parking. However, this server will sit idle at least 10 hours each day, so I think a spindown after a 20 min delay makes sense.

Thanks!

Ira
 

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!