Contributed by jl on from the zip-to-my-lou dept.
It had been a few months since I had experimented with softraid in OpenBSD, so I though I would give it a try and see how far it had progressed. I have been using bioctl with hardware raid and was quickly won over by the elegance of the tools, and I looked forward to managing software raid with the same simplicity.
Just to be difficult, I dragged an old dual 450mhz Apple Power Mac out of storage and connected a USB and IDE iomega Zip drive to function as my raid volumes. Unfortunately SMP isn't supported by OpenBSD on the PPC platform yet, but everything else was detected and functioning correctly.
Softraid is enabled in current snapshots, so there was no need to compile a custom kernel.
The man page for softraid(4) is sufficient to get started, although I did add some suggested extra steps just to make sure.
The first step was to mark the zip drives as raid volumes. The disklabel(8) commands in the man page didn't work correctly for me on PPC because fdisk(8) creates an additional small MS-DOS volume, so I had to manually set the proper offset in disklabel for the RAID portion of the disk.
Once each zip disk had a RAID partition, I was able to use bioctl to create a new volume, and at that point it appeared as just another SCSI drive. I continued to follow the steps in the man page, mounted the RAID volume, and started writing and verifying data. Both RAID0 and RAID1 worked great, although I needed to use dd(1) to wipe out the beginning of zip disks to make sure all the softraid metadata was really gone before trying to re-use a disk in a new RAID set.
Of course, given my hardware choices, performance was terrible, but it hadn't corrupted data or caused a kernel panic. I was happy to see that the kernel now recognized the RAID metadata on the ZIP disks at boot and automatically assembled them for me. I even tried swapping the zip disks, and the kernel picked up the change and notified me that it had found a "roaming device". If I brought the system up with one disk ejected, it gracefully noticed the problem.
Unfortunately, softraid cannot yet recover from failure or automatically rebuild after an unclean shutdown, but I can see great signs of progress. I really look forward to a supported alternative to raidframe(4), and I'm excited to have the same management tools for both my hardware and software RAID. I'm also looking forward to seeing what unusual features the developers come up with, and the source tree is already leaving some interesting clues.
(Comments are closed)
By Anonymous Coward (24.37.242.64) on
Comments
By Anonymous Coward (124.244.200.136) on
Yes, i want to know too, what is different between (soft)raid0 and ccd?
Comments
By Brad (2001:4978:104:3:216:41ff:fe17:6933) brad at comstyle dot com on
>
> Yes, i want to know too, what is different between (soft)raid0 and ccd?
softraid has a number of advantages including being easier to setup, use and maintain. It has a smaller and cleaner code base making it easier to maintain the code and add features to as well as being enabled by default unlike RAIDframe. It supports multiple RAID disciplines unlike ccd. It will support encrypted arrays. It will support ATA over Ethernet. Who knows what else is coming down the pipeline. Also RAIDframe was never officially supported. Personally I would never use ccd or RAIDframe. Both will be removed in good time once softraid is fairly mature.
Comments
By Anonymous Coward (24.37.242.64) on
> >
> > Yes, i want to know too, what is different between (soft)raid0 and ccd?
>
> softraid has a number of advantages including being easier to setup, use and maintain. It has a smaller and cleaner code base making it easier to maintain the code and add features to as well as being enabled by default unlike RAIDframe. It supports multiple RAID disciplines unlike ccd. It will support encrypted arrays. It will support ATA over Ethernet. Who knows what else is coming down the pipeline. Also RAIDframe was never officially supported. Personally I would never use ccd or RAIDframe. Both will be removed in good time once softraid is fairly mature.
UltraAwesome stuff! Sweet! :)
By Anonymous Coward (85.178.83.152) on
> >
> > Yes, i want to know too, what is different between (soft)raid0 and ccd?
>
> softraid has a number of advantages including being easier to setup, use and maintain. It has a smaller and cleaner code base making it easier to maintain the code and add features to as well as being enabled by default unlike RAIDframe. It supports multiple RAID disciplines unlike ccd. It will support encrypted arrays. It will support ATA over Ethernet. Who knows what else is coming down the pipeline. Also RAIDframe was never officially supported. Personally I would never use ccd or RAIDframe. Both will be removed in good time once softraid is fairly mature.
Encryption? HW Accelerated? Wich algorithms?
Also: So RaidFrame and ccd get kicked out then? :)
Comments
By henning (213.39.202.162) on
we'll decide that when the time is right, which is neither now nor tomorrow nor next week nor next month.
you don't need much of a vision to see raidframe departing once softraid grew rebuild support and has been around for a bit tho
By dingo (68.30.176.132) on
do a wc -l *.c for the raidframe code.
By Anonymous Coward (76.68.211.86) on
Comments
By Brad (2001:4978:104:3:216:41ff:fe17:6933) brad at comstyle dot com on
Wow, you're a real brainic. How long did it take you to figure that out?
Comments
By Anonymous Coward (72.0.206.213) on
>
> Wow, you're a real brainic. How long did it take you to figure that out?
You son of a bitch.
Comments
By Anonymous Coward (68.150.143.243) on
> >
> > Wow, you're a real brainic. How long did it take you to figure that out?
>
> You son of a bitch.
Hey, his mom's not that bad, be nice to her.
By Brad (2001:4978:104:3:216:41ff:fe17:6933) brad at comstyle dot com on
> >
> > Wow, you're a real brainic. How long did it take you to figure that out?
>
> You son of a bitch.
Thank you very much. How kind of you.
By phessler (209.204.157.101) on
did you notice that the submitter was putting this on a macppc "out of storage" and was putting softraid on a pair of zip disks? which part screams 'production'?
By Anonymous Coward (199.42.80.225) on
Why? I set it up on a production system last week 'cause I wanted to test it and didn't have any other boxes available. If something blows up, I'll just restore a backup (since RAID is no substitute for regular backups). What's a little outage among friends?
By Mathieu Sauve-Frankel (222.0.65.5) msf@kisoku.net on
raidframe is too bit-rotted to use on a production system.
Comments
By Anonymous Coward (72.0.206.213) on
>
> raidframe is too bit-rotted to use on a production system.
would you recommend someone use ccd for implementing a RAID0 solution at this time? will it not be phased out by softraid in a year's time?
Comments
By Anonymous Coward (76.250.126.209) on
By Anonymous Coward (2001:6f8:94d:5::2) on
I disagree here. I'm actively using RAID 0, 1 and 5.
.oO(raidctl -A {yes,root} rules)
By Simon (192.44.85.23) on