خرید بک لینک

Hi all,

I wanted to put my 3 HDDs to sleep when not needed.
The machine acts like a server so it's on all day. Hence some sound and power management is a good idea.

However, only one HDD goes to sleep, two stay alove.

So here's some output as an overview:

Code:

sudo blkid
/dev/sda1: UUID="f6bd81f4-418f-4d73-8acc-e23445e84887" TYPE="ext4" 
/dev/sda2: UUID="ba1df120-1d5a-4eb0-b466-1833b1f97d89" TYPE="ext4" 
/dev/sda3: UUID="f0456fac-dc73-4fdf-97ea-70ac926b0786" TYPE="swap" 
/dev/sda4: UUID="05aa9340-3cdd-41ef-ac4b-519f356b7e61" TYPE="ext4" 
/dev/sdc1: LABEL="GB160A" UUID="9ec31ffa-1a99-4a1d-9caa-355316d375f1" TYPE="ext4" 
/dev/sdb1: LABEL="GB160" UUID="4aca62bc-38e1-41d8-b866-c3e38b420bbc" TYPE="ext4"

Code:

sudo hdparm -C /dev/sdb
/dev/sdb:
drive state is:  standby

sudo hdparm -C /dev/sdc
/dev/sdc:
drive state is:  active/idle

sudo hdparm -C /dev/sda
/dev/sda:
drive state is:  active/idle

The UDEV rule looks like this:

Code:

SUBSYSTEMS=="scsi", KERNEL=="sd?1", ATTRS{model}=="WDC WD400BB-75DEA0", RUN+="/sbin/hdparm -S 120 
/dev/disk/by-uuid/f6bd81f4-418f-4d73-8acc-e23445e84887" 
SUBSYSTEMS=="scsi", KERNEL=="sdb1", ATTRS{model}=="ST3160215ACE", RUN+="/sbin/hdparm -S 120 /dev/disk/by-uuid/4aca62bc-38e1-41d8-b866-c3e38b420bbc"
SUBSYSTEMS=="scsi", KERNEL=="sdc1", ATTRS{model}=="WDC WD1600AAJS-08B4A0", RUN+="/sbin/hdparm -S 120
/dev/disk/by-uuid/9ec31ffa-1a99-4a1d-9caa-355316d375f1"
So sdb1 goes on standby after 2 minutes, the others don't
Sdc1 is similar to sdb.
Sda is labelled sd?1, not sure if this is right. I was trying to get all subpartitions of this HDD into one rule. I also tried calling it sda? with no different result.

What could be wrong here?
Have I missed something in the UDEV rule?

St

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 20 تير 1395 ساعت: 5:26

صفحه بندی