On 11/17/06, Julian Labuschagne <[EMAIL PROTECTED]> wrote:
Hi everyone
I created a Raid setup on OpenBSD 4.0
And it worked fine... 2 disks striped together...
But now I want to add 2 more disks to the array but it seems I cant
because I already gave the Raid device a serial number.
raidframe does not have the ability to grow columns of a raid level 0.
For a redundant raid level such as 5, you can use raidctl -a to add
disks as "hot spares". This still would not grow the size, it just
gives raidframe some extra spares for reconstruction.
raidctl -I 2006111501
Can I undo the previous command?
You could re-label them with the serial number it used to be. That
would 'undo' this much. What did you do? Is your raid unusable? Did
you break it with -I, and now you want it back?
And is it really necessary to fill all the drives with zero's again?
Examle:
dd if=/dev/zero of=/dev/rwd1c bs=1024000
dd if=/dev/zero of=/dev/rwd2c bs=1024000
dd if=/dev/zero of=/dev/rwd3c bs=1024000
dd if=/dev/zero of=/dev/rwd4c bs=1024000
Well now you're really not getting it back..
This is my first time I have worked with Raidframe so I'm still a bit
confused... But the man page is slowly starting to make sense after each
read.
I highly recommend that if you use raid for redundancy, take out some
drives and do some pretend failure runs. Recovering from a failure is
a bad time to learn how to use raidctl.
Any help would be appreciated.
Kind Regards Julian
To make it easy:
mv /etc/raid0.conf to raid0.conf.disabled, and reboot. This will
unconfigure your current raid, if it is configured at all. raidctl -u
does this as well but what the hell.
Change the number of columns in raid0.conf.disabled from 2 to 4, add
the two new disks under the 'START disks' section, rename it to
raid0.conf.
Configure this raid:
raidctl -C /etc/raid0.conf raid0
Give all of the disks a serial number:
raidctl -I 123456 raid0
Initialize it:
raidctl -iv raid0
Then restore your media onto your new striped raid from backup.
This is a stripe raid, expect it completely fail at ANY TIME.
I hope this answers your question.