Hello OpenBSD World!!!
Long time Linux user who has recently been looking closely at OpenBSD
for secure NAS backup device (home network). This is an immediate need
but I will be shifting a couple of desktops to OBSD 'larrerrer' ;-).
I attach at the bottom of this e-mail my dmesg output for my relatively
simple platform for the NAS (I knowwwwww, it's a waste of an excellent
OS! But I am after the security):
Intel D525MW motherboard (Intel Atom D525 Dual Core 1.8GHz (Supports
64bit), Intel NM10 Express Chipset, Intel GMA3150 Integrated Graphics,
Realtek 8111E GiE NIC, Intel BIOS - Supports ACPI), 4GB RAM, Samsung
HM160HI 160GB SATA 2.5" HDD (Taken from my Samsung NC10 and wiped with
DBAN before installation).
Boot medium was CD from an external, USB-connected Samsung SE-S224Q DVD
Writer using Version 5.0 for AMD64 - SHA256 checksum checked against
three Mirrors.
Only "problem" I encountered preceded installation while the CD was
booting. I received the message "/etc/boot.conf: line too long" but the
CD continued to boot and the installation went through without any problems.
I used these package options: -x* then -game* (removing these packages
from the install - it's a NAS I'm creating here).
I had no problem setting up my static network address etc. etc.
I will install rsync via pkg_add later.
However, I have been trying to find out how OpenBSD handles ACPI/APM
Power Management and disk hibernation.
I have read quite a bit:
1) Michael Lucas' Absolute OpenBSD (2004)
2) Secure Architectures with OpenBSD (2004)
3) Michael Lucas' Absolute BSD (for FreeBSD) (2002)
4) Calomel - you know the one
5) I've tried to search the archived dialogues on Old Nabble (Difficult)
6) I've searched Daemon Forums
7) I've read the FAQ - Always the last place I look ;-)
This is what I feel I have learned:
1) Advanced Power Management on OpenBSD is handled by apmd. I know that
because enabling it through /etc/rc.conf, rebooting and then issuing zzz
puts the PC to sleep. When I tap a key - it wakes up again (exactly
where I left it). GREAT!
2) apmd does not automatically hibernate my disk (unless I am missing
something) - but it is possible that there are ports (I've read about
these for FreeBSD) which might handle disk hibernation: spindown and
diskidle
3) I read somewhere that there is a danger in suspending/hibernating the
disk security wise - but haven't found a full explanation (Is RAM dumped
to disk unencrypted, perhaps?). That would explain why a program to
hibernate the disk isn't included in the default install of OpenBSD.
Unfortunately - searching the OpenBSD mailing lists I have subscribed
too is darn awkward (compared to some other fora - I know some issue
'tarred' archives that can be imported into an e-mail client - ever
considered it? :-) ).
SO... I've come to the fount of all knowledge to seek guidance on the
following:
1) Beyond apmd, is there a default handler of disk hibernation
install-ed/able via default OpenBSD?
2) To use apmd, do I need to maintain a swap partition? Indeed, should I
ALWAYS maintain a swap partition on this simple setup (which is running
fine)? I was hoping to get away without one (currently b: is undefined).
3) If spindown or diskidle exist in the packages/ports - would
installing these provide me with a disk hibernation facility for OpenBSD?
4) Is there another way to manage the PC('NAS') using OpenBSD to
minimize power while the 'NAS' is available 24/7?
All you savvy peeps who know where I am going on this - what's my best
case scenario?
An OpenBSD NAS which doesn't hibernate (Thinks... "Where can I get a
100W PSU?") or can I possibly achieve a NAS that hibernates the drive
and "Wake(s) on LAN"?
I'd settle for simply hibernating the disk (That's about 22W there -
half the power draw) - but if the full monty is possible - I'll keep on
digging.
dmesg details follow this EXTREMELY LONG FIRST POST. Thanks for YOUR
patience, y'all ;-)
Mike
P.S. Anybody know why there is an RTC BIOS error 80 for the clock
battery (See below)? Brand New board, this one.
P.P.S. The i386 32-bit version 5.0 works on this MB too - but I haven't
attached the DMESG for that...
**************************************************************************************************************************************
MY DMESG
**************************************************************************************************************************************
OpenBSD 5.0 (GENERIC.MP) #63: Wed Aug 17 10:14:30 MDT 2011
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 80<clock_battery>
real mem = 4275666944 (4077MB)
avail mem = 4147728384 (3955MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xcee98000 (27 entries)
bios0: vendor Intel Corp. version "MWPNT10N.86A.0083.2011.0524.1600"
date 05/24/2011
bios0: Intel Corporation D525MW
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT
acpi0: wakeup devices SLPB(S4) PS2M(S4) PS2K(S4) UAR1(S4) UAR2(S4)
P32_(S4) ILAN(S4) PEX0(S4) PEX1(S4) PEX2(S4) PEX3(S4) UHC1(S3) UHC2(S3)
UHC3(S3) UHC4(S3) EHCI(S3) AZAL(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Atom(TM) CPU D525 @ 1.80GHz, 1800.40 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG
cpu0: 512KB 64b/line 8-way L2 cache
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU D525 @ 1.80GHz, 1800.07 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG
cpu1: 512KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Atom(TM) CPU D525 @ 1.80GHz, 1800.07 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG
cpu2: 512KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU D525 @ 1.80GHz, 1800.07 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG
cpu3: 512KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 8
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 5 (P32_)
acpiprt0: no apic found for irq 24
acpiprt1 at acpi0: bus 0 (PCI0)
acpiprt2 at acpi0: bus 1 (PEX0)
acpiprt3 at acpi0: bus 2 (PEX1)
acpiprt4 at acpi0: bus 3 (PEX2)
acpiprt5 at acpi0: bus 4 (PEX3)
acpicpu0 at acpi0: C1
acpicpu1 at acpi0: C1
acpicpu2 at acpi0: C1
acpicpu3 at acpi0: C1
acpibtn0 at acpi0: SLPB
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
inteldrm0 at vga1: apic 8 int 16
drm0 at inteldrm0
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: msi
azalia0: codecs: Realtek ALC662
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: msi
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
(0x2c00), apic 8 int 16, address 38:60:77:df:da:fa
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 4
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x01: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x01: msi
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x01: msi
pci4 at ppb3 bus 4
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 8 int 23
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 8 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 8 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 8 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 8 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe1
pci5 at ppb4 bus 5
pcib0 at pci0 dev 31 function 0 "Intel Tigerpoint LPC" rev 0x01
pciide0 at pci0 dev 31 function 2 "Intel 82801GB SATA" rev 0x01: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 8 int 18 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <SAMSUNG HM160HI>
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: apic 8
int 19
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600 SO-DIMM
spdmem1 at iic0 addr 0x51: 2GB DDR3 SDRAM PC3-10600 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83627DHG-P rev 0x73
lm1 at wbsio0 port 0x290/8: W83627DHG
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
scsibus1 at softraid0: 256 targets
root on wd0a (f4a86c2de3386fd0.a) swap on wd0b dump on wd0b
#