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? s # raidctl -c /etc/raid0.conf raid0 raid0: Component /dev/wd0d being configured at row: 0 col: 0 Row: 0 Column: 0 Num Rows: 1 Num Columns: 2 Version: 2 Serial Number: 1231230 Mod Counter: 1935765551 Clean: Yes Status: 0 raid0: Component /dev/wd1d being configured at row: 0 col: 1 Row: 0 Column: 1 Num Rows: 1 Num Columns: 2 Version: 2 Serial Number: 1231230 Mod Counter: 1935765551 Clean: Yes Status: 0 raid0 (root)# raidctl -c /etc/raid1.conf raid1 raid1: Component /dev/wd0e being configured at row: 0 col: 0 Row: 0 Column: 0 Num Rows: 1 Num Columns: 2 Version: 2 Serial Number: 1231231 Mod Counter: -1409287323 Clean: Yes Status: 0 raid1: Component /dev/wd1e being configured at row: 0 col: 1 Row: 0 Column: 1 Num Rows: 1 Num Columns: 2 Version: 2 Serial Number: 1231231 Mod Counter: -1409287323 Clean: Yes Status: 0 raid1 (root)# install raid1: no disk label raid0: no disk label 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: raid0 raid1 wd0 wd1. Which one is the root disk? (or 'done') [done] raid0 Do you want to use *all* of raid0 for OpenBSD? [no] yes Putting all of raid0 into an actraid0: no disk label ive OpenBSD MBR partition (type 'A6')...raid0: no disk label fdisk: sysctl(machdep.braid0: no disk label ios.diskinfo): Device not configured raid0: no disk label done. You will now create an OpenBSDraid0: no disk label 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.raid0: no disk label The offsets used in the disklabel are ABSOLUTE, i.e. relative to the start of the disk, NOT the start of the OpenBSD MBR parraid0: no disk label tition. # using MBR partition 3: type A6 off 32 (0x20) size 786144 (0xbfee0) disklabel: Can't get bios geometry: Device not configured Treating sectors 32-786176 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: [32] size: [786144] 256M Rounding to nearest cylinder: 524256 FS type: [4.2BSD] mount point: [none] / > a b offset: [524288] size: [261888] FS type: [swap] > w > q No label changes. Available disks are: raid1 wd0 wd1. Which one do you wish to initialize? (or 'done') [done] raid1 Do you want to use *all* of raid1 for OpenBSD? [no] yes Putting all of raid1 into an active OpenBSD MBR partition (type raid1: no disk label 'A6')...raid1: no disk label fdisk: sysctl(machdep.braid1: no disk label ios.diskinfo): Device not configured raid1: no disk label done. You will now create an OpenBSDraid1: no disk label 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.raid1: no disk label 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. raid1: no disk label # using MBR partition 3: type A6 off 32 (0x20) size 5011168 (0x4c76e0) disklabel: Can't get bios geometry: Device not configured Treating sectors 32-5011200 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 d offset: [32] size: [5011168] 128M Rounding to nearest cylinder: 262112 FS type: [4.2BSD] mount point: [none] /var > a e offset: [262144] size: [4749056] 128M FS type: [4.2BSD] mount point: [none] /var/log > a f offset: [524288] size: [4486912] FS type: [4.2BSD] mount point: [none] /usr > w > q No label changes. Mount point for raid1d (size=131056k)? (or 'none' or 'done') [/var] done Available disks are: wd0 wd1. Which one do you wish to initialize? (or 'done') [done] done OpenBSD filesystems: raid0a / raid1d /var raid1e /var/log raid1f /usr The next step *DESTROYS* all existing data on these partitions! Are you really sure that you're ready to proceed? [no] yes /dev/rraid0a: 524256 sectors in 2048 cylinders of 8 tracks, 32 sectors 256.0MB in 3 cyl groups (952 c/g, 119.00MB/g, 15232 i/g) /dev/rraid1d: 262112 sectors in 1024 cylinders of 8 tracks, 32 sectors 128.0MB in 2 cyl groups (952 c/g, 119.00MB/g, 15232 i/g) /dev/rraid1e: 262144 sectors in 1024 cylinders of 8 tracks, 32 sectors 128.0MB in 2 cyl groups (952 c/g, 119.00MB/g, 15232 i/g) /dev/rraid1f: 4486912 sectors in 17527 cylinders of 8 tracks, 32 sectors 2190.9MB in 19 cyl groups (952 c/g, 119.00MB/g, 15232 i/g) /dev/raid0a on /mnt type ffs (rw, asynchronous, local, ctime=Wed Dec 29 12:58:33 2004) /dev/raid1f on /mnt/usr type ffs (rw, asynchronous, local, nodev, ctime=Wed Dec 29 12:58:34 2004) /dev/raid1d on /mnt/var type ffs (rw, asynchronous, local, nodev, nosuid, ctime=Wed Dec 29 12:58:34 2004) /dev/raid1e on /mnt/var/log type ffs (rw, asynchronous, local, nodev, nosuid, ctime=Wed Dec 29 12:58:34 2004) System hostname? (short form, e.g. 'foo') foo Configure the network? [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 198.103.92.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] 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 [ ] 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.rd] 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 [ ] 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.rd] 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 [ ] 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 [ ] site36.tgz File name? (or 'done') [bsd.rd] 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 [ ] 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.rd] done Ready to install sets? [yes] Getting bsd ... 100% |**************************************************| 5232 KB 00:01 Getting base36.tgz ... 100% |**************************************************| 31407 KB 01:06 Getting etc36.tgz ... 100% |**************************************************| 1656 KB 00:05 Getting man36.tgz ... 100% |**************************************************| 6791 KB 00:17 Getting site36.tgz ... 100% |**************************************************| 5191 KB 00:09 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] yes 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/rraid0c /usr/mdec/biosboot: entry point 0 proto bootblock size 512 /mnt/boot is 3 blocks x 16384 bytes fs block shift 2; part offset 32; inode block 120, offset 2728 using MBR partition 3: type 166 (0xa6) offset 32 (0x20) 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 -A root raid0 raid0: Autoconfigure: Yes raid0: Root: Yes # raidctl -A yes raid1 raid1: Autoconfigure: Yes # mount /dev/wd0a /mnt2 # cp /mnt2/bsd.raid /mnt2/bsd # reboot syncing disks... done raid1 detached raid0 detached rebooting...