spindown | hvkls.dyndns.org
|
![]()
|
Search · Suche
|
Version: Tue, 13 Oct 2009 08:35:01 CEST
- USE AT YOUR OWN RISK
-
- Purpose
Spindown is a daemon that can spindown idle disks and so saving energy and giving the disks a longer lifetime. It works by checking how many blocks are read and written from the disks. When no blocks are read or written the disk is idle. When a disk stays idle long enough spindown uses sg_start to spin the disk down. It also works with usb disks and hotswappable disks because it doesn't watch the device name (hda, sdb, ...), but the device id. This means that it doesn't matter if the disk is swapped while the daemon is running.
-
- Installation
tar -C / -xvzf spindown*binaries-ppc*.tar.gztar -C / -xvzf sdparm*binaries-ppc*.tar.gz- Copy the example configuration over first:
cp /etc/spindown.conf.example /etc/spindown.conf- Edit
/etc/spindown.conf. Your text editor must be able to deal with *X line breaks a.k.a. be "Linux compatible". - For more information, please check http://code.google.com/p/spindown/w/list
-
- Usage
- The server starts automatically on boot.
- Starting the server manually:
/etc/init.d/spindown start - Stopping the server manually:
/etc/init.d/spindown stop
-
- Compilation (optional)
VERSION="0.4.0"
wget http://spindown.googlecode.com/files/spindown-${VERSION}.tar.gz
tar -xvzf spindown-${VERSION}.tar.gz
cd spindown-${VERSION}- The Makefile was modified as follows:
1,2c1,2
< sbindir = $(DESTDIR)/sbin
< etcdir = $(DESTDIR)/etc
---
> sbindir = /usr/local/sbin
> etcdir = /etc
6c6
< CFLAGS =-O1 -pthread
---
> CFLAGS =-Os -pthreadmake install