teeedubb
December 12th, 2010, 10:41 AM
Hi all,
Im wanting to put HDD's to sleep using hdparm after 20min of activity (a 4x disk raid5 array and two single disks). I have edited /etc/hdparm.conf, adding the following lines at the end of the file:
#6TB RAID5 POWER DOWN
/dev/disk/by-id/scsi-SATA_ST32000542AS_5XW0T1R6 {
spindown_time = 240
}
/dev/disk/by-id/scsi-SATA_ST32000542AS_5XW0TJZ2 {
spindown_time = 240
}
/dev/disk/by-id/scsi-SATA_ST32000542AS_5XW0W8SR {
spindown_time = 240
}
/dev/disk/by-id/scsi-SATA_ST32000542AS_5XW0XM34 {
spindown_time = 240
}
#500GB DISK POWER DOWN
/dev/disk/by-id/scsi-SATA_SAMSUNG_HD501LJS0MUJDWQ411622 {
spindown_time = 240
}
/dev/disk/by-id/scsi-SATA_SAMSUNG_HD501LJS0MUJDWQ411623 {
spindown_time = 240
}
If I issue the command (or variants of):
sudo hdparm -y /dev/disk/by-id/scsi-SATA_SAMSUNG_HD501LJS0MUJDWQ411622The HDD's will sleep with out issue. Ive looked around my log files and cant seem to find anything to do with hdparm, or the HDD's sleeping. Have I make a mistake in the .conf file? Is there some place hdparm logs, or if I can activate some sort of verbose mode? Or does hdparm need to be activated on boot?
Any help is greatly appreciated.
EDIT: I'm using ubuntu 10.04.1 x64 last updated today.
Im wanting to put HDD's to sleep using hdparm after 20min of activity (a 4x disk raid5 array and two single disks). I have edited /etc/hdparm.conf, adding the following lines at the end of the file:
#6TB RAID5 POWER DOWN
/dev/disk/by-id/scsi-SATA_ST32000542AS_5XW0T1R6 {
spindown_time = 240
}
/dev/disk/by-id/scsi-SATA_ST32000542AS_5XW0TJZ2 {
spindown_time = 240
}
/dev/disk/by-id/scsi-SATA_ST32000542AS_5XW0W8SR {
spindown_time = 240
}
/dev/disk/by-id/scsi-SATA_ST32000542AS_5XW0XM34 {
spindown_time = 240
}
#500GB DISK POWER DOWN
/dev/disk/by-id/scsi-SATA_SAMSUNG_HD501LJS0MUJDWQ411622 {
spindown_time = 240
}
/dev/disk/by-id/scsi-SATA_SAMSUNG_HD501LJS0MUJDWQ411623 {
spindown_time = 240
}
If I issue the command (or variants of):
sudo hdparm -y /dev/disk/by-id/scsi-SATA_SAMSUNG_HD501LJS0MUJDWQ411622The HDD's will sleep with out issue. Ive looked around my log files and cant seem to find anything to do with hdparm, or the HDD's sleeping. Have I make a mistake in the .conf file? Is there some place hdparm logs, or if I can activate some sort of verbose mode? Or does hdparm need to be activated on boot?
Any help is greatly appreciated.
EDIT: I'm using ubuntu 10.04.1 x64 last updated today.