Author Topic: RAID problems...  (Read 4834 times)

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
RAID problems...
« on: February 07, 2008, 07:13:43 pm »
I just put in 3 1TB hard drives into my core.
I went in to the admin->advanced->RAID
I added a new raid array (raid 5)
I added a 3 drives (1TB each) and made sure none of them had a check mark under "as spare disk" (i have done this twice now)

But what happens is that 2 drives become active, and one becomes spare.. (I don't want a spare, I want a 3-disk raid5 array.. In fact, the minimum for a RAID 5 array is 3 drives, so I don't know how or why it is working with 2 active drives)


Also, the size come out to be 1863.03 GB, shouldn't it come out to be 2000.00 GB??

Is this a bug, or am I missing something?

Also, will LMCE alert me if a drive fails so I can rebuild the array with a new one?

teedge77

  • Addicted
  • *
  • Posts: 591
    • View Profile
Re: RAID problems...
« Reply #1 on: February 07, 2008, 07:46:45 pm »
you are definitely missing something. when you use 3 drives you only get the space of 2 (3rd drive isnt a hot spare but all three lose 1/3 for parity). look up raid 5 at wikipedia.com. also...it wont equal 2000 because of the fact some jackhole figured 1024 is better than 1000. so binary doesnt exactly equate to what the computer sees. have a look at those and youll understand why it is the way it is. ill see if i can find some links to explain it better.


(oh...and by all means the jackhole was right....it just screws everyone up  ;) its because the computer uses binary but people dont think that way. the link i added explains it better than i can)
« Last Edit: February 07, 2008, 08:00:52 pm by teedge77 »
AMD Athlon 64 X2 6000+
Asus M2V Via AM2 ATX
Lite-On LH-20A1S SATA DVD Burner
80GB  SATA-150
EVGA GeForce 7300 GT 512MB DDR2 PCI Express
Sound Blaster Audigy SE
Kingston 2 GB PC6400 DDR2 800MHz
Ultra X-Finity 800-Watt
ZCU000
Cisco 7970
TDM400P

teedge77

  • Addicted
  • *
  • Posts: 591
    • View Profile
Re: RAID problems...
« Reply #2 on: February 07, 2008, 07:51:47 pm »
« Last Edit: February 07, 2008, 09:23:59 pm by teedge77 »
AMD Athlon 64 X2 6000+
Asus M2V Via AM2 ATX
Lite-On LH-20A1S SATA DVD Burner
80GB  SATA-150
EVGA GeForce 7300 GT 512MB DDR2 PCI Express
Sound Blaster Audigy SE
Kingston 2 GB PC6400 DDR2 800MHz
Ultra X-Finity 800-Watt
ZCU000
Cisco 7970
TDM400P

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: RAID problems...
« Reply #3 on: February 07, 2008, 08:07:13 pm »
I know raid5 only uses n-1 of n disks for space..

Again, the problem is that for this to work you need a minimum of 3 disks... Only 2 are listed as active and 1 as spare. Shouldn't all 3 be active in order for the striped parity to work? I don't want a spare - if a disk on the array fails, I will go get a new one.
(Maybe i'm misunderstanding the meaning of spare in the admin - but on most RAID systems, all 3 disks are active in a 3-disk raid5 array (and yes, I know I will lose space of aproximately one disk due to the parity bytes).  I'm just confused as to why it is listed as spare in the admin is all.

Also, it has been several hours since building the array, the hard drive light is still on, and in the admin the array is still listed as "Degraded/Rebuilding" and the "spare" (as the admin is calling it) as Activating..

Should it take this long - considering it is a new array and there is no data to rebuild...?

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: RAID problems...
« Reply #4 on: February 07, 2008, 08:10:52 pm »
Actually, looking through the admin, I think I see what is going on..

It appears that the way LMCE creates the array is just confusing..  It is rebuilding the array..  It must just format 2 of the disks (which will tell the array that one drive has failed) and to add the 3rd drive it is rebuilding it into the array...

Very odd, but I think I see how its working now. I've just never seen it done this way..

teedge77

  • Addicted
  • *
  • Posts: 591
    • View Profile
Re: RAID problems...
« Reply #5 on: February 07, 2008, 08:24:17 pm »
sorry i was in a hurry. i reread where you said its still calling it a spare. ive never seen it do it like that either. ive only ever used hardware raid also though. you are using the linuxmce software raid right? so all three drives show up as active now right? it does seem weird it should take much time to rebuild with nothing on there.

did the space thing help?
AMD Athlon 64 X2 6000+
Asus M2V Via AM2 ATX
Lite-On LH-20A1S SATA DVD Burner
80GB  SATA-150
EVGA GeForce 7300 GT 512MB DDR2 PCI Express
Sound Blaster Audigy SE
Kingston 2 GB PC6400 DDR2 800MHz
Ultra X-Finity 800-Watt
ZCU000
Cisco 7970
TDM400P

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: RAID problems...
« Reply #6 on: February 07, 2008, 09:15:49 pm »
Still rebuilding...  About 4 hours into it... Admin shows it as 40%.  I'm guessing after its done rebulding, all 3 will show as active - but looks like it will take the rest of the day to figure out.
Yes, it is using the Raid in LMCE. I've never seen it like this either, but I haven't used a software RAID before either. Either its a bug, or it was decided to be the default behavior for LMCE. Would be nice to have an official word on this.

Thanks for the links. I do understand why computers use 1024 instead of 1000 (it is a square of 8), but I was suprised that I could lose 200 GB of space just to partition type overhead. I was really expecting to see much closer to 2000GB - oh well, you learn somethign new every day.

I will report back when it is done "rebuilding" my (not) damaged (and new) array to let you know if it all comes out well in the end.

thanks again

cirion

  • Guru
  • ****
  • Posts: 353
    • View Profile
Re: RAID problems...
« Reply #7 on: February 07, 2008, 09:16:55 pm »
I did the same thing a week ago with 3x750GB disks, and YES, it does mark the last drive as a spare while rebuilding (And that took a day).
If you try rebooting during this process it will restart... So let it finish.

It is actually usable while rebuilding, but then rebuilding just takes a lot longer time...

I'm quite satisfied with the Raid5 space on LinuxMCE. I have a Thecus with 3 disks also and that uses 100GB more space than linuxmce. (it created a 100GB swap partition :(

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: RAID problems...
« Reply #8 on: February 07, 2008, 09:27:58 pm »
thanks for the info..  Strange that it behaves this way... At minimum, it should be changed so the user is alerted that the array is building for the first time or something similar.
It has a progress bar in the beginning for formatting, but that only took 10 minutes or so. I had initially figured that it was finished after that step.

teedge77

  • Addicted
  • *
  • Posts: 591
    • View Profile
Re: RAID problems...
« Reply #9 on: February 07, 2008, 09:33:46 pm »
i started thinking maybe it should be more than 1800...i found this....and it says 1800 is right....sure is a lot when you think about how little drives used to be.

http://tomorrowtimes.blogspot.com/2007/08/hard-drive-capacity-calculator.html
AMD Athlon 64 X2 6000+
Asus M2V Via AM2 ATX
Lite-On LH-20A1S SATA DVD Burner
80GB  SATA-150
EVGA GeForce 7300 GT 512MB DDR2 PCI Express
Sound Blaster Audigy SE
Kingston 2 GB PC6400 DDR2 800MHz
Ultra X-Finity 800-Watt
ZCU000
Cisco 7970
TDM400P

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: RAID problems...
« Reply #10 on: February 07, 2008, 09:37:45 pm »
One more question about the LMCE RAID...

When I set it up, i had to option for the parent to be either "Core" or "Core/Hybrid"

I chose "Core", but, I wonder what the diference would have been choosing the other?

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: RAID problems...
« Reply #11 on: February 08, 2008, 02:33:30 am »
Just to follow up - After about a 7 hour "rebuild" process on the raid array , all 3 drives so show as "Active" now like they should be.


I still wonder if the implementation in the admin is flawed - these were new drives in a new array, so there should have been nothing to rebuild. I did this 2 times with the same results.