On 2011-06-28 22.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.
> 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.
To make a long story short, I'd abandon the work you've done so far if
I were you, and start over using softraid(4) instead. (man softraid,
man bioctl, man disklabel).
There are some drawbacks to using softraid at the moment - for example
you can't boot from a softraid partition and (IIRC) you can't mirror
the root partition (but see man daily for mentions of /altroot).
But using RAIDframe (raid(4)) as you're doing now is really a pain in
the ***, even if it undoubtedly will do everything you want when properly
set up. It is pathetically tricky to set it up to raid the root partition
and to automount it at boot, but it is doable. Don't know of any up-to-
date guides on how to do it though.
I'm off to bed now, but if you decide to persist with your chosen
path and nobody else have given you a hand by then, I'll help you
tomorrow. :-)
Regards,
/Benny
> /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.
>
> 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?
> Does this mean I need to run a dump -0f- command whenever I
> make changes to the root partition?
>
> 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.
>
> /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.
>
--
internetlabbet.se / work: +46 8 551 124 80 / "Words must
Benny Lvfgren / mobile: +46 70 718 11 90 / be weighed,
/ fax: +46 8 551 124 89 / not counted."
/ email: benny -at- internetlabbet.se