Re: root filesystem on softraid

2011-10-31 Thread Henning Brauer
* Raymond Lillard r...@sonic.net [2011-10-29 08:30]:
 Should the serial number contain the duid?  Is this

no.

 expected or did I miss something?  Maybe the serial
 relates to hardware raid?

kinda. for hw raids, bioctl shows the serial numbers of the physical
disks there - since they don't show up as indivudual disks anywhere
else really that is the way to get said serials.
now for softraid the raid set is constructed out of partitions, not
raw disks, and the disks holding said partitions show up as regular
disks, so there is no serial in the bioctl output for softraid.

 # bioctl -hv sd2
 Volume  Status   Size Device
 softraid0 0 Rebuild  458G sd2 RAID1 20% done
   0 Online   458G 0:0.0   noencl sd0d
  'unknown serial'
   1 Rebuild  458G 0:1.0   noencl sd1d
  'unknown serial'

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de, Full-Service ISP
Secure Hosting, Mail and DNS Services. Dedicated Servers, Root to Fully Managed
Henning Brauer Consulting, http://henningbrauer.com/



root filesystem on softraid

2011-10-29 Thread Raymond Lillard

I saw the commits for this a few weeks past and thought
I'd give it a go.

I have successfully built a RAID1 on two ~500GB physical
drives. The root filesystem is on partition a.

I shutdown the machine and replaced one of the disks with
a fresh unused one to test the rebuild process.

All seems to have went well, it is still rebuilding, but
in checking status I see no serial in the status output.
Should the serial number contain the duid?  Is this
expected or did I miss something?  Maybe the serial
relates to hardware raid?

# bioctl -hv sd2
Volume  Status   Size Device
softraid0 0 Rebuild  458G sd2 RAID1 20% done
  0 Online   458G 0:0.0   noencl sd0d
 'unknown serial'
  1 Rebuild  458G 0:1.0   noencl sd1d
 'unknown serial'

My test machine is a Lenovo w500.  Next up is a Sun v240.

Thanks to the developers for this.  I've been hoping
for this for some time.  I now just need to remember
to update the kernel file on the a partitions
when doing normal updates.

Regards All
Ray

Just for the record:

OpenBSD 5.0-current (GENERIC) #90: Sat Oct 22 20:51:52 MDT 2011
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 8515162112 (8120MB)
avail mem = 8274382848 (7891MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (80 entries)
bios0: vendor LENOVO version 6FET79WW (3.09 ) date 10/02/2009
bios0: LENOVO 406227U
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA DMAR 
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) 
EXP4(S4) PCI1(S4) USB0(S3) USB3(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4)

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz, 2793.42 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,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG

cpu0: 6MB 64b/line 16-way L2 cache
cpu0: apic clock running at 265MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4619 serial  7236 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
cpu0: Enhanced SpeedStep 2793 MHz: speeds: 2801, 2800, 2133, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
ppb0 at pci0 dev 1 function 0 Intel GM45 PCIE rev 0x07: msi
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Mobility Radeon HD 3650 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 1 int 16
drm0 at radeondrm0
Intel GM45 HECI rev 0x07 at pci0 dev 3 function 0 not configured
em0 at pci0 dev 25 function 0 Intel ICH9 IGP M AMT rev 0x03: msi, address 
00:21:86:a3:08:d0
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 1 int 20
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 1 int 21
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 1 int 22
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 1 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x03: msi
azalia0: codecs: Conexant CX20561, Conexant/0x2c06, using Conexant CX20561
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: msi
pci3 at ppb2 bus 3
iwn0 at pci3 dev 0 function 0 Intel WiFi Link 5100 rev 0x00: msi, MIMO 1T2R, MoW, address 
00:21:5d:77:88:dc

ppb3 at pci0 dev 28 function 2 Intel 82801I PCIE rev 0x03: msi
pci4 at ppb3 bus 4
Intel Turbo Memory rev 0x11 at pci4 dev 0 function 0 not configured
ppb4 at pci0 dev 28 function 3 Intel 82801I PCIE rev 0x03: msi
pci5 at ppb4 bus 5
ppb5 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x03: msi
pci6 at ppb5 bus 13
uhci3 at 

Re: root filesystem on softraid

2011-10-29 Thread Josh Grosse
On Fri, Oct 28, 2011 at 11:30:10PM -0700, Raymond Lillard wrote:
 ...All seems to have went well, it is still rebuilding, but
 in checking status I see no serial in the status output.
 Should the serial number contain the duid?  Is this
 expected or did I miss something?  Maybe the serial
 relates to hardware raid?
 
 # bioctl -hv sd2
 Volume  Status   Size Device
 softraid0 0 Rebuild  458G sd2 RAID1 20% done
   0 Online   458G 0:0.0   noencl sd0d
  'unknown serial'
   1 Rebuild  458G 0:1.0   noencl sd1d
  'unknown serial'

Regardless of rebuilding, this has been my experience.  The DUID is 
a component of the disklabel.  You will see it in your dmesg, and if
you match it in your fstab(5), it will be mounted.  'unkown serial' is
what the partitions used in a softraid device list use, when -v is added
to bioctl -i.