From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of
Marco Peereboom

right but with no knowledge whatsoever about its content.

On Sat, Nov 21, 2009 at 04:09:55PM -0701, Jeff Ross wrote:
> 
> In my scenario, in a 1U server with 2 enclosures I do not have a hot spare
> online but I still have a good drive and a failed drive.  Replacing the
failed
> drive, even with the exact same hard disk, has to result in copying the
> good drive to the new drive, right?
> 
> Jeff

On Fri, Nov 20, 2009 at 12:08:33PM -0700, Jeff Ross wrote:
> I shutdown that server, removed the failed drive and inserted it into 
> another identical SuperMicro.  System booted, noted an unclean shutdown, 
> ran fsck and   was at login in short order.

-----

I have been following this thread with some interest.

I have just been putting together an older system that I was going to use as
a home fileserver.  Somewhere in the past, I acquired a LSI Megaraid 150-6
PCI card (it is supported by ami).   I also had a matched pair of SATA
drives, and was planning on using hardware raid to mirror them (this is not
for backup, I do that frequently enough for me with a couple of USB drives
stored elsewhere), but more so to avoid an annoyance if either of the older
SATA drives fail (the raid array was only for my data, I installed the OS on
another drive).

Anyway, I had not considered the possibility of a controller failure.  I
also wondered if it was possible to remove a drive from the mirrored
hardware array, and see if it is recognized by a plain old SATA controller.
So, I did this by shutting the system down, enabling the motherboard's SATA
controller, and moving one of the drive cables to this standard SATA
controller.

Unfortunately, while the array comes up and is accessible, even though it is
degraded; I cannot access the drive now attached to the standard SATA
controller.  If I try to fsck it, I get an "unknown special file or file
system" message.

So, it seems, with ami and this megaraid card, I will not be able to recover
from a controller failure by hooking a drive up to a standard SATA
controller.  The motherboard does have 2 standard SATA connectors I can use
(instead of the LSI Megaraid card - currently disabled in BIOS and not
visible in the dmesg below).

So, my question:  How likely is a raid controller failure (with the LSI
Megaraid PCI cards), and would I be better off just chucking the Megaraid
card and using software raid with the drives connected via the standard SATA
controllers?  I figure there must be some performance loss, but I can't
imagine I will ever notice it looking at old pictures.

Finally, I am wondering.  I had assumed that the hardware controller really
didn't do that much when in RAID1, and just passed the writes/reads to/from
both of the disks, resulting in 2 (basically) normal drives.  Obviously, I
was wrong.  I am wondering why/how the raid controller needs to modify the
disk's file system when it's only mirroring 2 drives? (I really could not
find anything by google-ing around on this.)

I hope I don't sound too clueless for asking.

Bye - ted


-------
OpenBSD 4.6 (GENERIC) #58: Thu Jul  9 21:24:42 MDT 2009
    dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 2.80GHz ("GenuineIntel" 686-class) 2.80 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
SH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
real mem  = 1072742400 (1023MB)
avail mem = 1028481024 (980MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/19/03, BIOS32 rev. 0 @ 0xffe90,
SMBIOS rev. 2.3 @ 0xf0450 (66 entries)
bios0: vendor Dell Computer Corporation version "A03" date 09/19/2003
bios0: Dell Computer Corporation Dimension XPS
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP SSDT APIC BOOT
acpi0: wakeup devices VBTN(S4) PCI0(S3) USB0(S3) USB1(S3) USB2(S3) USB3(S3)
PCI1(S5) MOU_(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PCI1)
acpicpu0 at acpi0
acpibtn0 at acpi0: VBTN
bios0: ROM list: 0xc0000/0xd000 0xcd000/0x800 0xcd800/0x800 0xce000/0x800!
0xce800/0x1800!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82875P Host" rev 0x02
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xe8000000, size 0x8000000
ppb0 at pci0 dev 1 function 0 "Intel 82875P AGP" rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce2 MX" rev 0xb2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0 "Intel 82801EB/ER USB" rev 0x02: apic 1 int
16 (irq 11)
uhci1 at pci0 dev 29 function 1 "Intel 82801EB/ER USB" rev 0x02: apic 1 int
19 (irq 10)
uhci2 at pci0 dev 29 function 2 "Intel 82801EB/ER USB" rev 0x02: apic 1 int
18 (irq 9)
uhci3 at pci0 dev 29 function 3 "Intel 82801EB/ER USB" rev 0x02: apic 1 int
16 (irq 11)
ehci0 at pci0 dev 29 function 7 "Intel 82801EB/ER USB2" rev 0x02: apic 1 int
23 (irq 5)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xc2
pci2 at ppb1 bus 2
skc0 at pci2 dev 0 function 0 "3Com 3c940" rev 0x10, Yukon (0x1): apic 1 int
21 (irq 5)
sk0 at skc0 port A: address 00:0a:5e:1a:3e:3a
eephy0 at sk0 phy 0: 88E1011 Gigabit PHY, rev. 3
ahc0 at pci2 dev 1 function 0 "Adaptec AHA-2940U" rev 0x01: apic 1 int 22
(irq 10)
scsibus0 at ahc0: 16 targets, initiator 7
ami0 at pci2 dev 2 function 0 "Symbios Logic MegaRAID" rev 0x01: apic 1 int
17 (irq 10)
ami0: LSI 523, 32b, FW 713^, BIOS vG121, 64MB RAM
ami0: 1 channels, 0 FC loops, 1 logical drives
scsibus1 at ami0: 40 targets
sd0 at scsibus1 targ 0 lun 0: <AMI, Host drive #00, > SCSI2 0/direct fixed
sd0: 715400MB, 512 bytes/sec, 1465139200 sec total
scsibus2 at ami0: 16 targets
ichpcib0 at pci0 dev 31 function 0 "Intel 82801EB/ER LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801EB/ER IDE" rev 0x02: DMA,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <ST340016A>
wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors
wd1 at pciide0 channel 0 drive 1: <ST320011A>
wd1: 16-sector PIO, LBA, 19092MB, 39102336 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus3 at atapiscsi0: 2 targets
cd0 at scsibus3 targ 0 lun 0: <_NEC, DVD+RW ND-1100A, 10GE> ATAPI 5/cdrom
removable
atapiscsi1 at pciide0 channel 1 drive 1
scsibus4 at atapiscsi1: 2 targets
cd1 at scsibus4 targ 0 lun 0: <HP, CD-Writer+ 8100, 1.0g> ATAPI 5/cdrom
removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:1:1): using PIO mode 0, DMA mode 1
pciide1 at pci0 dev 31 function 2 "Intel 82801EB SATA" rev 0x02: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 18 (irq 9) for native-PCI interrupt
ichiic0 at pci0 dev 31 function 3 "Intel 82801EB/ER SMBus" rev 0x02: apic 1
int 17 (irq 10)
iic0 at ichiic0
adt0 at iic0 addr 0x2e: adm1027 rev 0x60
spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC3200CL3.0
spdmem1 at iic0 addr 0x52: 512MB DDR SDRAM non-parity PC3200CL3.0
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 ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
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
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
mtrr: Pentium Pro MTRR support
softraid0 at root
root on wd0a swap on wd0b dump on wd0b

Reply via email to