Help with RAID 1 in 2.2.14 (RedHat 6.2)
Here's my hardware configuration: One ATA66 drive attached to the MB Two ATA66 drives attached to a Promise Ultra/66 controller In order to get the Promise Ultra/66 controller to work, I had to apply a patch to the 2.2.14 kernel. I took the standard kernel, ran the patch, configured it, compiled, and booted on it, and it came up and detected the Promise Ultra/66 with no problems. Then I did fdisk, and put some type FD (Linux RAID) partitions on the Promise-attached drives. They look like this: /dev/hde1 131 15592+ 83 Linux /dev/hde232 28478 14337288 fd Linux raid autodetect /dev/hde3 28479 39770 5691168 83 Linux and /dev/hdg1 131 15592+ 83 Linux /dev/hdg232 28478 14337288 fd Linux raid autodetect /dev/hdg3 28479 39770 5691168 83 Linux Then I put this in /etc/raidtab: raiddev /dev/md0 raid-level 1 nr-raid-disks 2 nr-spare-disks 0 chunk-size 16 persistent-superblock 1 device /dev/hde2 raid-disk 0 device /dev/hdg2 raid-disk 1 and when I run mkraid /dev/md0 I get: [hh@server raidtools-0.90]# mkraid /dev/md0 handling MD device /dev/md0 analyzing super-block disk 0: /dev/hde2, 14337288kB, raid superblock at 14337216kB disk 1: /dev/hdg2, 14337288kB, raid superblock at 14337216kB mkraid: aborted, see the syslog and /proc/mdstat for potential clues. I don't see anything in syslog, and /proc/mdstat looks like this: [hh@server raidtools-0.90]# cat /proc/mdstat Personalities : [3 raid1] [4 raid5] read_ahead not set md0 : inactive md1 : inactive md2 : inactive md3 : inactive Any clues? I feel like I've done everything according to the instructions, and I feel like I'm very close to getting it to work, but it's still not working. Have I left out something important in the kernel config? Or did I need a RAID patch to the 2.2.14 kernel to get it to work? This last possibility would be unfortunate, because it will be difficult to apply both a RAID patch and a Promise Ultra/66 patch. Thanks for your help, e -- This message was my two cents worth. Please deposit two cents into my e-gold account by following this link: http://rootworks.com/twocentsworth.cgi?102861 275A B627 1826 D627 ED35 B8DF 7DDE 4428 0F5C 4454
Re: Help with RAID 1 in 2.2.14 (RedHat 6.2)
Erich wrote: Any clues? I feel like I've done everything according to the instructions, and I feel like I'm very close to getting it to work, but it's still not working. Have I left out something important in the kernel config? Or did I need a RAID patch to the 2.2.14 kernel to get it to work? This last possibility would be unfortunate, because it will be difficult to apply both a RAID patch and a Promise Ultra/66 patch. Yes you need the RAID patch from http://people.redhat.com/mingo/raid-patches/ Don't worry it's just another kernel recompile =:-\ Cheers Tony
Re: raid-2.3.99-5-x1
"Gary E. Miller" wrote: I just noticed two new files at: http://people.redhat.com/mingo/raid-patches/ They are: raid-2.3.99-5-A1 raid-2.3.99-5-B1 A1 seems to add just the autodetect stuff and B1 the rest of it. Been there done that... Broken on my machine too Cheers Tony
Autodetection with BSD disklabel
Hi list, I'm playing around with RAID-0 on an Compaq DS10 with an Alpha processor running Kernel 2.2.14 + raid-2.2.14-B1 patch. When I try to do autodetection on my RAID partition I fail: - I put autodetection support into the kernel. - I created /dev/md0 with persistent superblock - Since the DS10 has an SRM console I have to BSD disklabels to boot properly from harddisk. I tried to set the partition-type of my RAID partitions to 0xfd as mentioned in the Software RAID HOWTO but I'm not really sure if I succeeded, since the know partition-type mentioned by fdisk only tell about a range from 0x0 to 0xf. Anyway, fdisk tells me about 0xfd. But when I reboot the system, everything I get is: -- 4md.c: sizeof(mdp_super_t) = 4104 6autodetecting RAID arrays 4autorun ... 4... autorun DONE. -- So, the RAID-0 is not detected. I suspect that the problem is related to the BSD-disklabels. Any suggestions? Ciao Norbert
Bug in 2.2.14 + raid-2.2.14-B1
I reported this bug to linux-raid on March 27 and to linux-kernel a week later and had zero responses from either. In case my previous message was too long, here it is again in brief. Kernel 2.2.14 + raid-2.2.14-B1 as shipped with Red Hat 6.x. RAID5 across multiple SCSI disks. Spin down one disk with ioctl SCSI_IOCTL_STOP_UNIT to simulate error. Kernel logs md: bug in file raid5.c, line 659 ** * COMPLETE RAID STATE PRINTOUT * ** followed by complete lock up of all activity on /dev/md0, including any attempt to do raidhot{add,remove}. *Please* can someone comment/help? The reason I am using a disk spin down to simulate failure is that echo "scsi remove-single-device 0 0 1 0" /proc/scsi/scsi doesn't work for me with kernel 2.2. The underlying write gives EBUSY which the kernel source says means the disk is busy. This worked fine for me (along with add-single-device) on kernel 2.0 with RAID 0.90. *Please* can someone help, even if only by saying "scsi remove-single-device works fine for me with 2.2" or "no it doesn't work for me either but I don't care"? This problem is preventing the upgrade to 2.2 of a number of Linux servers and has meant that I've had to bring a new large server into service without the benefit of RAID (since it needs kernel 2.2 for other reasons). --Malcolm -- Malcolm Beattie [EMAIL PROTECTED] Unix Systems Programmer Oxford University Computing Services
Re: SCSI - IDE RAID Adapters
the SCSI bus on one side and emulate one disk, and on the other do hardware raid5 across 4 - 8 UDMA buses? I ask because, while not normally somthing I would do, I need to rig a large storage array in an evil environ. No way am I mounting eight 1K$ each drives in a mobile application, but 5 28G UDMA drives are 1K total, and who cares id you kill a few per year. Any leads, preferred units, etc? www.zero-d.com they have those units. -sv
Re: Help with RAID 1 in 2.2.14 (RedHat 6.2)
On Fri, 14 Apr 2000, Tony Grant wrote: Erich wrote: Any clues? I feel like I've done everything according to the instructions, and I feel like I'm very close to getting it to work, but it's still not working. Have I left out something important in the kernel config? Or did I need a RAID patch to the 2.2.14 kernel to get it to work? This last possibility would be unfortunate, because it will be difficult to apply both a RAID patch and a Promise Ultra/66 patch. Yes you need the RAID patch from http://people.redhat.com/mingo/raid-patches/ Don't worry it's just another kernel recompile =:-\ I've tried doing that, 2.2.14 adding both patchs. mostly they failed everywhere. then once I did it get it in, and compile, it still never worked right, I change to 2.3 kernel, even tho alpha/beta kernels are buggy, alteast it's working for now. Hopefully in next couple weeks/months 2.4 , or 2.2.x will have patchs in it, Others in this list do have it all working fine tho.(probly just me) Linux temp 2.3.48 #1 SMP Wed Mar 29 04:44:43 EST 2000 i686 unknown 2:07pm up 16 days, 8:13, 4 users, load average: 0.01, 0.01, 0.00 /dev/md0 77497248 61287908 12208368 /dev/md1 38620464 13837200 22789536 /dev/md2 77497248 54034202 21363046
mkraid /dev/md0 ;;but get md2 running
mkraid /dev/md0 But I get md2 running instead of md0. Does anyone know why and how to fix it? Thanks. Jason [root@hostb120 /root]# cat /proc/mdstat Personalities : [raid1] read_ahead 1024 sectors md2 : active raid1 hdc6[1] hda6[0] 3028096 blocks [2/2] [UU] unused devices: none [root@hostb120 /root]# cat /etc/raidtab raiddev /dev/md0 raid-level 1 nr-raid-disks 2 nr-spare-disks 0 chunk-size 4 device /dev/hda6 raid-disk 0 device /dev/hdc6 raid-disk 1 failed-disk 1 __ Do You Yahoo!? Send online invitations with Yahoo! Invites. http://invites.yahoo.com
Re: Help with RAID 1 in 2.2.14 (RedHat 6.2)
I'm the one who originally posted the question, and now I may have an answer (with help from the list): I've tried doing that, 2.2.14 adding both patchs. mostly they failed everywhere. then once I did it get it in, and compile, it still never worked right, I change to 2.3 kernel, even tho alpha/beta kernels are buggy, alteast it's working for now. Hopefully in next couple weeks/months 2.4 , or 2.2.x will have patchs in it, Others in this list do have it all working fine tho.(probly just me) Linux temp 2.3.48 #1 SMP Wed Mar 29 04:44:43 EST 2000 i686 unknown 2:07pm up 16 days, 8:13, 4 users, load average: 0.01, 0.01, 0.00 /dev/md0 77497248 61287908 12208368 /dev/md1 38620464 13837200 22789536 /dev/md2 77497248 54034202 21363046 It's definitely possible to use 2.2.14 with the Software RAID patch and with the Promise Ultra/66 patch at the same time. I'm doing it right now. Download the plain-vanilla 2.2.14 kernel. Apply this patch first: http://www.kernel.org/pub/linux/kernel/people/hedrick/old/ide.2.2.14.2124.patch.gz Then apply the RAID patch that [EMAIL PROTECTED] posted here earlier, called raid-2.2.14-B1 (I don't have a URL but I can mail you what was posted). Then configure your kernel properly (email me if you have questions), compile it, install it, and it does miraculously work. Mine detects the RAID partition on boot, and mounts it on boot, without having to modify init scripts at all. I'm very impressed. I promise you that 2.2.14 + Promise Ultra/66 + RAID works (in that order)! The Promise Ultra/66 card has been a total nightmare, but now that it's working, it's the way to build big fast RAID arrays as cheaply as possible. I think it's about half the cost of doing a comparable solution with SCSI. This savings will be worth it if you're building a cluster of these machines. It's just unfortunate that Promise isn't aggressively supporting Linux, and didn't get an Ultra/66 driver into the RedHat 6.2 release. e -- This message was my two cents worth. Please deposit two cents into my e-gold account by following this link: http://rootworks.com/twocentsworth.cgi?102861 275A B627 1826 D627 ED35 B8DF 7DDE 4428 0F5C 4454
Chunk size in mirrored configurations?
I looked through the documentation, and I can't find any good information about what the chunk size should be in a mirrored configruation. I'm using three disks in a Level 1 configuration. The data on the disks will be a MySQL database, and a bunch of files. Any hints on an appropriate chunk size? I just put chunk-size 8 in my /etc/raidtab. Is that a good choice? Btw, once it's working, software RAID is very cool. It auto-detects and mounts normally during boot, without any messing around with init scripts. e -- This message was my two cents worth. Please deposit two cents into my e-gold account by following this link: http://rootworks.com/twocentsworth.cgi?102861 275A B627 1826 D627 ED35 B8DF 7DDE 4428 0F5C 4454
Antigen found W32/Ska.A.Worm virus
Antigen for Exchange found Happy99.exe infected with W32/Ska.A.Worm virus. The file is currently Deleted. The message, "controller failure hosed raid5 array :-(", was sent from Gabor Tjong A Hung and was discovered in Public Folders\NAV for Microsoft Exchange-MONTANA\Quarantine located at E-DIALOG, INC./E-DIALOG_DOM/CORP-EXC1.
Re: Help with RAID 1 in 2.2.14 (RedHat 6.2)
It's definitely possible to use 2.2.14 with the Software RAID patch and with the Promise Ultra/66 patch at the same time. I'm doing it right now. Download the plain-vanilla 2.2.14 kernel. Apply this patch first: http://www.kernel.org/pub/linux/kernel/people/hedrick/old/ide.2.2.14 .2124.patch.gz Then apply the RAID patch that [EMAIL PROTECTED] posted here earlier, called raid-2.2.14-B1 (I don't have a URL but I can mail you what was posted). ditto, I have raid 5 with two on-board and one promise controller. This has been running for several months. Used the same procedure described above on stock 2.2.14 kernel from kernel.org. Slackware 7.0 distribution. [EMAIL PROTECTED]
Re: Chunk size in mirrored configurations?
On Fri, Apr 14, 2000 at 12:06:47PM -0700, Erich wrote: I looked through the documentation, and I can't find any good information about what the chunk size should be in a mirrored configruation. I'm using three disks in a Level 1 configuration. The well, from the man page: chunk-size size Sets the stripe size to size bytes. Has to be a power of 2 and has a compilation-time maximum of 4M. (MAX_CHUNK_SIZE in the kernel driver) typical values are anything from 4k to 128k, the best value should be determined by experimenting on a given array, alot depends on the SCSI and disk configuraAD tion. Since a mirror isn't striped, I'd say it doesn't matter. I personally used 32 in my setup, but ... -- Randomly Generated Tagline: "I thought you were dead. Yeah ... I get that a lot." - From the movie "Alien: Resurrection"
Re: Help with RAID 1 in 2.2.14 (RedHat 6.2)
Ok, here are the notes that I wrote to myself of how to get Software RAID and the Promise Ultra/66 in the same kernel: 1. Don't use the RedHat version of the 2.2.14 kernel. It has too many patches, so the other patches won't work. 2. Do unpack the linux-2.2.14.tar.gz file. 3. Apply the ide.2.2.14.2124.patch file using this command: cd /usr/src; patch -p0 ide.2.2.14.2124.patch 4. Apply the raid patch using this command: cd /usr/src; patch -p0 raid-2.2.14-B1 5. Configure the kernel. 6. Compile it and install it. 7. Follow the instructions on the Software RAID How-To file about how to get RAID partitions to work. To get these files: The kernel source: http://www.kernel.org/pub/linux/kernel/v2.2/linux-2.2.14.tar.gz The ide patch: http://www.kernel.org/pub/linux/kernel/people/hedrick/old/ide.2.2.14.2124.patch.gz The RAID patch: http://people.redhat.com/mingo/raid-patches/raid-2.2.14-B1 -- This message was my two cents worth. Please deposit two cents into my e-gold account by following this link: http://rootworks.com/twocentsworth.cgi?102861 275A B627 1826 D627 ED35 B8DF 7DDE 4428 0F5C 4454
Re: Help with RAID 1 in 2.2.14 (RedHat 6.2)
Erich, I am planning on trying to use the Promise Ultra66 tonight (want to beef up performance). I currently have RAID5 running with a Promise EIDE-MaxII card quite nicely. I know about the 2.2.14-B1 patch for RAID, but which promise patch are you referring to? I see that Promise has a beta driver on their website, and this list pointed to: http://www.csie.ntu.edu.tw/~b6506063/hpt366/ which references a patch by Andre Hedrick for Ultra66 support. Which I assume is the same as you reference below. Have you or anyone looked at the beta driver on the promise site? Doug Egan Erich wrote: I'm the one who originally posted the question, and now I may have an answer (with help from the list): I've tried doing that, 2.2.14 adding both patchs. mostly they failed everywhere. then once I did it get it in, and compile, it still never worked right, I change to 2.3 kernel, even tho alpha/beta kernels are buggy, alteast it's working for now. Hopefully in next couple weeks/months 2.4 , or 2.2.x will have patchs in it, Others in this list do have it all working fine tho.(probly just me) Linux temp 2.3.48 #1 SMP Wed Mar 29 04:44:43 EST 2000 i686 unknown 2:07pm up 16 days, 8:13, 4 users, load average: 0.01, 0.01, 0.00 /dev/md0 77497248 61287908 12208368 /dev/md1 38620464 13837200 22789536 /dev/md2 77497248 54034202 21363046 It's definitely possible to use 2.2.14 with the Software RAID patch and with the Promise Ultra/66 patch at the same time. I'm doing it right now. Download the plain-vanilla 2.2.14 kernel. Apply this patch first: http://www.kernel.org/pub/linux/kernel/people/hedrick/old/ide.2.2.14.2124.patch.gz Then apply the RAID patch that [EMAIL PROTECTED] posted here earlier, called raid-2.2.14-B1 (I don't have a URL but I can mail you what was posted). Then configure your kernel properly (email me if you have questions), compile it, install it, and it does miraculously work. Mine detects the RAID partition on boot, and mounts it on boot, without having to modify init scripts at all. I'm very impressed. I promise you that 2.2.14 + Promise Ultra/66 + RAID works (in that order)! The Promise Ultra/66 card has been a total nightmare, but now that it's working, it's the way to build big fast RAID arrays as cheaply as possible. I think it's about half the cost of doing a comparable solution with SCSI. This savings will be worth it if you're building a cluster of these machines. It's just unfortunate that Promise isn't aggressively supporting Linux, and didn't get an Ultra/66 driver into the RedHat 6.2 release. e -- This message was my two cents worth. Please deposit two cents into my e-gold account by following this link: http://rootworks.com/twocentsworth.cgi?102861 275A B627 1826 D627 ED35 B8DF 7DDE 4428 0F5C 4454 -- ---
Re: Chunk size in mirrored configurations?
i have found that on raid 1, chunk size does not matter for performance. what matters more seems to be the block size option to mke2fs. i make my mysql stores with chunksize 16, and run mke2fs with -R stride=4 -b 4096 allan Erich [EMAIL PROTECTED] said: I looked through the documentation, and I can't find any good information about what the chunk size should be in a mirrored configruation. I'm using three disks in a Level 1 configuration. The data on the disks will be a MySQL database, and a bunch of files. Any hints on an appropriate chunk size? I just put chunk-size 8 in my /etc/raidtab. Is that a good choice? Btw, once it's working, software RAID is very cool. It auto-detects and mounts normally during boot, without any messing around with init scripts. e -- This message was my two cents worth. Please deposit two cents into my e-gold account by following this link: http://rootworks.com/twocentsworth.cgi?102861 275A B627 1826 D627 ED35 B8DF 7DDE 4428 0F5C 4454
Re: mkraid /dev/md0 ;;but get md2 running
hmm. first change this: device /dev/hdc6 raid-disk 1 failed-disk 1 to this: device /dev/hdc6 failed-disk 1 then change the partition types of both chunks back to 83 (not fd). then reboot. check /proc/mdstat to make sure that no raids are running. then run mkraid --really-force /dev/md0 then change the partition types back to fd. reboot. good luck. allan Jason Lin [EMAIL PROTECTED] said: mkraid /dev/md0 But I get md2 running instead of md0. Does anyone know why and how to fix it? Thanks. Jason [root@hostb120 /root]# cat /proc/mdstat Personalities : [raid1] read_ahead 1024 sectors md2 : active raid1 hdc6[1] hda6[0] 3028096 blocks [2/2] [UU] unused devices: none [root@hostb120 /root]# cat /etc/raidtab raiddev /dev/md0 raid-level 1 nr-raid-disks 2 nr-spare-disks 0 chunk-size 4 device /dev/hda6 raid-disk 0 device /dev/hdc6 raid-disk 1 failed-disk 1 __ Do You Yahoo!? Send online invitations with Yahoo! Invites. http://invites.yahoo.com --
Antigen found W32/Ska.A.Worm virus
Antigen for Exchange found Happy99.exe infected with W32/Ska.A.Worm virus. The file is currently Deleted. The message, "controller failure hosed raid5 array :-(", was sent from Gabor Tjong A Hung and was discovered in Public Folders\NAV for Microsoft Exchange-MONTANA\Quarantine located at E-DIALOG, INC./E-DIALOG_DOM/CORP-EXC1.
Multiple raid Arrays on the same disks
I plan to put 4 9Gb disks into a RAID array. I want more than one file system on this array so I decided to partition each disk and create multiple software raid arrays. Each raid array would have exactly one device entry for each physical disk (I included a copy of my raidtab file if that expanation is not quite clear). During bootup, I get the following error: My raidtab file looks as follows: raiddev /dev/md0 raid-level 5 nr-raid-disks 4 nr-spare-disks 0 persistent-superblock 1 parity-algorithmleft-symmetric chunk-size 32 device /dev/sda1 raid-disk 0 device /dev/sdb1 raid-disk 1 device /dev/sdc1 raid-disk 2 device /dev/sdd1 raid-disk 3 raiddev /dev/md1 raid-level 5 nr-raid-disks 4 nr-spare-disks 0 persistent-superblock 1 parity-algorithmleft-symmetric chunk-size 32 device /dev/sda2 raid-disk 0 device /dev/sdb2 raid-disk 1 device /dev/sdc2 raid-disk 2 device /dev/sdd2 raid-disk 3 -- Anthony Di Paola Systems Administrator Parametric Technology Corporation phone: (416) 593 4823 x 328 fax: (416) 593 4808
mkraid /dev/md0;; appears to have ext2 filesystem...
Hi there: Appreciate all the replies I got. One more question. [root@hostb120 /]# mkraid /dev/md0 handling MD device /dev/md0 analyzing super-block disk 0: /dev/hda7, 514048kB, raid superblock at 513984kB /dev/hda7 appears to contain an ext2 filesystem -- use -f to override mkraid: aborted, see the syslog and /proc/mdstat for potential clues. [root@hostb120 /]# I don't want to loose the data in /dev/hda7, so mkraid --really-force /dev/md0 is not a right thing to do. What should I do with this problem? Thanks. Jason cat /etc/raidtab raiddev /dev/md0 raid-level 1 nr-raid-disks 2 nr-spare-disks 0 chunk-size 4 device /dev/hda7 raid-disk 0 device /dev/hdc7 failed-disk 1 __ Do You Yahoo!? Send online invitations with Yahoo! Invites. http://invites.yahoo.com
Re: mkraid /dev/md0;; appears to have ext2 filesystem...
Jason Lin wrote: I don't want to loose the data in /dev/hda7, so mkraid --really-force /dev/md0 is not a right thing to do. What should I do with this problem? Thanks. Jason cat /etc/raidtab raiddev /dev/md0 raid-level 1 nr-raid-disks 2 nr-spare-disks 0 chunk-size 4 device /dev/hda7 raid-disk 0 device /dev/hdc7 failed-disk 1 If you don't want to lose the data on /dev/hda7, then you should make it the failed-disk to start off with. Also, put your /dev/hdc7 entry in first: device /dev/hdc7 raid-disk 0 device /dev/hda7 failed-disk 1 That should do it. Chris -- -Geek Code Block--Version 3.12-- GAT d- s: a- c$ UL++ P+ L+++ E--- W++ N++ o+ K-K--- w-- O-- M- V-- PS+ PE Y+ PGP t+@ 5+ X++ R* !tv b++ DI++ D++ G+ e* h* r y+ z+ -/Geek Code Block-
RAID-1 rescue
Dear all, I have a hot-plug SCSI modules installed in my Linux system. And I have two SCSI HD are running in RAID-1. One of the HDs fail. And I put back a new HD for replacement! How can I resync them? My current conf: RH 6.2 One '/' parition only two HD mirror the '/' After I re-plug back the HD, I type raidhotadd /dev/md0 /dev/sda1 Then it say no information of '/dev/sda1', it is logical, since there is no partition information in the HD. But how can I resync the new HD without stopping the machine and make the new HD can be boot up again? Thanks!