Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Software RAID 0 HOW-TO
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Naughtyus
Guru
Guru


Joined: 14 Jul 2002
Posts: 463
Location: Vancouver, BC

PostPosted: Fri Oct 17, 2003 4:24 am    Post subject: Reply with quote

I'm having a problem with grub loading too. It hangs before I see the splash screen (that would let me choose what to boot to) - no error message, but it definetly isn't doing anything.

Someone in here suggested a boot floppy first, then loading grub.. How would I get this to work?
Back to top
View user's profile Send private message
NicholasDWolfwood
Apprentice
Apprentice


Joined: 19 Jan 2003
Posts: 235

PostPosted: Sun Oct 19, 2003 3:48 am    Post subject: Reply with quote

WHY THE HELL DOESN'T ANYBODY ANSWER MY QUESTIONS? IT'S BEEN 3 WEEKS!

I WANT AN ANSWER!

I have RAID0, on two 40GB HDs. I've got a Highpoint 370 controller, which AFAIK is an IDE controller with software-BIOS assistance. I've got an array setup, and it's 95% filled. I've got hde1, but no hdg1, only hdg. How do I get RAID0 software RAID to work?
_________________
AMD Athlon XP 1700+
Abit KG7-RAID
512MB PC2100 DDR266 Corsair/Kingston
40GB WD 7200RPM (37.1GB)
120GB WD 8MB 7200RPM (111GB)
160GB WD 8MB 7200RPM (149GB)
40GB WD 7200RPM (37.1GB)
Pioneer DVR-A06 4x DVD±RW
HP CD-RW 9500i (12x8x32x)
Back to top
View user's profile Send private message
Naughtyus
Guru
Guru


Joined: 14 Jul 2002
Posts: 463
Location: Vancouver, BC

PostPosted: Sun Oct 19, 2003 7:56 am    Post subject: Reply with quote

If you boot the 1.4 LiveCD with the options: smp doataraid , is there a /dev/ataraid directory?
Back to top
View user's profile Send private message
NicholasDWolfwood
Apprentice
Apprentice


Joined: 19 Jan 2003
Posts: 235

PostPosted: Sun Oct 19, 2003 3:54 pm    Post subject: Reply with quote

Yes, I do....the problem is, software and hardware RAID are different. There's software RAID in all the current kernels, but no hardware RAID in the 2.6x series which I intend to use.

2.4 and hardware RAID work perfectly fine, no software raid though
_________________
AMD Athlon XP 1700+
Abit KG7-RAID
512MB PC2100 DDR266 Corsair/Kingston
40GB WD 7200RPM (37.1GB)
120GB WD 8MB 7200RPM (111GB)
160GB WD 8MB 7200RPM (149GB)
40GB WD 7200RPM (37.1GB)
Pioneer DVR-A06 4x DVD±RW
HP CD-RW 9500i (12x8x32x)
Back to top
View user's profile Send private message
Naughtyus
Guru
Guru


Joined: 14 Jul 2002
Posts: 463
Location: Vancouver, BC

PostPosted: Mon Oct 20, 2003 8:30 pm    Post subject: Reply with quote

As someone else posted in here, you should be able to set up the software RAID with /dev/hde and /dev/hdg then. However, since they will then both be on the same controller, they'll use the same IRQ, which leads to absolutly horrible performance.

You'd be best off to just use /dev/hda and /dev/hdc.
Back to top
View user's profile Send private message
NicholasDWolfwood
Apprentice
Apprentice


Joined: 19 Jan 2003
Posts: 235

PostPosted: Sun Oct 26, 2003 3:33 am    Post subject: Reply with quote

...I'm lost here.

Apparently, you need PARTITIONS on your DRIVES.

I HAVE NONE ON /dev/hdg.

I've GOT

HDE1
HDG

NO HDG1 YOU FUCKING MORON

Sorry for my outburst, but I've been going around in circles.
_________________
AMD Athlon XP 1700+
Abit KG7-RAID
512MB PC2100 DDR266 Corsair/Kingston
40GB WD 7200RPM (37.1GB)
120GB WD 8MB 7200RPM (111GB)
160GB WD 8MB 7200RPM (149GB)
40GB WD 7200RPM (37.1GB)
Pioneer DVR-A06 4x DVD±RW
HP CD-RW 9500i (12x8x32x)
Back to top
View user's profile Send private message
kappax
Apprentice
Apprentice


Joined: 30 Aug 2002
Posts: 273
Location: The Moon

PostPosted: Wed Oct 29, 2003 5:47 pm    Post subject: Reply with quote

Last I checked 2.4 kernels have software raid.. I know this because I have been using software raid 0 for about the last year.

NicholasDWolfwood wrote:
Yes, I do....the problem is, software and hardware RAID are different. There's software RAID in all the current kernels, but no hardware RAID in the 2.6x series which I intend to use.

2.4 and hardware RAID work perfectly fine, no software raid though

_________________
My Box
glxgears - 4083.400 FPS
OS: GNU/Linux
Distro: Gentoo
kernel: 2.6.0-test9-mm2
----------------------
vi makes me :wq in word pad :(
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Fri Oct 31, 2003 10:06 pm    Post subject: How about raid 5? Reply with quote

I'm thinking of building a box and using 4 IDE drives...big ones like 250G...but, wanting to do RAID 5. Was going to put in a 2nd ide controller to have each drive on as master.

Will following this primer work for that? Just in the setup put raid type 5 instead of 0?

Also, trying to figure out how to install Gentoo on this thing...with no room for a CD rom on it (or could I put it on as slave to one of the 4 ide drives?

Thanks in advance...

cayenne
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
ben_h
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2002
Posts: 118
Location: Australia

PostPosted: Mon Nov 03, 2003 1:47 am    Post subject: Reply with quote

NicholasDWolfwood wrote:
NO HDG1 YOU FUCKING MORON

Sorry for my outburst, but I've been going around in circles.

If you were sorry for your outburst before you clicked Submit, maybe you should have deleted it? That's what the backspace key is for. You'll get better responses if you take a few deep breaths and calm down. And the problem will be a lot easier to solve that way.

Of course you're going round in circles. You can't fix a computer by swearing at it.

As for your problem --

You're not using hardware raid. Promise and Highpoint "RAID" cards are completely driver controlled, and don't do anything in hardware that a normal IDE controller can't. It's still completely software controlled. That's why it isn't working -- the drivers aren't there.

hdg doesn't HAVE a partition on it, because the disk is the second in a Highpoint stripe. They write the disks how they please. And the hde1 device is no use either.

To access the array, leave hde* and hdg* alone. Look to /dev/ataraid (iirc).

So, boot a kernel that does support it (2.4) to get the data off, set the controller to be a standard ATA controller with no "hardware raid", and set up Linux software raid on the disks (or their replacements, if they're dying). It's faster, more reliable, more configurable, and monitorable from the OS (cat /proc/mdstat).
Back to top
View user's profile Send private message
ben_h
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2002
Posts: 118
Location: Australia

PostPosted: Mon Nov 03, 2003 1:52 am    Post subject: Reply with quote

Cayenne:

No, there's a few more options you need for RAID5. The Software RAID HOWTO at tldp.org has very good explanations.

I used to use RAID5, and for the record here's an example from /etc/raidtab that I used to use.
Code:
# /
raiddev /dev/md0
        raid-level      5
        nr-raid-disks   3
        nr-spare-disks  0
        persistent-superblock   1
        parity-algorithm        left-symmetric
        chunk-size      64
        device          /dev/hda2
        raid-disk       0
        device          /dev/hde2
        raid-disk       1
        device          /dev/hdg2
        raid-disk       2
Back to top
View user's profile Send private message
lucasjb
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2003
Posts: 123
Location: Melbourne, Au

PostPosted: Wed Nov 05, 2003 12:13 am    Post subject: Software RAID, SATA and File Systems Reply with quote

Hi All,

While not strictly related to Gentoo, I've got a question or two about Linux Software RAID. Firstly, I have read the Software-RAID HOWTO and the Multi Disk HOWTO (both excellent and I recommend them to people wanting a better understanding of these topics) and I've successfully configured Software RAID-1 (with boot/root/swap on RAID) for some servers at work (to hopefully give me high availability --- and it seems to be doing the trick).

However, recently I've purchased a machine with two Serial ATA drives and I'd like to setup a RAID-1 across those. The BIOS and the OS both detect the drives as secondary master and slave (or hdc and hdd), which is fine, however:

Software-RAID HOWTO wrote:

It is very important, that you only use one IDE disk per IDE bus. Not only would two disks ruin the performance, but the failure of a disk often guarantees the failure of the bus, and therefore the failure of all disks on that bus.


So I'm not sure whether this applies to Serial ATA also, because in my understanding it's not an "IDE Bus" that they're connected to... somebody please confirm this for me?

Secondly, I've heard that some file systems give degraded performance in a software RAID (namely journaling file systems) anyone care to comment on the pros and cons of ext2 vs ext3 in a software RAID?

Hoping one of the RAID gurus around here can help me out...

Thanks,

Lucas
Back to top
View user's profile Send private message
lucasjb
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2003
Posts: 123
Location: Melbourne, Au

PostPosted: Thu Nov 06, 2003 2:05 am    Post subject: Results Reply with quote

Hi Again

Just to follow up my own post, I've got some information about what worked for me.

  • AOpen MX4SG-4DL Mainboard with Integrated ICH5 SATA Interface
  • 2 x Seagate 80GB 7200RPM 8MB SATA HDDs

BIOS detected drives as Secondary Master and Slave. OS installed onto hdc. I was getting horrible performance...

Code:

mercury:~# hdparm -tT /dev/hdc

/dev/hdc:
 Timing buffer-cache reads:   128 MB in  0.14 seconds =914.29 MB/sec
 Timing buffered disk reads:  64 MB in 18.42 seconds =  3.47 MB/sec


But all that was required was a simple...

Code:

mercury:~# hdparm -c1 -d1 -k1 /dev/hdc


To yield

Code:

mercury:~# hdparm -tT /dev/hdc

/dev/hdc:
 Timing buffer-cache reads:   128 MB in  0.14 seconds =914.29 MB/sec
 Timing buffered disk reads:  64 MB in  1.17 seconds = 54.70 MB/sec


A RAID-1 across my /home partition didn't really improve the performance, a great deal but I wouldn't expect it to...

Code:

mercury:~# hdparm -tT /dev/md5

/dev/md5:
 Timing buffer-cache reads:   128 MB in  0.13 seconds =984.62 MB/sec
 Timing buffered disk reads:  64 MB in  1.16 seconds = 55.17 MB/sec


What I don't really understand is why I had such an easy time compared to others on this thread, perhaps it's the integrated ICH5? I'm still curious as to the performance of the RAID when both drives are on the same "BUS", if anyone would like to try to clear that up for me that would be cool.

Lucas
Back to top
View user's profile Send private message
NicholasDWolfwood
Apprentice
Apprentice


Joined: 19 Jan 2003
Posts: 235

PostPosted: Sat Nov 08, 2003 12:17 am    Post subject: Reply with quote

Okay, new progress.

I got software RAID setup, the problem is when I try to mount the md0 device, it asks for a specific filesystem...the filesystem of the RAID is NTFS, formatted in Windows 2000 Advanced Server setup...any suggestions?

Also, I know the device is /dev/md0, because I specified it in my /etc/raidtab file...any help? It gives me the "bad superblock or file system" error when I try to mount /dev/md0.
_________________
AMD Athlon XP 1700+
Abit KG7-RAID
512MB PC2100 DDR266 Corsair/Kingston
40GB WD 7200RPM (37.1GB)
120GB WD 8MB 7200RPM (111GB)
160GB WD 8MB 7200RPM (149GB)
40GB WD 7200RPM (37.1GB)
Pioneer DVR-A06 4x DVD±RW
HP CD-RW 9500i (12x8x32x)
Back to top
View user's profile Send private message
NicholasDWolfwood
Apprentice
Apprentice


Joined: 19 Jan 2003
Posts: 235

PostPosted: Mon Nov 10, 2003 2:16 am    Post subject: Reply with quote

Any ideas as to whats wrong?
_________________
AMD Athlon XP 1700+
Abit KG7-RAID
512MB PC2100 DDR266 Corsair/Kingston
40GB WD 7200RPM (37.1GB)
120GB WD 8MB 7200RPM (111GB)
160GB WD 8MB 7200RPM (149GB)
40GB WD 7200RPM (37.1GB)
Pioneer DVR-A06 4x DVD±RW
HP CD-RW 9500i (12x8x32x)
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Wed Nov 19, 2003 4:19 am    Post subject: Reply with quote

NicholasDWolfwood wrote:
Any ideas as to whats wrong?


The last time I checked, Linux software RAID wasn't cross platform Windows compatible.
If you formatted it in the 2000 server setup, you pooched it.
Back to top
View user's profile Send private message
decker in flux
n00b
n00b


Joined: 08 Dec 2002
Posts: 60
Location: in flux

PostPosted: Fri Nov 28, 2003 11:16 pm    Post subject: Reply with quote

mdpye wrote:
taskara wrote:

I know this is only with UDMA2, but u seem to get such a high score there... what's your secret! ;)


Well, here's *one* secret I found when setting up my Seagate 7200.7s.

You use hde and hdg as your raid devices. If you can try swapping them to hda and hdc. On my Gigabyte GA7VXRP the raid controller has one one interrupt for both its channels. That's fine when you use the pseudo-hardware RAID cos you address the controller as one device. Use software RAID and suddenly the disks have to compete for interrupts...

Using the raid controller in ATA mode each of disks would pull up ~55MB/s, but combined, only ~65MB/s. Using the primary and secondary channels they get the same individually and combine for ~100MB/s. :)

Something for people disappointed with their results to check out...

MP



Could you or anyone else suggest a place to look? i.e. how?

-d
_________________
>;/
sloppy focus owns you
>;/design.inspire.create.progress
Back to top
View user's profile Send private message
gcasillo
l33t
l33t


Joined: 23 Sep 2003
Posts: 739
Location: Cincinnati, Ohio, USA

PostPosted: Fri Dec 19, 2003 11:16 am    Post subject: Reply with quote

My hdparm scores (all Maxtor 40GB drives):

Pre-RAID setup:
Code:

/dev/hda:
 Timing buffer-cache reads:   1592 MB in  2.00 seconds = 794.81 MB/sec
 Timing buffered disk reads:  86 MB in  3.04 seconds =  28.34 MB/sec

/dev/hde:
 Timing buffer-cache reads:   1504 MB in  2.00 seconds = 752.00 MB/sec
 Timing buffered disk reads:  98 MB in  3.01 seconds =  32.55 MB/sec

/dev/hdg:
 Timing buffer-cache reads:   1584 MB in  2.00 seconds = 792.40 MB/sec
 Timing buffered disk reads:  86 MB in  3.03 seconds =  28.40 MB/sec


Software RAID-0:
Code:

/dev/md0:
 Timing buffer-cache reads:   1760 MB in  2.00 seconds = 879.25 MB/sec
 Timing buffered disk reads:  228 MB in  3.03 seconds =  75.36 MB/sec


8)
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Fri Dec 19, 2003 10:35 pm    Post subject: Reply with quote

gcasillo wrote:
My hdparm scores (all Maxtor 40GB drives):

Pre-RAID setup:
Code:

/dev/hda:
 Timing buffer-cache reads:   1592 MB in  2.00 seconds = 794.81 MB/sec
 Timing buffered disk reads:  86 MB in  3.04 seconds =  28.34 MB/sec

/dev/hde:
 Timing buffer-cache reads:   1504 MB in  2.00 seconds = 752.00 MB/sec
 Timing buffered disk reads:  98 MB in  3.01 seconds =  32.55 MB/sec

/dev/hdg:
 Timing buffer-cache reads:   1584 MB in  2.00 seconds = 792.40 MB/sec
 Timing buffered disk reads:  86 MB in  3.03 seconds =  28.40 MB/sec


Software RAID-0:
Code:

/dev/md0:
 Timing buffer-cache reads:   1760 MB in  2.00 seconds = 879.25 MB/sec
 Timing buffered disk reads:  228 MB in  3.03 seconds =  75.36 MB/sec


8)


that's a damn nice boost!!!! ;)
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Fri Dec 19, 2003 11:20 pm    Post subject: Reply with quote

cant wait til I get an athlon64 system sometime next year, then I can get a couple of SATA drives and put a raid0 system on them...

Or maybe a raid0+1 or raid5 if the drives are cheap enough...

:D
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
gcasillo
l33t
l33t


Joined: 23 Sep 2003
Posts: 739
Location: Cincinnati, Ohio, USA

PostPosted: Fri Dec 19, 2003 11:26 pm    Post subject: Reply with quote

I will say that this P4-2.4GHz box with its new RAID-0 setup is snappier. You know how you get used to the rhythm of the text as it scrolls by during compiles? It is noticibly quicker. Yes, software RAID is a wonderful thing.
Back to top
View user's profile Send private message
janlaur
n00b
n00b


Joined: 14 Jun 2003
Posts: 57
Location: Denmark, Århus

PostPosted: Sat Dec 27, 2003 9:08 am    Post subject: Reply with quote

I've followed the guide, and got it working without any problems. But i didn't get the performance boot i expected.
I am using two ide disk in a software raid0. each disk is master and with no slaves attached.
As shown below, each drive perform well alone.
Code:
# hdparm -Tt /dev/hda /dev/hdc /dev/md0

/dev/hda:
 Timing buffer-cache reads:   1512 MB in  2.00 seconds = 754.87 MB/sec
 Timing buffered disk reads:  138 MB in  3.03 seconds =  45.54 MB/sec

/dev/hdc:
 Timing buffer-cache reads:   1496 MB in  2.00 seconds = 747.63 MB/sec
 Timing buffered disk reads:  164 MB in  3.01 seconds =  54.47 MB/sec

/dev/md0:
 Timing buffer-cache reads:   1488 MB in  2.00 seconds = 743.26 MB/sec
 Timing buffered disk reads:  192 MB in  3.03 seconds =  63.45 MB/sec
# cat /proc/mdstat
Personalities : [raid0] [multipath]
read_ahead 1024 sectors
md0 : active raid0 ide/host0/bus1/target0/lun0/part5[1] ide/host0/bus0/target0/lun0/part7[0]
      135186752 blocks 32k chunks

Should't my raid 0 be faster than 63mb/sec ?
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Sat Dec 27, 2003 4:12 pm    Post subject: Reply with quote

janlaur wrote:
I've followed the guide, and got it working without any problems. But i didn't get the performance boot i expected.
I am using two ide disk in a software raid0. each disk is master and with no slaves attached.
<snip>
Should't my raid 0 be faster than 63mb/sec ?


With IDE, there is a limited bandwidth. In some cases, the second IDE channel is actually a shared resource with the first. (Lovely engineering tactic)
You can, however, experiment with different sized stripes and so forth. That's what I did when I made a raid0 to test it's speed once on a new server. (I ended up going with LVM simply because the first disk was going to be shared with the system on a Linux partition, and I didn't feel like messing with root-filesystem raid and so forth.)
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Sat Dec 27, 2003 4:15 pm    Post subject: Reply with quote

Anybody had any luck with putting more than 2 IDE controllers into a machine to bring a max count of disks above 4 for their raid setup?
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Sat Dec 27, 2003 10:05 pm    Post subject: Reply with quote

I have 4 seagate sata drives coming after the new year.. I'll post my findings if you like..

edit: oh, above 4 :? I could order in a few more ?? total of 6? we'll see
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
janlaur
n00b
n00b


Joined: 14 Jun 2003
Posts: 57
Location: Denmark, Århus

PostPosted: Sun Dec 28, 2003 12:16 am    Post subject: Reply with quote

arkane wrote:
With IDE, there is a limited bandwidth. In some cases, the second IDE channel is actually a shared resource with the first. (Lovely engineering tactic)

Seems you where rigth. I moved one of the disk to my onboard ide raid controller, and i went from 63 -> 82 mb/sec.
arkane wrote:
Anybody had any luck with putting more than 2 IDE controllers into a machine to bring a max count of disks above 4 for their raid setup?

That migth answer that also. If you have a hardware raid controller on you motherboard, you can just use it as a ide controller. i havn't tried with more than 4 disks trough.

btw, anybody knows why the driver for promise mbfasttrack lite (pdcraid.o) dosn't work after 2.4.20, and if it is going to be included in 2.6 at any point ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 3 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum