On 20/07/2010, at 2:48 AM, Jan Stary wrote: > I run a small server using an ALIX box and a CF card (wd0) > plus two external disks (sd0, sd1) - see the dmesg at bottom. > > The CF card holds the system, while the two external disks are > big storages that are only used sparsely; one of them is a (NFS exported) > /backup dir that is only used for about an hour a night, for example. > > I wonder whether there is something like atactl(8) that I could use > to control the power management of these disks - spin them down > when not used etc, to reduce noise and heat (I have yet to measure > if it would also mean a nontrivial power saving). > > I understand that atactl only works with ATA drives, which my disks > dmesgly are not, being connected through sd(4) - although what's > inside the external USB boxes is actually a Seagate Momentus (SATA) > and a a Samsung Spinpoint (SATA).
there is a (very very) slight chance that the chip that translates from scsi over usb to ata on the actual drive supports the ATA PASSTHRU scsi commands, which the openbsd kernel will now try. this means you might be able to run atactl against those disks. you will need a -current system to try that with though. considering how budget those usb to ata chips are, i wouldnt hold much hope. dlg > > Thank you for your time > > Jan > > > OpenBSD 4.5-stable (GENERIC) #3: Sun Nov 29 11:09:37 CET 2009 > [email protected]:/usr/src/sys/arch/i386/compile/GENERIC > cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 499 MHz > cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX > real mem = 259284992 (247MB) > avail mem = 242405376 (231MB) > mainbus0 at root > bios0 at mainbus0: AT/286+ BIOS, date 08/21/07, BIOS32 rev. 0 @ 0xfa960 > apm0 at bios0: Power Management spec V1.2 (slowidle) > apm0: AC on, battery charge unknown > pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdfb4 > pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf40/112 (5 entries) > pcibios0: bad IRQ table checksum > pcibios0: PCI BIOS has 5 Interrupt Routing table entries > pcibios0: PCI Exclusive IRQs: 5 10 11 > pcibios0: no compatible PCI ICU found > pcibios0: Warning, unable to fix up PCI interrupt routing > pcibios0: PCI bus #0 is the last bus > bios0: ROM list: 0xc0000/0x8000 0xc8000/0xa800 0xef000/0x1000! > cpu0 at mainbus0: (uniprocessor) > amdmsr0 at mainbus0 > pci0 at mainbus0 bus 0: configuration mode 1 (bios) > pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x31 > vga1 at pci0 dev 1 function 1 "AMD Geode LX Video" rev 0x00 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES > vr0 at pci0 dev 13 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11, address 00:0d:b9:0c:e1:40 > ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 > glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 0, 32-bit 3579545Hz timer, watchdog, gpio > gpio0 at glxpcib0: 32 pins > pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility > wd0 at pciide0 channel 0 drive 0: <ELITE PRO CF CARD 4GB> > wd0: 1-sector PIO, LBA, 3847MB, 7880544 sectors > wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 > pciide0: channel 1 ignored (disabled) > auglx0 at pci0 dev 15 function 3 "AMD CS5536 Audio" rev 0x01: irq 11, CS5536 AC97 > ac97: codec id 0x414c4770 (Avance Logic ALC203 rev 0) > ac97: codec features headphone, 20 bit DAC, 18 bit ADC, No 3D Stereo > audio0 at auglx0 > ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 5, version 1.0, legacy support > ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 5 > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1 > isa0 at glxpcib0 > isadma0 at isa0 > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo > pckbc0 at isa0 port 0x60/5 > pckbd0 at pckbc0 (kbd slot) > pckbc0: using irq 1 for kbd slot > wskbd0 at pckbd0: console keyboard, using wsdisplay0 > pcppi0 at isa0 port 0x61 > midi0 at pcppi0: <PC speaker> > spkr0 at pcppi0 > lpt0 at isa0 port 0x378/4 irq 7 > wbsio0 at isa0 port 0x2e/2: W83627HF rev 0x41 > lm1 at wbsio0 port 0x290/8: W83627HF > npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 > usb1 at ohci0: USB revision 1.0 > uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1 > biomask f765 netmask ff65 ttymask ffff > mtrr: K6-family MTRR support (2 registers) > umass0 at uhub0 port 3 configuration 1 interface 0 "JMicron USB to ATA/ATAPI Bridge" rev 2.00/1.00 addr 2 > umass0: using SCSI over Bulk-Only > scsibus0 at umass0: 2 targets, initiator 0 > sd0 at scsibus0 targ 1 lun 0: <ST932032, 0AS, > SCSI2 0/direct fixed > sd0: 305245MB, 512 bytes/sec, 625142448 sec total > umass1 at uhub0 port 4 configuration 1 interface 0 "JMicron USB to ATA/ATAPI Bridge" rev 2.00/1.00 addr 3 > umass1: using SCSI over Bulk-Only > scsibus1 at umass1: 2 targets, initiator 0 > sd1 at scsibus1 targ 1 lun 0: <SAMSUNG, HM251JJ, > SCSI2 0/direct fixed > sd1: 238475MB, 512 bytes/sec, 488397168 sec total > softraid0 at root > root on wd0a swap on wd0b dump on wd0b

