On Tue, Jan 05, 2010 at 11:36:11AM -0500, k...@watsen.net wrote: > Jurgen/Pete - thanks for your replies, but it seems that I wasn't clear > - my question is how to do fresh-install of OpenBSD with the new kernel > discovering and trying to use the old RAID partition. I ultimately > solved this problem by rebooting using the old kernel and running > `raidctl -A no raid0`. This way the new kernel doesn't try the > automatically mount the old RAID partition anymore...
Build and boot a bsd.rd with RAIDFrame and raidctl included. > BTW, I'm wondering if I'm wrong about SoftRAID - can it now contain the > root partition like RAIDframe? - looking at softraid(4), I don't see no. > anything like `raidctl -A root <dev>` and I thought I read Marco saying > that it's planned but a thing called "life" keeps getting in the way: > (http://www.mail-archive.com/misc@openbsd.org/msg69397.html) The boot chain can not load kernel on softraid sets. You can put the root fs on a disk and store the rest of your system on softraid sets. Use the altroot mechanism to maintain a backup of your root fs on another disk; the day the main disk breaks, you just have to change a line in the fstab to boot. $ df -h Filesystem Size Used Avail Capacity Mounted on /dev/wd0a 157M 69.2M 79.9M 46% / mfs:20000 72.6M 4.0K 68.9M 0% /tmp /dev/sd0d 1.1G 583M 521M 53% /usr /dev/sd0e 3.9G 2.6G 1.0G 71% /usr/local /dev/sd0f 1.9G 761M 1.1G 40% /usr/src /dev/sd0g 1.9G 1.2G 637M 66% /usr/obj /dev/sd0h 3.0G 887M 2.0G 30% /var /dev/sd0i 1.1G 500M 603M 45% /usr/xenocara /dev/sd0j 482M 189M 270M 41% /usr/X11R6 /dev/sd0k 231G 73.9G 146G 34% /home /dev/sd0l 19.4G 3.2G 15.2G 17% /usr/ports $ grep alt /etc/fstab /dev/wd1a /altroot ffs xx 0 0 $ sudo bioctl -ih sd0 Volume Status Size Device softraid0 0 Online 298G sd0 RAID1 0 Online 298G 0:0.0 noencl <wd0d> 1 Online 298G 0:1.0 noencl <wd1d> $ sudo disklabel wd0c | tail -n 4 # size offset fstype [fsize bsize cpg] a: 327537 63 4.2BSD 2048 16384 324 c: 625142448 0 unused d: 624809745 327600 RAID $ sudo disklabel wd1c | tail -n 4 # size offset fstype [fsize bsize cpg] a: 327537 63 4.2BSD 2048 16384 1 c: 625142448 0 unused d: 624809745 327600 RAID Later, -- Olivier Cherrier - Symacx.com mailto:o...@symacx.com