Linux RAID problems

Bremen

Senior member
Mar 22, 2001
658
0
0
My problem is that I have two drives half the size of two others. As such I thought I'd create a raid0 with the smaller drives and use it in a raid 5 with the larger two. I can make the array fine and everything is running, but if I try to start the array with 'raidstart' it fails to detect the raid0 array (the raid0 is running). I've tried without a superblock, since I assumed autodection may be the problem, no dice. I then tried using LVM instead of the raidtools to combine the smaller drives, still same exact problem. So I was left wondering is it even posslbie to use a raid/lvm inside another raid? Also if anyone has another method I could use to combine the smaller disks to present a single unified device for doing the RAID5 I'd love to hear it.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I just tested it in VMWare here and it worked fine.

$cat /proc/mdstat
Personalities : [raid0] [raid5] [raid4]
md1 : active raid5 sde[2] sdd[1] md0[0]
4193920 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]

md0 : active raid0 sdc[1] sdb[0]
2097024 blocks 64k chunks

unused devices: <none>
 

Bremen

Senior member
Mar 22, 2001
658
0
0
were you able to start the array with 'raidstart'? I could make the array with 'mkraid' and it would run but I would never be able to restart the array.

well, I settled on cutting the large disks in half and doing a raid 5 then using the unused partitions on the large disks for raid1. Anyway, the performace was quite bad with the raid5 over the raid0 as it only was syncing at about 500K/sec. As opposed to 27000K/sec for the straight disks. I'll then try to use linear to combine the raid5 and raid1
 

Bremen

Senior member
Mar 22, 2001
658
0
0
I never did raidstart, it came right up after mdadm was done creating it.
Which wasn't my problem :0)

I'm sorry I was unclear, but I could create the array fine, and it would run fine (if a tad slow, but I digress). What was happening was if I stopped the array and started it again it would fail to find the raid0 array. This basically meant if I ever rebooted I was screwed :0) Anyway the current setup works fine and its the same ammount of storage space so...
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Maybe I'll play with it a bit more in my VM then. But even if it can't find the RAID0 array the RAID5 should still come up in degraded mode, not ideal but you should be able to use mdadm to re-add the RAID0 element back in and let it rebuild.
 

Abzstrak

Platinum Member
Mar 11, 2000
2,450
0
0
uhhh use mdadm like nothinman said, no reason to raidstart.... actually i thought that raidstart and mkraid and the like were deprecated, maybe im wrong... dunno....
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I do think that raidstart and mkraid are deprecated, hell I can't even find them in sid or edgy, but they don't fare any better. Creating the array and rebooting still causes it to come up with the RAID0 device out of the RAID5 array, it's a simple matter to re-add the device with 'mdadm --re-add /dev/md1 /dev/md0' but then it has to rebuild the parity. Personally at this point, I think I'd give up and create a logical volume out of the 2 smaller disks and use that in the array. =)
 

Bremen

Senior member
Mar 22, 2001
658
0
0
Personally at this point, I think I'd give up and create a logical volume out of the 2 smaller disks and use that in the array. =)
I tried LVM, but still had the same problem. I changed my setup a little as I mentioned in a previous post to a raid 5 and a raid 1 joined in a linear array, and it works fine.

As for mdadm, I was under the impression it was just a frontend for raidtools.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |