ZFS Can FreeBSD do HDD based ZFS pools with spin-down and spin-up?

I need to build a 95% read/5% write storage system for an application that spends the majority of time idle. I have plenty of spare 500GB SAS drives and would like to use eight for this application. I can't find any FreeBSD specific ZFS info concerning spinning down HDD to save power.

This can be done on Debian:

Can this be done on FreeBSD HDD based ZFS data pools? The machine will boot the OS from SSD.
 
I can't find any FreeBSD specific ZFS info concerning spinning down HDD to save power.
Spinning down idle OpenZFS pool disks without user intervention seems to be the default in OpenZFS >= 2.4.1:

In reverse time order:

Flush RRD only when TXGs contain data - #18138
Merged: https://github.com/openzfs/zfs/pull/18138

Commit: https://github.com/openzfs/zfs/pull/18138/commits/8b541450ac46251a02beaf7aae36d1b248d1aa2a

Merged in FreeBSD >=15 (15.1.):
zfs: merge openzfs/zfs@1c702dda3 (zfs-2.4-release) into stable/15 ("#18138 11647c669 Flush RRD only when TXGs contain data")

Fix unnecessary writes of transaction database - #18120
Closed: https://github.com/openzfs/zfs/pull/18120

HDD spin down and ZFS #18114
Closed: https://github.com/openzfs/zfs/discussions/18114

[2.4] TXG timestamp DB sync if idle causes unnecessary disk access/prevent spin down #18082
Closed: https://github.com/openzfs/zfs/issues/18082
 
Doh! Thanks, I should have thought to look on the development repo. I will read all of those reference now. Thanks again.
 
I noticed from reading the discussions on github that these were Linux ZFS systems using 'hd-idle' to control spin down by sending SCSI commands to idle the drives. I have found two versions of hd-idle. The original was written in C, and a newer version in GO. Both are Linux specific and do not use the FreeBSD CAM system. I guess that although ZFS 2.4.2 in FreeBSD 15.1 can tolerate drives spinning down, it cannot actually do so by default on FreeBSD.
 
I found sysutils/spindown
Hopefully this will be a suitable alternative to hd-idle
 
Back
Top