It writes on the log file 601s of previous disk spin up and ~21h of standby. The log file is written after a full cycle of running-stopped-wakeup.Ī bit more on running explained with the above example: timestampĪt 07:59:57 the disk is on standby and hd-idle detects disk activity.Īt 08:09:58 the disk is active and hd-idle determines inactivity of the disk and spins it down.Īt 05:28:01 on the next day the disk is on standby and hd-idle detects disk activity. This is the time the disk was asleep before spinning up. running seconds the device was running before it spun down the last time.Spin-down on selected disks, set the default idle time to 0.ĭate:, time: 05:28:01, disk: sdc, running: 601, stopped: 76654 In order to disable spin-down of disks per default, and then re-enable The parameter -a can be used to set a filter on the disk's device name (omit /dev/)Ī -i option before the first -a option will set the default idle time. Stdout/stderr (/var/log/syslog if started with systemctl) Spin-down the specified disk immediately and exit.ĭebug mode. On systems with more than one disk, the disk where the log This option should not cause any additional spinups. Please note that this option might cause theĭisk which holds the logfile to spin up just becauseĪnother disk had some activity. Name of logfile (written only after a disk has spun Symlink doesn't resolve to a device, the default Symlinks are also resolved on runtime until success.īy default symlinks are only resolved on start. To 0, symlinks are resolved only on start. Set the policy to resolve symlinks for devices. Useful values for SAS disks are 2 for idle and 3 for standby. ), but it will NOT work as intended with real SCSI / SAS disks.Ī stopped SAS disk will not start up automatically on access, but requires a startup command for reactivation. The default value of 0 works fine for disks accessible via the Power condition to send with the issued SCSI START STOP UNIT command. Setting this value to 0 will never spin down the disk(s).Īpi call to stop the device. Idle time in seconds for the currently named disk(s) Which are not named otherwise by using this Sense that there's a default entry for all disks Set device name of disks for subsequent idle-time In case of problems, use the debug option -d to get further information. This file is not present, hd-idle won't work. Please note that hd-idle uses /proc/diskstats to read disk statistics. Open a terminal and execute these commands: Go environment with version 1.16 or greater installed. To build hd-idle from the source code yourself you need to have a working Precompiled binaries for released versions are available in the There are various ways of installing hd-idle: Precompiled binaries When using LUKS, activity will happen on the device mapper device mapped to the corresponding disk. This is required for kernels newer than 5.4 LTS, because disk monitoring tools change read/write values on disk level,Īlthough there's no real activity on the disk itself. The disk activity is calculated by watching read/write changes on partition or device mapper level instead of disk level. Use disk partitions or device mapper to calculate activity Show in standard output when disks spin up. Disks added after application's start won't be hidden. Hd-idle can resolve disk symlinks also in runtime. This should capture suspend events as well as excessive machine load. Identify if the sleep took longer than expected and reset the spun down flag if it waited too long for the main loop sleep. Monitor the skew between monitoring cycles hd-idle comes with ATA commands support to replicate hdparm's api calls. It uses ATA api calls to send disks to standby. Hdparm on the other hand always stops the drives without any problems. When listing the drives by id, disks starting with usb stop using the original implementation, The implementation of hd-idle written by Christian Mueller relies on the SCSI api to work. List of extra features compared to the original hd-idle: Support ATA commands
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |