Re: AMD Zacate E350 (ASUS E35M1-M) dmesg/experiences?

2012-06-01 Thread Marc Peters
On 05/31/2012 05:54 PM, Manolis Tzanidakis wrote:
 Please reply on the list. I'm already subscribed and others might find
 your questions useful. Also, don't send HTML e-mails. Check the lists'
 guidelines.
 
 On Thu (31/05/12), Eugene Yunak wrote:
 Thank you very much, this is super helpful! i am going to buy either
 this board or the E450 one and dmesg is precisely what i needed.

 One question if i may - do you know if it supports boot from USB and
 maybe USB raid 1? (i want to create mirror of usb sticks and install OS
 there, and use all the sata ports for data hdds).
 
 It boots from USB. I installed OBSD this way. I suppose softraid(4)
 should support raid 1 with USB drives/sticks. I don't think it's a good
 idea though.
 

Be aware, that OpenBSD cannot boot from softraid. / needs to be on a
single disk, but can be automatically backuped to an altroot device.

Here is my fstab in a similar setup:

~ $ more /etc/fstab
/dev/sd0a / ffs rw 1 1
/dev/sd0b none swap sw
aad9c166558b757e.d /usr ffs rw,nodev,softdep 1 2
aad9c166558b757e.e /tmp ffs rw,nodev,nosuid,softdep 1 2
aad9c166558b757e.f /home ffs rw,nodev,nosuid,softdep 1 2
aad9c166558b757e.g /var ffs rw,nodev,nosuid,softdep 1 2
/dev/sd1a /altroot ffs xx 0 0

hth,
marc



Re: AMD Zacate E350 (ASUS E35M1-M) dmesg/experiences?

2012-06-01 Thread Manolis Tzanidakis
On Fri (01/06/12), Marc Peters wrote:
 Be aware, that OpenBSD cannot boot from softraid. / needs to be on a
 single disk, but can be automatically backuped to an altroot device.

Nowadays it does. My server's / is on a softraid(4) RAID-1 array.
The basic idea is to have a small 'a' slice for the kernel on each
disk and a 'd' (or whatever) for the raid. 
installboot(8) does the right thing automatically these days.

I think there is an article on undeadly with more detailed instructions
/ explanations.

A raid on USB devices is not a good idea for a whole lot of other
reasons though.

-- 
Manolis Tzanidakis
http://mtzanidakis.com/
mtzanidakis[at]gmail[dot]com



Re: AMD Zacate E350 (ASUS E35M1-M) dmesg/experiences?

2012-06-01 Thread Stuart Henderson
On 2012-06-01, Manolis Tzanidakis mtzanida...@gmail.com wrote:
 On Fri (01/06/12), Marc Peters wrote:
 Be aware, that OpenBSD cannot boot from softraid. / needs to be on a
 single disk, but can be automatically backuped to an altroot device.

 Nowadays it does. My server's / is on a softraid(4) RAID-1 array.

This is arch dependent.

 The basic idea is to have a small 'a' slice for the kernel on each
 disk and a 'd' (or whatever) for the raid. 
 installboot(8) does the right thing automatically these days.

At least on amd64 you don't need a special partition for the kernel.

- Shell out of the installer.

- sh /dev/MAKEDEV sd1 (etc).

- Create the RAID partition on the physical disks, you don't need another
partition there.

- Use bioctl to create the softraid.

- Run the installer normally and choose the softraid disk as the install 
destination.

 I think there is an article on undeadly with more detailed instructions
 / explanations.

 A raid on USB devices is not a good idea for a whole lot of other
 reasons though.


yeah. might be useful in testing but I agree.



Re: AMD Zacate E350 (ASUS E35M1-M) dmesg/experiences?

2012-06-01 Thread Eugene Yunak
On 1 June 2012 13:49, Manolis Tzanidakis mtzanida...@gmail.com wrote:

 On Fri (01/06/12), Marc Peters wrote:
  Be aware, that OpenBSD cannot boot from softraid. / needs to be on a
  single disk, but can be automatically backuped to an altroot device.

 Nowadays it does. My server's / is on a softraid(4) RAID-1 array.
 The basic idea is to have a small 'a' slice for the kernel on each
 disk and a 'd' (or whatever) for the raid.
 installboot(8) does the right thing automatically these days.

 I think there is an article on undeadly with more detailed instructions
 / explanations.

 A raid on USB devices is not a good idea for a whole lot of other
 reasons though.

 --
 Manolis Tzanidakis
 http://mtzanidakis.com/
 mtzanidakis[at]gmail[dot]com


Oh you are obviously such a seasoned OpenBSD expert, please tell us
more about your USB RAID experience and why it is a bad idea.

It would be great if you could also go into deeper detail about / on
softraid - you must be the first one to mention it here on misc and
i'm sure everyone reading this is eager to learn how to make it work.


Best regards



Re: AMD Zacate E350 (ASUS E35M1-M) dmesg/experiences?

2012-06-01 Thread Manolis Tzanidakis
On Fri (01/06/12), Eugene Yunak wrote:
 On 1 June 2012 13:49, Manolis Tzanidakis mtzanida...@gmail.com wrote:
  Nowadays it does. My server's / is on a softraid(4) RAID-1 array.
  The basic idea is to have a small 'a' slice for the kernel on each
  disk and a 'd' (or whatever) for the raid.
  installboot(8) does the right thing automatically these days.
  I think there is an article on undeadly with more detailed instructions
  / explanations.
 
  A raid on USB devices is not a good idea for a whole lot of other
  reasons though.
 
 Oh you are obviously such a seasoned OpenBSD expert, please tell us
 more about your USB RAID experience and why it is a bad idea.

The most obvious is that NAND flash devices have shorter lifespan than
hard disks. Imagine wearing out both devices simultaneously with the
RAID-1.
I think it's better to have a USB stick for /, /usr and dumprestore or
rsync it to the 2nd stick for redundancy. You should repeat this on
updates. You should keep /var, /usr/{obj,ports,src}, /home and any other
fs with frequent writes on the hard disks to extend the life of the USB
stick.

 It would be great if you could also go into deeper detail about / on
 softraid - you must be the first one to mention it here on misc and
 i'm sure everyone reading this is eager to learn how to make it work.

I guess Stuart covered this on this thread. You should also read this:
http://undeadly.org/cgi?action=articlesid=20111002154251

-- 
Manolis Tzanidakis
http://mtzanidakis.com/
mtzanidakis[at]gmail[dot]com



Re: AMD Zacate E350 (ASUS E35M1-M) dmesg/experiences?

2012-06-01 Thread Manolis Tzanidakis
On Fri (01/06/12), Stuart Henderson wrote:
 On 2012-06-01, Manolis Tzanidakis mtzanida...@gmail.com wrote:
  The basic idea is to have a small 'a' slice for the kernel on each
  disk and a 'd' (or whatever) for the raid. 
  installboot(8) does the right thing automatically these days.
 
 At least on amd64 you don't need a special partition for the kernel.

I didn't know about that. I guess the FAQ needs a softraid(4) section
sooner or later. I should shut up and write it but spare time is a
luxury for me right now. Anyone else?

-- 
Manolis Tzanidakis
http://mtzanidakis.com/
mtzanidakis[at]gmail[dot]com



Re: AMD Zacate E350 (ASUS E35M1-M) dmesg/experiences?

2012-06-01 Thread Eugene Yunak
On 1 June 2012 17:11, Manolis Tzanidakis mtzanida...@gmail.com wrote:
 On Fri (01/06/12), Eugene Yunak wrote:
 On 1 June 2012 13:49, Manolis Tzanidakis mtzanida...@gmail.com wrote:
  A raid on USB devices is not a good idea for a whole lot of other
  reasons though.

 Oh you are obviously such a seasoned OpenBSD expert, please tell us
 more about your USB RAID experience and why it is a bad idea.

 The most obvious is that NAND flash devices have shorter lifespan than
 hard disks. Imagine wearing out both devices simultaneously with the
 RAID-1.
 I think it's better to have a USB stick for /, /usr and dumprestore or
 rsync it to the 2nd stick for redundancy. You should repeat this on
 updates. You should keep /var, /usr/{obj,ports,src}, /home and any other
 fs with frequent writes on the hard disks to extend the life of the USB
 stick.


Thank you for sharing your wisdom, now i know what i *should do*, you
made it pretty clear. Have you considered three-way mirror? What do
you think about mounting filesystems read-only? Have you heard of NFS
and remote syslog? I'm sure you will grant us the mercy of knowing why
all these are not a good idea.

 It would be great if you could also go into deeper detail about / on
 softraid - you must be the first one to mention it here on misc and
 i'm sure everyone reading this is eager to learn how to make it work.

 I guess Stuart covered this on this thread. You should also read this:
 http://undeadly.org/cgi?action=articlesid=20111002154251


Oh yes Stuart knows what he's talking about.



Re: AMD Zacate E350 (ASUS E35M1-M) dmesg/experiences?

2012-06-01 Thread Martin Schröder
2012/6/1 Manolis Tzanidakis mtzanida...@gmail.com:
 The most obvious is that NAND flash devices have shorter lifespan than
 hard disks.

So how many flash drives have you broken?



Re: AMD Zacate E350 (ASUS E35M1-M) dmesg/experiences?

2012-05-31 Thread Manolis Tzanidakis
Please reply on the list. I'm already subscribed and others might find
your questions useful. Also, don't send HTML e-mails. Check the lists'
guidelines.

On Thu (31/05/12), Eugene Yunak wrote:
 Thank you very much, this is super helpful! i am going to buy either
 this board or the E450 one and dmesg is precisely what i needed.
 
 One question if i may - do you know if it supports boot from USB and
 maybe USB raid 1? (i want to create mirror of usb sticks and install OS
 there, and use all the sata ports for data hdds).

It boots from USB. I installed OBSD this way. I suppose softraid(4)
should support raid 1 with USB drives/sticks. I don't think it's a good
idea though.

-- 
Manolis Tzanidakis
http://mtzanidakis.com/
mtzanidakis[at]gmail[dot]com



Re: AMD Zacate E350 (ASUS E35M1-M) dmesg/experiences?

2012-05-30 Thread Manolis Tzanidakis
I'm answering to myself here..

I finally got this motherboard and it's been running some services 24/7
for a week now, without problems. With 5.1-RELEASE.

It's no server board (non-ECC ram, no IPMI, re(4) ) but I highly
recommend it for cheap silent/low-power systems.
A bit faster than Atoms, yet still no speed demon. But it has 6 SATA
and supports up to 8GB of ram. And no cpu fan. My office is quiet again.

# sysctl hw | grep temp
hw.sensors.km0.temp0=51.50 degC
hw.sensors.lm1.temp0=28.00 degC
hw.sensors.lm1.temp1=39.00 degC

Here's the dmesg:

OpenBSD 5.1 (GENERIC.MP) #207: Sun Feb 12 09:42:14 MST 2012
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8167038976 (7788MB)
avail mem = 7935467520 (7567MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeaf40 (60 entries)
bios0:
bios0: ASUSTeK COMPUTER INC. E35M1-M
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT
acpi0: wakeup devices SBAZ(S4) PS2K(S4) PS2M(S4) UAR1(S4) P0PC(S4) UHC1(S4) 
UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) BR14(S4) PE20(S4) 
PE21(S4) RLAN(S4) PE22(S4) BR23(S4) PE23(S4) PWRB(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-350 Processor, 1600.18 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-350 Processor, 1599.96 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 21, 24 pins
ioapic0: misconfigured as apic 3, remapped to apid 0
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (BR15)
acpiprt2 at acpi0: bus -1 (PCE6)
acpiprt3 at acpi0: bus -1 (PCE7)
acpiprt4 at acpi0: bus -1 (PCE8)
acpiprt5 at acpi0: bus -1 (BR14)
acpiprt6 at acpi0: bus 2 (PE20)
acpiprt7 at acpi0: bus 3 (PE21)
acpiprt8 at acpi0: bus 4 (PE22)
acpiprt9 at acpi0: bus 5 (BR23)
acpiprt10 at acpi0: bus -1 (PE23)
acpicpu0 at acpi0: C2, PSS
acpicpu1 at acpi0: C2, PSS
acpibtn0 at acpi0: PWRB
cpu0: 1599 MHz: speeds: 1600 1280 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 AMD AMD64 14h Host rev 0x00
vga1 at pci0 dev 1 function 0 ATI Radeon HD 6310 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 1 function 1 ATI Radeon HD 6310 HD Audio rev 0x00: msi
azalia0: no supported codecs
ahci0 at pci0 dev 17 function 0 ATI SBx00 SATA rev 0x40: apic 0 int 19, AHCI 
1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, WDC WD20EARS-00M, 51.0 SCSI3 0/direct 
fixed naa.50014ee6561ebf46
sd0: 1907729MB, 512 bytes/sector, 3907029168 sectors
sd1 at scsibus0 targ 1 lun 0: ATA, WDC WD20EARS-07M, 51.0 SCSI3 0/direct 
fixed naa.50014ee205874f2b
sd1: 1907729MB, 512 bytes/sector, 3907029168 sectors
sd2 at scsibus0 targ 2 lun 0: ATA, WDC WD20EARS-00M, 51.0 SCSI3 0/direct 
fixed naa.50014ee205a8d497
sd2: 1907729MB, 512 bytes/sector, 3907029168 sectors
ohci0 at pci0 dev 18 function 0 ATI SB700 USB rev 0x00: apic 0 int 18, 
version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 ATI SB700 USB2 rev 0x00: apic 0 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 ATI EHCI root hub rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 ATI SB700 USB rev 0x00: apic 0 int 18, 
version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 ATI SB700 USB2 rev 0x00: apic 0 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 ATI EHCI root hub rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 ATI SBx00 SMBus rev 0x42: polling
iic0 at piixpm0
iic0: addr 0x20 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00 09=00 0a=10 
0b=10 0c=10 0d=10 0e=0b 0f=94 10=00 11=00 12=00 13=00 14=00 15=10 16=0a 17=ae 
18=40 19=9a 1a=b3 1b=a8 1c=b6 1d=80 1e=0c 1f=03 20=09 21=09 22=09 23=09 24=03 
3e=cf words 00=ff00 01= 02= 03= 04= 05= 06= 07=
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600
spdmem1 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-10600
azalia1 at pci0 dev 20 function 2 ATI SBx00 HD Audio rev 0x40: apic 0 int 16
azalia1: codecs: Realtek/0x0887
audio0 at