| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-08-2006, 07:51 PM
|
#1
|
|
Member
Registered: Aug 2006
Posts: 39
Rep:
|
RAID0 on 2 SATA drives with reiserfs
I am runngin Slackware 11.0 with a 2.4 kernel. I have 3 identical SATA drives. I put the OS on the first one and want to set up RAID0 on the remaining two. I managed to get the RAID array going manually using the mkraid and mount commands but when I reboot I get an error like "invalid raid superblock magic". Do I need a RAM disk? Why would it work at the command line but not when booting?
/etc/fstab:
/dev/sda1 / reiserfs defaults 1 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 /tmp reiserfs defaults 1 2
/dev/sda5 /usr reiserfs defaults 1 2
/dev/sda6 /var reiserfs defaults 1 2
/dev/sda7 /home reiserfs defaults 1 2
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/md0 /mnt/raid reiserfs noauto 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/etc/raidtab:
raiddev /dev/md0
raid-level 0
persistent-superblock 0
chunk-size 16
nr-raid-disks 2
nr-spare-disks 0
device /dev/sdb1
raid-disk 0
device /dev/sdc1
raid-disk 1
|
|
|
|
11-09-2006, 12:59 AM
|
#2
|
|
Samhain Slackbuild Maintainer
Registered: Sep 2004
Location: Scottsdale, AZ, USA
Distribution: Slackware
Posts: 377
Rep:
|
You don't need a RAM disk if you already have everything you need to boot up compiled into the kernel as in "y" instead of "m". Like your filesystem and raid stuff.
It sounds like you're installing a different kernel from the kernel you are booting with for the install. Which means you should install the one that you're booting with so it has the same capabilities when you reboot.
|
|
|
|
11-09-2006, 11:26 PM
|
#3
|
|
Member
Registered: Aug 2006
Posts: 39
Original Poster
Rep:
|
I'm sorry but your response does not make any sense. Do you want to clarify that second paragraph?
|
|
|
|
11-11-2006, 03:38 AM
|
#4
|
|
Samhain Slackbuild Maintainer
Registered: Sep 2004
Location: Scottsdale, AZ, USA
Distribution: Slackware
Posts: 377
Rep:
|
Well, let me ask you specifically since I'm not sure...
Are you running mkraid from an install CD or a boot floppy? In other words, what kernel are you using at the time you run mkraid and such? When you install Slackware you can install any kernel you want, but it's often a good rule of thumb to install the *same* kernel that you used *during* the install because it has already proven itself capable of seeing your hardware and booting your system.
For some reason your boot kernel is *not* capable of seeing the raid partition because the module hasn't been loaded in time during the boot process or because that support was never compiled into the kernel in the first place. The key here is to install a kernel that has the proper drivers you need. I would recommend the huge 2.6 kernel as it seems to have everything already in it.
I'm using raid 1 and that stock kernel worked for me. In the past I've had to roll my own kernels to get everything I wanted. That doesn't seem necessary with huge 2.6 anymore... at least I haven't needed anything it doesn't have yet ;-)
|
|
|
|
11-11-2006, 09:30 AM
|
#5
|
|
LQ Newbie
Registered: Aug 2005
Distribution: RH9, FC4
Posts: 13
Rep:
|
Other Option
Not to hijack the thread, but if you are talking about running RAID0. The two reasons I am aware of for running RAID0 is to either get a larger mount or to improve write/read performance to this area.
If performance is what you are looking for running RAID in software would obviously cut any perfromance gain by striping. In both instances I personally would be running RAID in hardware via a RAID capable SATA PCI / PCI Express card. They are running as low as $20 these days. I found a few to pick from at tigerdirect.com.
May not be what you are looking for but possibly an easy fix you overlooked. But it could possibly add another problem, finding support for the card in the kernel or elsewhere.
|
|
|
|
11-11-2006, 01:27 PM
|
#6
|
|
Samhain Slackbuild Maintainer
Registered: Sep 2004
Location: Scottsdale, AZ, USA
Distribution: Slackware
Posts: 377
Rep:
|
pruhnke,
I don't disagree with anything you are saying, but mr_scary still has the same problem. Unless his kernel *happens* to support the raid card out of the box, he still has to either roll his own kernel or find another one. Slackware has kernels that *should* work. One of *those* should be installed like huge 2.6. Getting a raid card would just be icing on the cake, but certainly not necessary. I, for one, would never run raid 0 because I think hard drives are too unreliable. I burn one up every 3 to 6 months. More hard drives compounds your exposure when they are not redundant. In striping if you lose one, everything is hosed. But... I digress...
Hopefully, we'll get your stuff working. Let us know if there is anything else we can do to help;-)
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:16 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|