Best place to spin down disk after boot?

From: Stefan A. Deutscher (sa.deutscher_at_tiscali.de)
Date: 06/14/04

  • Next message: monica.bose_at_itc.alstom.com: "(no subject)"
    Date: Mon, 14 Jun 2004 00:37:22 +0000
    To: freebsd-questions@freebsd.org
    
    

    Hi,

       I have a 5.1Release machine with currently four SCSI disks, out of
    which I need only two at any given time (system and /home). The other
    ones are an alternative system disk, and an OS/2 disk.

    They are set to spin up by themselves or via start unit from the SCSI
    controller, but I wish to spin down the unused ones. I understand that
    frequent spin up/down or power cyles may reduce disk lifetime, but these
    disks are never accessed, i.e. never mounted and never spun up again
    while the system is running.

    To reduce noise and heat production, I am going to spin down two SCSI
    disks on one of my machines with

      camcontrol stop -n da -u 0
      camcontrol stop -n da -u 2

    (Odd enough, a 'camcontrol stop da0 does _not_ work, it needs separate
    -n and -u specs.) To spin down the disks right after boot, I ponder
    sticking things either in the /etc/rc.local (seems to be going out of
    style though) or as a separate script in /etc/rc.d/. Any thoughts on
    that would be appreciated.

    As these commands take a while to return with a success message I'd like
    to do that in the background, and I wish to log it somewhere.

    Is there 'the right' way to send the camcontrol messages to syslog or
    the dmesg file (all true believers shall open their egg at the right
    end!)?

    Cheers, Stefan

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: monica.bose_at_itc.alstom.com: "(no subject)"

    Relevant Pages

    • Re: suspend2 merge (was Re: [Suspend2-devel] Re: CFS and suspend2: hang in atomic copy)
      ... SCSI for a long time precisely because that support was missing. ... Once during snapshot (then we spin it up when the snapshot is ... disks are actually very bad example. ...
      (Linux-Kernel)
    • Re: Automatic means for spinning down disks available?
      ... Maybe it's safer to spin in peace than to park/launch? ... In Nov, '99 a power off//on ... The worst stress points during a disks life are at spin-up ... by configuring Wake On Lan. ...
      (freebsd-questions)
    • Re: Automatic means for spinning down disks available?
      ... I've heard both sides, and so far, just leaving drive spin seems slightly better. ... about the disk spinning at different speeds: many contemporary disks have "acoustics" levels where you can adjust the speed on demand (assuming you knew the hardware level instructions to send to the controllers). ...
      (freebsd-questions)
    • Re: Automatic means for spinning down disks available?
      ... Maybe it's safer to spin in peace than to park/launch? ... I like the idea of saving drives and power if a computer ... spin down disks available in either ports or the base system, ... Gary Kline kline@xxxxxxxxxxx www.thought.org Public Service Unix ...
      (freebsd-questions)
    • [git patches] libata fixes
      ... libata spindown skipping and warning ... haltsynchronizes caches for and spins down libata disks ... Spin down on system halt is now implemented and can be tested ... This module parameter is to give userspace tool the time to ...
      (Linux-Kernel)