LinHES Forums http://forum.linhes.org/ |
|
Is my RAID 1 array working? http://forum.linhes.org/viewtopic.php?f=2&t=13000 |
Page 1 of 3 |
Author: | md10md [ Sat Dec 16, 2006 8:31 am ] |
Post subject: | Is my RAID 1 array working? |
I just recently got 2 320GB Seagate SATA Barracudas and put them in a hardware Raid 1 array on my Epox 9-HDAI Pro. The array shows that it is working and I KnoppMyth is successfully installed on it, but I'm not sure if everything is mirroring correctly. When I ran iostat on both drives I only get anything on the first one. It looks like: Code: root@mythtv:~# iostat /dev/sda /dev/sdb
Linux 2.6.17-chw-8 (mythtv) 12/16/06 avg-cpu: %user %nice %sys %iowait %idle 0.66 0.71 0.72 0.41 97.49 Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn sda 3.35 177.09 699.49 9598362 37913040 sdb 0.00 0.00 0.00 8 0 Is it just reading it weird because the HW is mirroring the data and not the OS? |
Author: | slowtolearn [ Sat Dec 16, 2006 11:07 am ] |
Post subject: | |
You should only see one disk. RAID-1 will present 1 drive to the OS (also referred to as virtual, logical, etc.). See http://www.acnc.com/raid.html for more information. |
Author: | md10md [ Sat Dec 16, 2006 12:01 pm ] |
Post subject: | |
Damn, that's what I thought. Is there a way to do this now that I have everything installed without messing everything up. I do not want to reinstall and I am open to a software solution. |
Author: | mad_paddler [ Sat Dec 16, 2006 12:15 pm ] |
Post subject: | |
You probably have what is known as a "fake raid" controller. In my experience linux tends to ignore them as linux software raid is generally better. |
Author: | md10md [ Sat Dec 16, 2006 12:17 pm ] |
Post subject: | |
mad_paddler wrote: You probably have what is known as a "fake raid" controller. In my experience linux tends to ignore them as linux software raid is generally better.
Argg... this is unfortunate. I just spent a while getting 30GB of files to transfer over and my drivers installed. Can I setup software raid with just 2 drives or should I have another to install the OS on. I'm not really in the mood for taking it all back apart and putting in another drive. |
Author: | slowtolearn [ Sun Dec 17, 2006 8:11 am ] |
Post subject: | |
md10md wrote: Damn, that's what I thought. Is there a way to do this now that I have everything installed without messing everything up. I do not want to reinstall and I am open to a software solution.
Huh? You said you "put them in a hardware Raid 1 array", what are you trying to accomplish? Configuring 2 drives in RAID-1 will present a single drive to any OS, what you are seeing is expected. So, what exactly are you trying to do? |
Author: | md10md [ Sun Dec 17, 2006 9:12 am ] |
Post subject: | |
slowtolearn wrote: md10md wrote: Damn, that's what I thought. Is there a way to do this now that I have everything installed without messing everything up. I do not want to reinstall and I am open to a software solution. Huh? You said you "put them in a hardware Raid 1 array", what are you trying to accomplish? Configuring 2 drives in RAID-1 will present a single drive to any OS, what you are seeing is expected. So, what exactly are you trying to do? I'm saying since the hardware solution did not work, but knoppmyth is already installed on one drive and working, is there a way to clone the current HD that is working to the one that is empty and get raid 1 working in software inside the OS without reinstalling knoppmyth and erasing everything. |
Author: | thornsoft [ Sun Dec 17, 2006 10:22 am ] |
Post subject: | |
md10md wrote: I'm saying since the hardware solution did not work
What makes you think it's not working? From reading this thread, it looks like it IS working, but you're just not being very appreciative! |
Author: | md10md [ Sun Dec 17, 2006 11:14 am ] |
Post subject: | |
thornsoft wrote: md10md wrote: I'm saying since the hardware solution did not work What makes you think it's not working? From reading this thread, it looks like it IS working, but you're just not being very appreciative! I'm not sure I understand. In the second post, slowtolearn said that raid 1 should only appear as 1 disk where as for me it's appearing as two seperate ones of which only one is showing any I/O activity. I was under the impression that it was not working in its current state. |
Author: | slowtolearn [ Sun Dec 17, 2006 11:45 am ] |
Post subject: | |
Sorry if my post sounded like that, it's not what I intended. You stated you configured 2 drives into a RAID-1. You should only see 1 drive, as there is only 1 drive presented to the OS. Quote: appearing as two seperate ones of which only one is showing any I/O activity. No, you are misinterpreting the output. You physically have only 1 drive, which is the synced pair of 320Gb drives. You don't have a /dev/sdb. It's the hardware's job to keep the two in sync...
Now, if it were a RAID-0 configuration, that would be a different story. I would suggest perusing the link I posted earlier, as well as this one http://www.storagereview.com/guide2000/ref/hdd/perf/raid/index.html which gives a fairly good overview of RAID while not getting too deep. |
Author: | md10md [ Sun Dec 17, 2006 5:34 pm ] |
Post subject: | |
slowtolearn wrote: Sorry if my post sounded like that, it's not what I intended. You stated you configured 2 drives into a RAID-1. You should only see 1 drive, as there is only 1 drive presented to the OS.
Quote: appearing as two seperate ones of which only one is showing any I/O activity. No, you are misinterpreting the output. You physically have only 1 drive, which is the synced pair of 320Gb drives. You don't have a /dev/sdb. It's the hardware's job to keep the two in sync...Now, if it were a RAID-0 configuration, that would be a different story. I would suggest perusing the link I posted earlier, as well as this one http://www.storagereview.com/guide2000/ref/hdd/perf/raid/index.html which gives a fairly good overview of RAID while not getting too deep. But I see two. If I go in to cfdisk I can see that /dev/sdb is empty and /dev/sda is the only one operating. |
Author: | slowtolearn [ Mon Dec 18, 2006 2:59 pm ] |
Post subject: | |
md10md wrote: But I see two. If I go in to cfdisk I can see that /dev/sdb is empty and /dev/sda is the only one operating.
Really? Then it would appear that the hardware RAID is misconfigured. If you run Code: dmesg | grep hd what is returned?
Unfortunately I don't know any tricks to save the existing data when configuring an array - Most RAID utilities will wipe the drives upon initilization of the array (or at least they used to, not sure about the more current ones. You should check with your RAID controller's manufacturer for options). |
Author: | md10md [ Mon Dec 18, 2006 3:02 pm ] |
Post subject: | |
I get: Code: root@mythtv:~# dmesg | grep hd
ide0: BM-DMA at 0xe300-0xe307, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0xe308-0xe30f, BIOS settings: hdc:pio, hdd:pio hda: _NEC DV-5700A, ATAPI CD/DVD-ROM drive hda: ATAPI 40X DVD-ROM drive, 256kB Cache, UDMA(33) SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB) SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB) SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB) SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB) |
Author: | slowtolearn [ Mon Dec 18, 2006 3:21 pm ] |
Post subject: | |
That certainly doesn't look right, with the double entries for each disk (SATA huh? Sorry, missed that part in the first post). As mad_paddler mentioned you may have a pseudo-hardware controller on that motherboard, you should check with the manufacturer to be sure it's properly supported in Linux. Does it match anything on the list found here http://linux-ata.org/faq-sata-raid.html ? Keep in mind this may not be completely up-to-date. |
Author: | md10md [ Mon Dec 18, 2006 3:28 pm ] |
Post subject: | |
Exactly, I'm just really confused on how to setup a RAID array where everything is mirrored. So far it seems as if hardware RAID is required, or I need a non-raid drive to install software RAID to. Any solutions? |
Page 1 of 3 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |