On 06/28/11 21:53, Zeb Packard wrote: >> Overwriting file in /etc could cause all sorts of problems, rc >> scripts corrupted could leave you in single user mode for example. >> >> >> Regards >> >> Nigel Taylor >> > > Thanks a bunch for the tips and encouragement. I was using the > tutorial at http://www.argon18.com/raid_openbsd.html This tutorial > was very useful up until I reached the fstab file, the configuration > given does not seem to work. My new fstab file is as follows. > > /dev/sd0a / ffs rw 1 1 /dev/sd0b none swap sw 0 0 /dev/raid0d /home > ffs rw,nodev,nosuid,softdep 1 2 > > using either a full raid map (/dev/raid0a / ...) or mapping /home to > /dev/sd0d would cause the system to boot single user or call for > fsck to be run. Your putting the raid partitions in the fstab of the system recovery partition. You want to boot without raid partitions to recover the raiddisk. > > Another question regarding the raid0.conf file given in the > tutorial. It's listed as. > > START array 1 2 0 START disks /dev/sd0d /dev/sd1d START layout 128 1 > 1 1 START queue fifo 100 > > My question is why aren't I also raiding the sd0a and sd1a > partitions?
OpenBSD cannot boot off a RaidFrame disk directly, so what you do is have a small system boot partition on each disk which is sd0a and sd1a (backup) 256Mb in the instructions in which a base system is installed. This contains the bsd which used when OpenBSD boots. After the initial booting it switches the root partition to the raid partition raid0a. Normally will display raid0a as the default, but you could enter sd0a. Or force prompting use boot -a at the Boot> prompt. sd0a / sd1a partitions are for recovery when something goes wrong with the raid. They are not used during the normal running of the raid system, apart from the initial boot. > Does this mean I need to run a dump -0f- command whenever I make > changes to the root partition? If you make changes on the partition sd0a then a backup should be made on sd1a. You should have Boot> boot -a when prompted for the root partition enter sd0a Then mount /dev/sd1a /mnt etc as per the article. > The fstab configuration given in the tutorial gets wiped out on > reboot. So, I can't assume that part of the tutorial is useful, but > here's the configuration given for the secondary disk. The fstab is created on the raid root partition raid0a, this is required You effectively use the recovery system in sd0a, and mount the raid system under /mnt Use dump / restore to copy over the system, then setup the raid partitions to mount in /mnt/etc/fstab which will become /etc/fstab when running with the raid disks. There are two fstab's the one for running the raid system, and the one for recovering the raid system. > > /dev/raid0a / ffs rw 1 1 /dev/raid0b none swap sw 0 0 /dev/raid0d > /home rw,nodev,nosuid,softdep 1 2 > > Right now when I add raid0a to fstab it will boot single user, but > raid0a is not in my raid0.conf file. raid0.conf is for the raid0 disk that disk contains partitions such a raid0a. raid0.conf should contain the two partitions sd0d, sd1d which make up the raid0 disk. > > Note - This is the old raidframe. (OpenBSD tech mail list recently talked about removing this, you may want to consider switching to softraid). Regards Nigel Taylor

