All of lore.kernel.org
 help / color / mirror / Atom feed
* [sbp2] external hard disk shutdown timer
@ 2006-08-07 21:05 olecom
  2006-08-07 23:55 ` Douglas Gilbert
  0 siblings, 1 reply; 5+ messages in thread
From: olecom @ 2006-08-07 21:05 UTC (permalink / raw)
  To: Linux SCSI

Hallo ! Let me ask a question.

I couldn't change some values (f.e IDLE or ICT), while its
"changing" flag is "y".

Would you like to explain meaning of that flag and, possibly,
why change doesn't apply ? Maybe i'm doing or understanding
something wrong ?

All i want is to switch off timers (AFAIR from spcecs i've found t10.org),
that shutdown ieee1394/usb-storage external HDD.
 
TIA.
 
 deen:/home/olecom# sdparm --set=IDLE=0 -6 /dev/sda
    /dev/sda: WD        2500JB External   2.23  [simplified direct access device]
 Request sense detected:  Sense key: Blank Check
  ASC=55, ASCQ=55
    continuing ...
 deen:/home/olecom# sdparm -p po -6 /dev/sda
    /dev/sda: WD        2500JB External   2.23  [simplified direct access device]
 Request sense detected:  Sense key: Medium Error
  ASC=55, ASCQ=55
    continuing ...
 Power condition mode page:
 >>> warning: mode page seems malformed, try '--flexible'
  IDLE        1  [cha: y, def:  1, sav:  1]
  STANDBY     0  [cha: n, def:  0, sav:  0]
  ICT       4095  [cha: y, def:4095, sav:4095]
  SCT       4278190080  [cha: y, def:4278190080, sav:4278190080]
 deen:/home/olecom#
 
--
-o--=O`C
 #oo'L O
<___=E M
 


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [sbp2] external hard disk shutdown timer
@ 2006-08-08 17:31 olecom
  0 siblings, 0 replies; 5+ messages in thread
From: olecom @ 2006-08-08 17:31 UTC (permalink / raw)
  To: Douglas Gilbert; +Cc: Stefan Richter, Linux SCSI

Date: Tue, 08 Aug 2006 11:27:12 -0400
Subject: Re: [sbp2] external hard disk shutdown timer
>
> Stefan Richter wrote:
> > Douglas Gilbert wrote:
> >> olecom@mail.ru wrote:
> >>> Hallo ! Let me ask a question.
> >>>
> >>> I couldn't change some values (f.e IDLE or ICT), while its
> >>> "changing" flag is "y".
> >> I would be surprised if you could change IDLE or
> >> ICT on a SCSI disk and even more surprised if
> >> that could be done through a bridge to an ATA
> >> disk (as is happening in your case).
>
> It seems that <olecom@mail.ru> hopes the the SCSI "idle"
> power condition will map to the ATA STANDBY command
> (as the ATA IDLE command action looks pretty vague).
>
I didn't hope on anything, actually, but wanted to find in t10's specs,
what i saw in sdparm output.

In "SCSI Primary Commands - 2 (SPC-2): 8.3.9 Power condition page"
<http://t10.org/ftp/t10/drafts/spc2/spc2r20.pdf> page 204
i've found that matched what i wanted: IDLE and STANDBY timers in 1Ah table.
It seemed OK to me with that i saw in sdparm.

Anyway thank you, guys, i wish you keep good work done well !

P.S.

Finally it was like "wake up, Neo" for me. Why i don't use "standard flow"
to do things ? I mean load wiXP, ask WD support ? From WD's FAQ:
,-
|- Question
| Do Western Digital external hard drives spin down after a certain amount
| of inactivity time? How can I disable this feature?
|- Answer
| The external hard drives listed below will spin down (enter into power saver mode)
| after 10 minutes of drive inactivity. Once the drive is accessed again, the drive
| will exit from the power saver mode and spin back up.
|
| Please Note: This is a permanent feature of the external hard drives and cannot
| be disabled.
`-
Finita.

So, Douglas, this one isn't for 24x7 at all. But i think 250GB just for backup isn't
good, thus 10 minutes is a very short time interval. So, i need something like
'dd count=1 </dev/ext-wd' every 9 minutes in cron :-)

--
-o--=O`C
 #oo'L O
<___=E M


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-08-08 17:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-07 21:05 [sbp2] external hard disk shutdown timer olecom
2006-08-07 23:55 ` Douglas Gilbert
2006-08-08  8:04   ` Stefan Richter
2006-08-08 15:27     ` Douglas Gilbert
  -- strict thread matches above, loose matches on Subject: below --
2006-08-08 17:31 olecom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.