Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2004 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 3.6-stable (RAIDDISK) #3: Thu Dec 23 11:10:35 EST 2004 jdew@chronos.yggdrasil.ca:/usr/src/sys/arch/i386/compile/RAIDDISK cpu0: Intel Pentium/MMX ("GenuineIntel" 586-class) 232 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX cpu0: F00F bug workaround installed real mem = 66695168 (65132K) avail mem = 56025088 (54712K) using 839 buffers containing 3436544 bytes (3356K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(00) BIOS, date 12/18/97, BIOS32 rev. 0 @ 0xffe90 apm0 at bios0: Power Management spec V1.2 pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfc7b0/128 (6 entries) pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00) pcibios0: PCI bus #0 is the last bus bios0: ROM list: 0xc0000/0x8000 0xc8000/0x8000 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82439TX System" rev 0x01 pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x01 pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: wd0: 16-sector PIO, LBA, 3090MB, 6329388 sectors wd1 at pciide0 channel 0 drive 1: wd1: 16-sector PIO, LBA, 3090MB, 6329388 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 "Intel 82371AB USB" rev 0x01 at pci0 dev 7 function 2 not configured "Intel 82371AB Power Mgmt" rev 0x01 at pci0 dev 7 function 3 not configured vga1 at pci0 dev 14 function 0 "Matrox MGA Millennium II 2164W" rev 0x00 wsdisplay0 at vga1: console (80x25, vt100 emulation) "S3 Trio64V2/DX" rev 0x16 at pci0 dev 16 function 0 not configured xl0 at pci0 dev 17 function 0 "3Com 3c905 100Base-TX" rev 0x00: irq 11, address 00:c0:4f:92:2d:c4 nsphy0 at xl0 phy 24: DP83840 10/100 media interface, rev. 1 isa0 at pcib0 isadma0 at isa0 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 npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom0: console pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec isapnp0 at isa0 port 0x279: read port 0x203 "Creative ViBRA16X PnP, CTL0043, , Audio" at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,3 not configured "Creative ViBRA16X PnP, CTL7005, PNPB02F, Game" at isapnp0 port 0x201/1 not configured biomask f7e5 netmask ffe5 ttymask ffe7 rd0: fixed, 3560 blocks Kernelized RAIDframe activated root on rd0a rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02 erase ^?, werase ^W, kill ^U, intr ^C, status ^T (I)nstall, (U)pgrade or (S)hell? i Welcome to the OpenBSD/i386 3.6 install program. This program will help you install OpenBSD in a simple and rational way. At any prompt except password prompts you can run a shell command by typing '!foo', or escape to a shell by typing '!'. Default answers are shown in []'s and are selected by pressing RETURN. At any time you can exit this program by pressing Control-C and then RETURN, but quitting during an install can leave your system in an inconsistent state. Terminal type? [vt220] Do you wish to select a keyboard encoding table? [no] IS YOUR DATA BACKED UP? As with anything that modifies disk contents, this program can cause SIGNIFICANT data loss. It is often helpful to have the installation notes handy. For complex disk configurations, relevant disk hardware manuals and a calculator are useful. Proceed with install? [no] yes Cool! Let's get to it... You will now initialize the disk(s) that OpenBSD will use. To enable all available security features you should configure the disk(s) to allow the creation of separate filesystems for /, /tmp, /var, /usr, and /home. Available disks are: wd0 wd1. Which one is the root disk? (or 'done') [done] wd0 Do you want to use *all* of wd0 for OpenBSD? [no] yes Putting all of wd0 into an active OpenBSD MBR partition (type 'A6')...done. You will now create an OpenBSD disklabel inside the OpenBSD MBR partition. The disklabel defines how OpenBSD splits up the MBR partition into OpenBSD partitions in which filesystems and swap space are created. The offsets used in the disklabel are ABSOLUTE, i.e. relative to the start of the disk, NOT the start of the OpenBSD MBR partition. # using MBR partition 3: type A6 off 63 (0x3f) size 6322113 (0x6077c1) Treating sectors 63-6322176 as the OpenBSD portion of the disk. You can use the 'b' command to change this. Initial label editor (enter '?' for help at any prompt) > z > a a offset: [63] size: [6322113] 256M Rounding to nearest cylinder: 524412 FS type: [4.2BSD] mount point: [none] / > a d offset: [524475] size: [5797701] 384M Rounding to nearest cylinder: 786240 FS type: [4.2BSD] RAID mount point: [none] > a e offset: [1310715] size: [5011461] FS type: [4.2BSD] RAID mount point: [none] > w > q No label changes. Available disks are: wd1. Which one do you wish to initialize? (or 'done') [done] wd1 Do you want to use *all* of wd1 for OpenBSD? [no] yes Putting all of wd1 into an active OpenBSD MBR partition (type 'A6')...done. You will now create an OpenBSD disklabel inside the OpenBSD MBR partition. The disklabel defines how OpenBSD splits up the MBR partition into OpenBSD partitions in which filesystems and swap space are created. The offsets used in the disklabel are ABSOLUTE, i.e. relative to the start of the disk, NOT the start of the OpenBSD MBR partition. # using MBR partition 3: type A6 off 63 (0x3f) size 6322113 (0x6077c1) Treating sectors 63-6322176 as the OpenBSD portion of the disk. You can use the 'b' command to change this. Initial label editor (enter '?' for help at any prompt) > z > a a offset: [63] size: [6322113] 256M Rounding to nearest cylinder: 524412 FS type: [4.2BSD] mount point: [none] > a d offset: [524475] size: [5797701] 384M Rounding to nearest cylinder: 786240 FS type: [4.2BSD] RAID mount point: [none] > a e offset: [1310715] size: [5011461] FS type: [4.2BSD] RAID mount point: [none] > w > q No label changes. Mount point for wd1a (size=262206k)? (or 'none' or 'done') done No more disks to initialize. OpenBSD filesystems: wd0a / The next step *DESTROYS* all existing data on these partitions! Are you really sure that you're ready to proceed? [no] yes /dev/rwd0a: 524412 sectors in 555 cylinders of 15 tracks, 63 sectors 256.1MB in 2 cyl groups (320 c/g, 147.66MB/g, 18944 i/g) /dev/wd0a on /mnt type ffs (rw, asynchronous, local, ctime=Wed Dec 29 12:31:37 2004) System hostname? (short form, e.g. 'foo') foo Configure the network? [yes] yes Available interfaces are: xl0. Which one do you wish to initialize? (or 'done') [xl0] Symbolic (host) name for xl0? [foo] The media options for xl0 are currently media: Ethernet autoselect (100baseTX full-duplex) Do you want to change the media options? [no] IPv4 address for xl0? (or 'none' or 'dhcp') 192.168.25.75 Netmask? [255.255.255.0] No more interfaces to initialize. DNS domain name? (e.g. 'bar.com') [my.domain] yggdrasil.ca DNS nameserver? (IP address or 'none') [none] 192.168.25.75 Use the nameserver now? [yes] Default IPv4 route? (IPv4 address, 'dhcp' or 'none') 192.168.25.1 add net default: gateway 192.168.25.1 Edit hosts with ed? [no] Do you want to do any manual network configuration? [no] Password for root account? (will not echo) Password for root account? (again) You will now specify the location and names of the install sets you want to load. You will be able to repeat this step until all of your sets have been successfully loaded. If you are not sure what sets to install, refer to the installation notes for details on the contents of each. Sets can be located on a (m)ounted filesystem; a (c)drom, (d)isk or (t)ape device; or a (f)tp, (n)fs or (h)ttp server. Where are the install sets? (or 'done') f HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none] Display the list of known ftp servers? [yes] no Server? (IP address, hostname or 'done') ftp Does the server support passive mode ftp? [yes] Server directory? [pub/OpenBSD/3.6/i386] Login? [anonymous] The following sets are available. Enter a filename, 'all' to select all the sets, or 'done'. You may de-select a set by prepending a '-' to its name. [X] bsd [X] bsd.rd [ ] bsd.mp [X] base36.tgz [X] etc36.tgz [X] misc36.tgz [X] comp36.tgz [X] man36.tgz [X] game36.tgz [ ] xbase36.tgz [ ] xetc36.tgz [ ] xshare36.tgz [ ] xfont36.tgz [ ] xserv36.tgz [ ] site36.tgz File name? (or 'done') [bsd.mp] -* The following sets are available. Enter a filename, 'all' to select all the sets, or 'done'. You may de-select a set by prepending a '-' to its name. [ ] bsd [ ] bsd.rd [ ] bsd.mp [ ] base36.tgz [ ] etc36.tgz [ ] misc36.tgz [ ] comp36.tgz [ ] man36.tgz [ ] game36.tgz [ ] xbase36.tgz [ ] xetc36.tgz [ ] xshare36.tgz [ ] xfont36.tgz [ ] xserv36.tgz [ ] site36.tgz File name? (or 'done') [bsd] The following sets are available. Enter a filename, 'all' to select all the sets, or 'done'. You may de-select a set by prepending a '-' to its name. [X] bsd [ ] bsd.rd [ ] bsd.mp [ ] base36.tgz [ ] etc36.tgz [ ] misc36.tgz [ ] comp36.tgz [ ] man36.tgz [ ] game36.tgz [ ] xbase36.tgz [ ] xetc36.tgz [ ] xshare36.tgz [ ] xfont36.tgz [ ] xserv36.tgz [ ] site36.tgz File name? (or 'done') [bsd.rd] The following sets are available. Enter a filename, 'all' to select all the sets, or 'done'. You may de-select a set by prepending a '-' to its name. [X] bsd [X] bsd.rd [ ] bsd.mp [ ] base36.tgz [ ] etc36.tgz [ ] misc36.tgz [ ] comp36.tgz [ ] man36.tgz [ ] game36.tgz [ ] xbase36.tgz [ ] xetc36.tgz [ ] xshare36.tgz [ ] xfont36.tgz [ ] xserv36.tgz [ ] site36.tgz File name? (or 'done') [bsd.mp] base* The following sets are available. Enter a filename, 'all' to select all the sets, or 'done'. You may de-select a set by prepending a '-' to its name. [X] bsd [X] bsd.rd [ ] bsd.mp [X] base36.tgz [ ] etc36.tgz [ ] misc36.tgz [ ] comp36.tgz [ ] man36.tgz [ ] game36.tgz [ ] xbase36.tgz [ ] xetc36.tgz [ ] xshare36.tgz [ ] xfont36.tgz [ ] xserv36.tgz [ ] site36.tgz File name? (or 'done') [bsd.mp] etc* The following sets are available. Enter a filename, 'all' to select all the sets, or 'done'. You may de-select a set by prepending a '-' to its name. [X] bsd [X] bsd.rd [ ] bsd.mp [X] base36.tgz [X] etc36.tgz [ ] misc36.tgz [ ] comp36.tgz [ ] man36.tgz [ ] game36.tgz [ ] xbase36.tgz [ ] xetc36.tgz [ ] xshare36.tgz [ ] xfont36.tgz [ ] xserv36.tgz [ ] site36.tgz File name? (or 'done') [bsd.mp] site* The following sets are available. Enter a filename, 'all' to select all the sets, or 'done'. You may de-select a set by prepending a '-' to its name. [X] bsd [X] bsd.rd [ ] bsd.mp [X] base36.tgz [X] etc36.tgz [ ] misc36.tgz [ ] comp36.tgz [ ] man36.tgz [ ] game36.tgz [ ] xbase36.tgz [ ] xetc36.tgz [ ] xshare36.tgz [ ] xfont36.tgz [ ] xserv36.tgz [X] site36.tgz File name? (or 'done') [bsd.mp] man* The following sets are available. Enter a filename, 'all' to select all the sets, or 'done'. You may de-select a set by prepending a '-' to its name. [X] bsd [X] bsd.rd [ ] bsd.mp [X] base36.tgz [X] etc36.tgz [ ] misc36.tgz [ ] comp36.tgz [X] man36.tgz [ ] game36.tgz [ ] xbase36.tgz [ ] xetc36.tgz [ ] xshare36.tgz [ ] xfont36.tgz [ ] xserv36.tgz [X] site36.tgz File name? (or 'done') [bsd.mp] done Ready to install sets? [yes] yes Getting bsd ... 100% |**************************************************| 5232 KB 00:01 Getting bsd.rd ... 100% |**************************************************| 4614 KB 00:01 Getting base36.tgz ... 100% |**************************************************| 31407 KB 01:01 Getting etc36.tgz ... 100% |**************************************************| 1656 KB 00:04 Getting man36.tgz ... 100% |**************************************************| 6791 KB 00:15 Getting site36.tgz ... 100% |**************************************************| 5191 KB 00:07 Sets can be located on a (m)ounted filesystem; a (c)drom, (d)isk or (t)ape device; or a (f)tp, (n)fs or (h)ttp server. Where are the install sets? (or 'done') done Start sshd(8) by default? [yes] no Do you expect to run the X Window System? [yes] no Change the default console to com0? [no] Saving configuration files...done. Generating initial host.random file...done. What timezone are you in? ('?' for list) [Canada/Mountain] right/EST5EDT Setting local timezone to 'right/EST5EDT'...done. Making all device nodes...done. Installing boot block... boot: /mnt/boot proto: /usr/mdec/biosboot device: /dev/rwd0c /usr/mdec/biosboot: entry point 0 proto bootblock size 512 /mnt/boot is 3 blocks x 16384 bytes fs block shift 2; part offset 63; inode block 584, offset 8360 using MBR partition 3: type 166 (0xa6) offset 63 (0x3f) done. CONGRATULATIONS! Your OpenBSD install has been successfully completed! To boot the new system, enter halt at the command prompt. Once the system has halted, reset the machine and boot from the disk. # raidctl -C /etc/raid0.conf raid0 Hosed component: /dev/wd1d. Hosed component: /dev/wd1d. raid0: Component /dev/wd0d being configured at row: 0 col: 0 Row: 1970151539 Column: 1919246957 Num Rows: 1852383347 Num Columns: 789077792 Version: 1735289203 Serial Number: 1701344288 Mod Counter: 1935765536 Clean: Yes Status: 140473352 Row out of alignment for: /dev/wd0d. Column out of alignment for: /dev/wd0d. Number of rows do not match for: /dev/wd0d. Number of columns do not match for: /dev/wd0d. raid0: Ignoring /dev/wd1d. raid0: There were fatal errors raid0: Fatal errors being ignored. raid0 (root)# # raidctl -C /etc/raid1.conf raid1 raid1: Component /dev/wd0e being configured at row: 0 col: 0 Row: -1465362257 Column: -924607364 Num Rows: 1617127794 Num Columns: 735118451 Version: 1672373124 Serial Number: 1956738144 Mod Counter: -1409287336 Clean: Yes Status: 722013196 Row out of alignment for: /dev/wd0e. Column out of alignment for: /dev/wd0e. Number of rows do not match for: /dev/wd0e. Number of columns do not match for: /dev/wd0e. raid1: Component /dev/wd1e being configured at row: 0 col: 1 Row: -1465362257 Column: -924607364 Num Rows: 1617127794 Num Columns: 735118451 Version: 1672373124 Serial Number: 1956738144 Mod Counter: -1409287336 Clean: Yes Status: 722013196 Row out of alignment for: /dev/wd1e. Column out of alignment for: /dev/wd1e. Number of rows do not match for: /dev/wd1e. Number of columns do not match for: /dev/wd1e. raid1: There were fatal errors raid1: Fatal errors being ignored. raid1 (root)# # raidctl -I 1231230 raid0 raid0: no disk label # raidctl -I 1231231 raid1 raid1: no disk label # raidctl -iv raid0; raidctl -iv raid1 raid0: no disk label Parity Re-Write status: 0% | | ETA: 00:03 - raid1: no disk label Parity Re-Write status: 0% | | ETA: 00:02 - r# raidctl -A root raid0 raid0: no disk label raid0: Autoconfigure: Yes raid0: Root: Yes # raidctl -A yes raid1 raid1: no disk label raid1: Autoconfigure: Yes # reboot