Skip to contentSkip to conversation

raid on extended partitions

DISCUSSION M K 4 participants 7 messages May 31, 2004 – Jun 2, 2004 MD RAID

lore
Share & tools
lore

M K

author
#0 lore raw

Hello folks, I am using kernel version 2.4.18-ac3, mdadm - v1.2.0 - 13 Mar 2003 and wanted to take a shot at creating a RAID on an extended partition using mdadm.
the commands used were (all drives were swapped off an unmounted before running these, and I am running on a motherboard with 4 IDE channels; the drives used were /dev/hde and /dev/hdg):
Fdisk RESULT for hde (same on hdg as well):
Device Boot Start End Blocks Id
System
/dev/hde1 1 9052 72710158+ 83
Linux
/dev/hde2 9053 36473 220259182+ 5
Extended
/dev/hde5 9053 12877 30724281 fd
Linux raid autodetect

Calling ioctl() to re-read partition table.
hde: hde1 hde2 < hde5 >
hde: hde1 hde2 < hde5 >
Syncing disks.

After that, When I tried to run:
mdadm --create --force /dev/md3 --raid-devices=2 --level=1 /dev/hde5 /dev/hdg5

I get:
mdadm: Cannot open /dev/hde5: No such file or directory
mdadm: Cannot open /dev/hdg5: No such file or directory
mdadm: create aborted

I am using mdadm - v1.2.0 - 13 Mar 2003
.
Is there something I am doing wrong? Please advise - Thanks a lot in advance!

Regards,
Mahesh

__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

#1 lore raw
Quoted 27 lines · On Monday May 31, [email protected] wrote:

Hello folks, I am using kernel version 2.4.18-ac3, mdadm - v1.2.0 - 13 Mar 2003 and wanted to take a shot at creating a RAID on an extended partition using mdadm.
the commands used were (all drives were swapped off an unmounted before running these, and I am running on a motherboard with 4 IDE channels; the drives used were /dev/hde and /dev/hdg):
Fdisk RESULT for hde (same on hdg as well):
Device Boot Start End Blocks Id
System
/dev/hde1 1 9052 72710158+ 83
Linux
/dev/hde2 9053 36473 220259182+ 5
Extended
/dev/hde5 9053 12877 30724281 fd
Linux raid autodetect

Calling ioctl() to re-read partition table.
hde: hde1 hde2 < hde5 >
hde: hde1 hde2 < hde5 >
Syncing disks.

After that, When I tried to run:
mdadm --create --force /dev/md3 --raid-devices=2 --level=1 /dev/hde5 /dev/hdg5

Quoted 6 lines

I get:
mdadm: Cannot open /dev/hde5: No such file or directory
mdadm: Cannot open /dev/hdg5: No such file or directory
mdadm: create aborted

What does
ls -l /dev/hd[eg]5
show? How about
cat /proc/partitions
dd if=/dev/hde5 of=/dev/null bs=1024k

NeilBrown

Quoted 2 lines

I am using mdadm - v1.2.0 - 13 Mar 2003

Not the most recent ..... but it should still work.

author
#2 lore raw
Quoted 6 lines · --- Neil Brown

What does
ls -l /dev/hd[eg]5
show? How about
cat /proc/partitions
dd if=/dev/hde5 of=/dev/null bs=1024k

Thanks a lot, Neil, turns out those nodes were not present. After I mknod'd them, all's fine in RAIDland...
Quick question: does using extended partitions for
RAID affect performance?
Cheers,
Mahesh

__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

#3 lore raw
Quoted 9 lines · On Tuesday June 1, [email protected] wrote:
Quoted 6 lines · --- Neil Brown

What does
ls -l /dev/hd[eg]5
show? How about
cat /proc/partitions
dd if=/dev/hde5 of=/dev/null bs=1024k

Quoted 5 lines

Thanks a lot, Neil, turns out those nodes were not present. After I mknod'd them, all's fine in RAIDland...
Quick question: does using extended partitions for
RAID affect performance?

The fact that the partitions are "extended" is invisible to most of the kernel, and it could not have any affect of performance.

NeilBrown

#4 lore raw

Raid 5: Lossless music archive server recommendations

Hi folks...

Its been a while since I've asked anything on here.. after some effort you guys got me rolling with linux for a backup server on an old machine and an old promise ide controller running a simple 2 drive software raid mirror... Everything has been fine with it so far although its not in use much at the moment as the machine to be backed up has since been "upgraded" to be water cooled.. but i've yet to fit the controls to turn the pump on automatically so it can't boot up without me being around and so can't run the auto backup task..

ANyways.. For a long time i've been waiting for bigger harddisks to make a backup of my entire music catalogue a possibility, in lossless formats about 400meg an album.. I've just realised that this only really needs around 400-500gig and so is within reach of not too many hdds right here right now..

Its going to take some time to make these music rips and when i do i think i'll want them to have some kind of backup which has got me thinking raid again... I guess this time I would want raid5 as I need more space than is really feasible off only a few drives..

I'm a little wet behind the ears with all things raid but i was thinking that 3x200gig drives would do for the data.. needing a 4th drive for the raid5 parity disk or however it works..

Beyond that i do continue to buy music so some form of expandability would be nice.. 8 channels would allow me to scale although am i right in thinking that i would have to stick to the same sized drives for any extra drives i consider!?

I then guess i need to have seperate channels for each hdd, which starts taking me towards 3ware type cards with hardware to the task.. does this then move me away from using software raid in linux if i have to get these cards?

I ideally would like SATA to try it but i can't find any 200gig Seagate SATA drives in the UK at the moment, only Ultra ATA ..

Anyways if you experts could tell me if i've got the right idea for requirements that'd be great..

Thanks for your time

Cheers

Jim

Signature · 1 line
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
author
#5 lore raw

Re: Raid 5: Lossless music archive server recommendations

I may be wrong, but do bear in mind that its not easy to "expand" a RAID once you have created it. More or less, when you need more space in the future, you may just find it easier to create another big raid.
also, IDE drives are not very reliable per-se. so you
may want to add another "hot-spare" to your system, just in case more than one hard drive says bye-bye. .. just my $0.02 of thought..

Quoted 67 lines · --- James Bamford

Hi folks...

Its been a while since I've asked anything on here.. after some effort you
guys got me rolling with linux for a backup server on an old machine and
an old promise ide controller running a simple 2 drive software raid
mirror... Everything has been fine with it so far although its not in use
much at the moment as the machine to be backed up has since been
"upgraded" to be water cooled.. but i've yet to fit the controls to turn
the pump on automatically so it can't boot up without me being around and
so can't run the auto backup task..

ANyways.. For a long time i've been waiting for bigger harddisks to make a
backup of my entire music catalogue a possibility, in lossless formats
about 400meg an album.. I've just realised that this only really needs
around 400-500gig and so is within reach of not too many hdds right here
right now..

Its going to take some time to make these music rips and when i do i think
i'll want them to have some kind of backup which has got me thinking raid
again... I guess this time I would want raid5 as I need more space than is
really feasible off only a few drives..

I'm a little wet behind the ears with all things raid but i was thinking
that 3x200gig drives would do for the data.. needing a 4th drive for the
raid5 parity disk or however it works..

Beyond that i do continue to buy music so some form of expandability would
be nice.. 8 channels would allow me to scale although am i right in
thinking that i would have to stick to the same sized drives for any extra
drives i consider!?

I then guess i need to have seperate channels for each hdd, which starts
taking me towards 3ware type cards with hardware to the task.. does this
then move me away from using software raid in linux if i have to get these
cards?

I ideally would like SATA to try it but i can't find any 200gig Seagate
SATA drives in the UK at the moment, only Ultra ATA ..

Anyways if you experts could tell me if i've got the right idea for
requirements that'd be great..

Quoted 14 lines

Thanks for your time

Cheers

Jim

Signature · 7 lines
Using M2, Opera's revolutionary e-mail client:
http://www.opera.com/m2/
-
To unsubscribe from this list: send the line
"unsubscribe linux-raid" in
the body of a message to [email protected]
More majordomo info at 

http://vger.kernel.org/majordomo-info.html

__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

#6 lore raw

RE: Raid 5: Lossless music archive server recommendations

If you buy and extra disk to be a spare, consider RAID6.

RAID6 will allow 2 simultaneous disk failures.

RAID5 with 1 spare will support 2 disk failures, but only 1 at a time. 1 must fail, then the array rebuilds to the spare, then another can fail. During a re-build, if a single block is bad, the re-build fails and the drive with the read error goes off-line and the array goes off-line. Not pretty! This has happened to me!! When it happens, it is like having 2 simultaneous disk failures, RAID6 would have survived!

Guy

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of M K
Sent: Tuesday, June 01, 2004 8:06 PM
To: James Bamford; [email protected]
Subject: Re: Raid 5: Lossless music archive server recommendations

I may be wrong, but do bear in mind that its not easy to "expand" a RAID once you have created it. More or less, when you need more space in the future, you may just find it easier to create another big raid.
also, IDE drives are not very reliable per-se. so you
may want to add another "hot-spare" to your system, just in case more than one hard drive says bye-bye. .. just my $0.02 of thought..

Quoted 67 lines · --- James Bamford

Hi folks...

Its been a while since I've asked anything on here.. after some effort you
guys got me rolling with linux for a backup server on an old machine and
an old promise ide controller running a simple 2 drive software raid
mirror... Everything has been fine with it so far although its not in use
much at the moment as the machine to be backed up has since been
"upgraded" to be water cooled.. but i've yet to fit the controls to turn
the pump on automatically so it can't boot up without me being around and
so can't run the auto backup task..

ANyways.. For a long time i've been waiting for bigger harddisks to make a
backup of my entire music catalogue a possibility, in lossless formats
about 400meg an album.. I've just realised that this only really needs
around 400-500gig and so is within reach of not too many hdds right here
right now..

Its going to take some time to make these music rips and when i do i think
i'll want them to have some kind of backup which has got me thinking raid
again... I guess this time I would want raid5 as I need more space than is
really feasible off only a few drives..

I'm a little wet behind the ears with all things raid but i was thinking
that 3x200gig drives would do for the data.. needing a 4th drive for the
raid5 parity disk or however it works..

Beyond that i do continue to buy music so some form of expandability would
be nice.. 8 channels would allow me to scale although am i right in
thinking that i would have to stick to the same sized drives for any extra
drives i consider!?

I then guess i need to have seperate channels for each hdd, which starts
taking me towards 3ware type cards with hardware to the task.. does this
then move me away from using software raid in linux if i have to get these
cards?

I ideally would like SATA to try it but i can't find any 200gig Seagate
SATA drives in the UK at the moment, only Ultra ATA ..

Anyways if you experts could tell me if i've got the right idea for
requirements that'd be great..

Quoted 14 lines

Thanks for your time

Cheers

Jim

Signature · 7 lines
Using M2, Opera's revolutionary e-mail client:
http://www.opera.com/m2/
-
To unsubscribe from this list: send the line
"unsubscribe linux-raid" in
the body of a message to [email protected]
More majordomo info at 

http://vger.kernel.org/majordomo-info.html

__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html