tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Spinning down sata disk before poweroff
On Sat, Jun 18, 2016 at 03:31:20PM -0500, David Young wrote:
> On Fri, Jun 17, 2016 at 09:58:07PM +0200, Manuel Bouyer wrote:
> > On Fri, Jun 17, 2016 at 11:59:09AM -0500, David Young wrote:
> > > A less intrusive change that's likely to work pretty well, I think, is
> > > to introduce a new flag, DETACH_REBOOT or DETACH_STAY_POWERED, that's
> > > passed to config_detach_all() by cpu_reboot() when the RB_* flags
> > > indicate a reboot is happening. Then, in the wd(4) detach routine, put
> > > the device into standby mode if the flag is not set.
> >
> > I'd prefer to have it the other way round then: a DETACH_POWEROFF
> > which is set only for halt -p.
>
> Ok.
>
> BTW, what should we do during "manual" action, such as 'drvctl -d wd0'?
> Seems like we should power off the drive then, too? Otherwise, it is
> set up for an abrupt power-loss, later.
But if you do this in order to do a rescan, you will power down/up
the drive, which is not so good for enterprise-class drives (for drives
designed for 24x7 SMART counts the number of stop/start cycles)
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index