On Thu, Jan 27, 2011 at 9:39 AM, Jason McIntyre <j...@kerhand.co.uk> wrote:
> On Wed, Jan 26, 2011 at 04:24:07PM -0600, Amit Kulkarni wrote:
>> Hi,
>>
>> I just configured a mirror using softraid, the manpage was extremely
>> helpful. I just copy pasted the relevant commands. To a complete
>> newbie, it was missing a few more lines. I just added those and
>> sending the diff. I hope a variation of this is accepted to make the
>> "how to create mirror using softraid" is complete. Googling brings a
>> lot of RAIDFrame etc, there is very little out there on a pure data
>> mirror.
>>
>> Thanks,
>> amit
>>
>>
>> Index: softraid.4
>> ===================================================================
>> RCS file: /cvs/src/share/man/man4/softraid.4,v
>> retrieving revision 1.27
>> diff softraid.4
>> 147a148,159
>> > .Pp
>> > To use the freshly created mirror
>> > .Bd -literal -offset indent
>> > # mkdir /datamirror
>> > # mount /dev/sd0a /datamirror
>> > # chown normal_openbsd_user /datamirror
>> > .Ed
>> > .Pp
>> > Adding the following line to /etc/fstab will make it useful after every
boot
>> > .Bd -literal -offset indent
>> > /dev/sd0a /datamirror ffs rw,softdep,nodev,nosuid 1 2
>> > .Pp
>
> (as an aside, please send unified diffs (-u) in future)
>
> there is a line near the end of EXAMPLES:
>
>        The RAID volume is now ready to be used as a normal disk device.
>
> for me, the instructions you've added come under the umbrella of
> using the raid partition as a normal disk partition. so i'd argue
> that it's outside the remit of this page.
>
> maybe other developers think otherwise though.

As someone who has long been a newbie, this sort of trivial pointer
can be a life-saver. If you think like a programmer and see your OS as
a program this sort of thing comes naturally, but lots of people
don't.
-Nick

Reply via email to