09 May 2014

I have two raids on my home server, one of them is used just as a backup staging area.

So I wanted to set all disks that compose that raid with higher power saving settings.

The result is this simple script

mdadm --detail $1 | grep -o /dev/sd. |xargs hdparm ${@:2}

It make no checks but it gets the job done.