[asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-20 Thread Vidura Senadeera
Dear All,

I would like to get community's feedback with regard to RAID1 ( Software or
Hardware) implementations with asterisk.

This is my setup

Motherboard with SATA RAID1 support
CENT OS 4.4
Asterisk 1.2.19
Libpri/zaptel latest release
2.8 Ghz Intel processor
2 80 GB SATA Hard disks
256 MB RAM
digium PRI/E1 card

Following are the concerns I am having

I'm planing to put this asterisk server in production enviorment which is
having E1 connection to the asterisk server, approximately
20 con-current calls, Music on hold, voice mail boxes.

1. If I use Software RAID, what would be the impact to my deployment?
( problems that I have to face with regard to the call flow )
2. If I use Hardware based RAID 1, what would be the impact to the system?
3. According to your practical experiance what is the ideal solution among
both options?

I will be highly appreciate your feedback on this regard.


-- 
Thanks & Regards,
Vidura Senadeera,
___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-20 Thread C F
While hardware RAID tend to be more reliable, it is not always
possible to properly monitor hardware raid in a linux system, unless
you write your own code.
Consider this:
~# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb2[2](F) sda2[1]
  76139968 blocks [2/1] [_U]

unused devices: 

The above is from an active system that one hdd failed. It would take
way longer to find such a thing on a hardware raid. Unless it came
with a program that emails me notification on such a failure.

On 8/20/07, Vidura Senadeera <[EMAIL PROTECTED]> wrote:
>
> Dear All,
>
> I would like to get community's feedback with regard to RAID1 ( Software or
> Hardware) implementations with asterisk.
>
> This is my setup
>
> Motherboard with SATA RAID1 support
> CENT OS 4.4
> Asterisk 1.2.19
> Libpri/zaptel latest release
> 2.8 Ghz Intel processor
> 2 80 GB SATA Hard disks
> 256 MB RAM
> digium PRI/E1 card
>
> Following are the concerns I am having
>
> I'm planing to put this asterisk server in production enviorment which is
> having E1 connection to the asterisk server, approximately
> 20 con-current calls, Music on hold, voice mail boxes.
>
> 1. If I use Software RAID, what would be the impact to my deployment? (
> problems that I have to face with regard to the call flow )
> 2. If I use Hardware based RAID 1, what would be the impact to the system?
> 3. According to your practical experiance what is the ideal solution among
> both options?
>
> I will be highly appreciate your feedback on this regard.
>
>
> --
> Thanks & Regards,
> Vidura Senadeera,
>
> ___
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>
> http://lists.digium.com/mailman/listinfo/asterisk-users
>

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-21 Thread Gordon Henderson
On Tue, 21 Aug 2007, Vidura Senadeera wrote:

> Dear All,
>
> I would like to get community's feedback with regard to RAID1 ( Software or
> Hardware) implementations with asterisk.
>
> This is my setup
>
> Motherboard with SATA RAID1 support
> CENT OS 4.4
> Asterisk 1.2.19
> Libpri/zaptel latest release
> 2.8 Ghz Intel processor
> 2 80 GB SATA Hard disks
> 256 MB RAM
> digium PRI/E1 card
>
> Following are the concerns I am having
>
> I'm planing to put this asterisk server in production enviorment which is
> having E1 connection to the asterisk server, approximately
> 20 con-current calls, Music on hold, voice mail boxes.
>
> 1. If I use Software RAID, what would be the impact to my deployment?
> ( problems that I have to face with regard to the call flow )
> 2. If I use Hardware based RAID 1, what would be the impact to the system?
> 3. According to your practical experiance what is the ideal solution among
> both options?

With my other hat on I build and maintain many servers with disk 
capacities ranging from 80GB to over 6TB... All using Linux software RAID. 
I've been using Linux s/w RAID for over 8 years now.

So with RAID-1 done in hardware, the impact to the system, CPU, etc. 
should be no more (or less) than running a single SCSI or SATA drive. You 
write the data over the (PCI) bus once and the hardware takes care of 
writing it to both drives behind your back. Similarly for reading (where 
it might only read from one drive or from alternative drives) you only see 
one transaction over the PCI bus.

You do (sometimes) need the hardware RAID controller to be supported by 
Linux and this is a weak area. Some controllers just look like a standard 
drive, so they are transparent to the system, but then you need to use 
either the BIOS utilities to set it up in the first place, or (typically) 
a Windows utility, although some controllers are now being supported by 
Linux with user-land tools to manage and check the arrays.

Doing it in software requires double the PCI bandwidth for writes, but the 
same as a single drive or hardware controller for reads. AIUI, the current 
software RAID-1 reads alternatively from the disks. So on writes. The 
overhead in terms of CPU power is minimal - write the same block twice, 
and if the hardware is good, then both writes can be transfered over the 
PCI bus rapidly, into the cache on the drives and the writes then take 
place in parallel, so performance wise, it's really no worse than single 
drive (and it's important to note than it's no better than a single drive 
on reads too, despite many threads on the linux-raid list suggesting 
otherwise!)

RAID-1 doesn't require parity calculations, so the software overhead 
really is quite small (especially when you compare it to the relatively 
huge times it takes to actually get the data to/from the disks)

So things that are important: Make sure the hardware to each drive is as 
independent as possible. Hard to do these days as there is probably only 
one SATA controller chip on the motherboard. You also need to see what 
happens when a drive dies - is it going to crowbar the entire SATA chip 
and block the other drive? Is the driver going to recognise it quickly 
enough and so on. (Some early SATA drives weren't good at this)

And the "usual" - make sure all the hardware has it's own interrupts.

For the absolute maximun performance, (and minimum overheard) then you 
need a motherboard with multiple PCI buses - put the disks on one bus, the 
PRI card on another.

If terms of disk b/w needed - if we're using g711, then it's 64KB/sec, and 
20 calls streaming to voicemail is 1.3MB/sec. A single modern drive ought 
to be able to sustain 60MB/sec read or writes, so there is plenty of 
overhead, as long as asterisk is relatively sensible about buffering disk 
write/reads (which I think it is)

So I'd say "go for it", but do take the time, if possible to build a 
custom kernel for your hardware, and at the BIOS level, turn off all 
drivers that you won't be using - eg. on-board sound, then 2nd network 
port, USB (if you're not using it, don't enable it!) and so on, and make 
sure you have a custom compiled kernel for your exact hardware 
requirements with no modules loaded other than the Zap/TDM, etc., ones.

And I'd also say "go for it" because I have similarly specd. servers doing 
similar tasks also running asterisk. I won't put a server in a remote data 
centre these days without it either booting off flash, or using at least 
RAID-1.

Remember to put your swap on RAID-1 too.

Here is one of my servers in a similar setup to yours:

$ cat /proc/mdstat
Personalities : [raid0] [raid1]
md1 : active raid1 hdc1[1] hda1[0]
   248896 blocks [2/2] [UU]

md2 : active raid1 hdc2[1] hda2[0]
   995904 blocks [2/2] [UU]

md3 : active raid1 hdc3[1] hda3[0]
   200 blocks [2/2] [UU]

md5 : active raid1 hdc5[1] hda5[0]
   38081984 blocks [2/2] [UU]

md6 : active raid1 hdc6[1] hda6[0]
   38708480 blocks [2/2] [UU]

Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-21 Thread Russ Price
C F wrote:
> ~# cat /proc/mdstat
> Personalities : [raid1]
> md0 : active raid1 sdb2[2](F) sda2[1]
>   76139968 blocks [2/1] [_U]
> 
> unused devices: 
> 
> The above is from an active system that one hdd failed. It would take
> way longer to find such a thing on a hardware raid. Unless it came
> with a program that emails me notification on such a failure.

Also, speaking of email notifications, the mdadm program that controls 
Linux software RAID has a monitor mode with that capability. One of my 
own systems is a file server that had four 120GB SATA drives in software 
RAID5 configuration, using a pair of PCI controller cards. A few months 
back, one of the drives failed (shortly after the three-year warranty 
expired, hm), and I got a note in my inbox about it. The array 
continued running in degraded mode, so I made one last backup, replaced 
the old drives with three 500 GB units (again in RAID5), and restored 
the contents onto the new array.

Of course, once this array gets full enough, I'm going to have to get 
one of those 1 TB drives in an eSATA enclosure to back things up. USB2 
is too slow now. :/ At least the new drives have five-year warranties - 
hopefully they should hold up at least that long.

Russ

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-21 Thread Zane C.B.
On Tue, 21 Aug 2007 07:33:23 +0530
"Vidura Senadeera" <[EMAIL PROTECTED]> wrote:

> Dear All,
> 
> I would like to get community's feedback with regard to RAID1
> ( Software or Hardware) implementations with asterisk.
> 
> This is my setup
> 
> Motherboard with SATA RAID1 support
> CENT OS 4.4
> Asterisk 1.2.19
> Libpri/zaptel latest release
> 2.8 Ghz Intel processor
> 2 80 GB SATA Hard disks
> 256 MB RAM
> digium PRI/E1 card
> 
> Following are the concerns I am having
> 
> I'm planing to put this asterisk server in production enviorment
> which is having E1 connection to the asterisk server, approximately
> 20 con-current calls, Music on hold, voice mail boxes.
> 
> 1. If I use Software RAID, what would be the impact to my
> deployment? ( problems that I have to face with regard to the call
> flow ) 2. If I use Hardware based RAID 1, what would be the impact
> to the system? 3. According to your practical experiance what is
> the ideal solution among both options?
> 
> I will be highly appreciate your feedback on this regard.

1: Software RAID on Linux is way less than impressive. Plus last a I
checked Linux can't handle mirroring a entire disk. Last I looked at
it around a year ago you were limited to only mirroring partitions,
which is a joke from a administrative standpoint.
2: No real impact other than a bad disk won't mean a reinstall.
3: On Linux, go hardware. On FreeBSD it is personal choice.

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-21 Thread Dave Fullerton
Zane C.B. wrote:
> On Tue, 21 Aug 2007 07:33:23 +0530
> "Vidura Senadeera" <[EMAIL PROTECTED]> wrote:
> 
>> Dear All,
>>
>> I would like to get community's feedback with regard to RAID1
>> ( Software or Hardware) implementations with asterisk.
>>
>> This is my setup
>>
>> Motherboard with SATA RAID1 support
>> CENT OS 4.4
>> Asterisk 1.2.19
>> Libpri/zaptel latest release
>> 2.8 Ghz Intel processor
>> 2 80 GB SATA Hard disks
>> 256 MB RAM
>> digium PRI/E1 card
>>
>> Following are the concerns I am having
>>
>> I'm planing to put this asterisk server in production enviorment
>> which is having E1 connection to the asterisk server, approximately
>> 20 con-current calls, Music on hold, voice mail boxes.
>>
>> 1. If I use Software RAID, what would be the impact to my
>> deployment? ( problems that I have to face with regard to the call
>> flow ) 2. If I use Hardware based RAID 1, what would be the impact
>> to the system? 3. According to your practical experiance what is
>> the ideal solution among both options?
>>
>> I will be highly appreciate your feedback on this regard.
> 
> 1: Software RAID on Linux is way less than impressive. Plus last a I
> checked Linux can't handle mirroring a entire disk. Last I looked at
> it around a year ago you were limited to only mirroring partitions,
> which is a joke from a administrative standpoint.
> 2: No real impact other than a bad disk won't mean a reinstall.
> 3: On Linux, go hardware. On FreeBSD it is personal choice.

You can (sort of) run raid on an entire disk, but you have to use LVM. 
You basically create a single partition on the disk, run raid on that 
partition and then use LVM with the /dev/md? device as a physical volume 
that you can then "partition" with LVM.

-Dave



___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-21 Thread Steve Totaro
I thought that was what the flashing LEDs on the front of the server's 
HDs were for (besides showing activity). Some I have seen also have an 
LED near the power button to indicate HD problems.

I guess if you are building your own boxen and not using enterprise 
grade servers, this is not the case.

Thanks,
Steve Totaro

C F wrote:
> While hardware RAID tend to be more reliable, it is not always
> possible to properly monitor hardware raid in a linux system, unless
> you write your own code.
> Consider this:
> ~# cat /proc/mdstat
> Personalities : [raid1]
> md0 : active raid1 sdb2[2](F) sda2[1]
>   76139968 blocks [2/1] [_U]
>
> unused devices: 
>
> The above is from an active system that one hdd failed. It would take
> way longer to find such a thing on a hardware raid. Unless it came
> with a program that emails me notification on such a failure.
>
> On 8/20/07, Vidura Senadeera <[EMAIL PROTECTED]> wrote:
>   
>> Dear All,
>>
>> I would like to get community's feedback with regard to RAID1 ( Software or
>> Hardware) implementations with asterisk.
>>
>> This is my setup
>>
>> Motherboard with SATA RAID1 support
>> CENT OS 4.4
>> Asterisk 1.2.19
>> Libpri/zaptel latest release
>> 2.8 Ghz Intel processor
>> 2 80 GB SATA Hard disks
>> 256 MB RAM
>> digium PRI/E1 card
>>
>> Following are the concerns I am having
>>
>> I'm planing to put this asterisk server in production enviorment which is
>> having E1 connection to the asterisk server, approximately
>> 20 con-current calls, Music on hold, voice mail boxes.
>>
>> 1. If I use Software RAID, what would be the impact to my deployment? (
>> problems that I have to face with regard to the call flow )
>> 2. If I use Hardware based RAID 1, what would be the impact to the system?
>> 3. According to your practical experiance what is the ideal solution among
>> both options?
>>
>> I will be highly appreciate your feedback on this regard.
>>
>>
>> --
>> Thanks & Regards,
>> Vidura Senadeera,
>>
>>
>> 
>
>   


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-21 Thread Gordon Henderson
On Tue, 21 Aug 2007, Steve Totaro wrote:

> I thought that was what the flashing LEDs on the front of the server's
> HDs were for (besides showing activity). Some I have seen also have an
> LED near the power button to indicate HD problems.
>
> I guess if you are building your own boxen and not using enterprise
> grade servers, this is not the case.

Some of us take "enterprise grade servers", but decide to not use some of 
the facilities they offer - for a whole host of reasons. Eg. right now 
Dell[1] don't offer RAID-6 in hardware, so I do it in software, bypassing 
their on-board RAID-5 controllers.

And when a server's 300 miles away (as some of mine are) a blinky light 
isn't much use )-:

Gordon

[1] Not that I particulatly regard Dell as "enterprise grade" but that's 
for another list, and was just using it as an example here.

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-21 Thread Arnaud Ligot
My servers run in a datacenter, 50km away from my office... if a led
flash, if the speaker beep... I think I'll not see/hear it ...

My servers are monitored using nagios which has a plugin for software
raid... so if one array goes down, I receive a mail/sms/call/...
futher more, everything is on the same panel: raid, http servers, free
disk space, ...

I think it is better than any led flashing into the DC :-D

A.

On Tue, 2007-08-21 at 10:30 -0400, Steve Totaro wrote:
> I thought that was what the flashing LEDs on the front of the server's 
> HDs were for (besides showing activity). Some I have seen also have an 
> LED near the power button to indicate HD problems.
> 
> I guess if you are building your own boxen and not using enterprise 
> grade servers, this is not the case.
> 
> Thanks,
> Steve Totaro
> 
> C F wrote:
> > While hardware RAID tend to be more reliable, it is not always
> > possible to properly monitor hardware raid in a linux system, unless
> > you write your own code.
> > Consider this:
> > ~# cat /proc/mdstat
> > Personalities : [raid1]
> > md0 : active raid1 sdb2[2](F) sda2[1]
> >   76139968 blocks [2/1] [_U]
> >
> > unused devices: 
> >
> > The above is from an active system that one hdd failed. It would take
> > way longer to find such a thing on a hardware raid. Unless it came
> > with a program that emails me notification on such a failure.
> >
> > On 8/20/07, Vidura Senadeera <[EMAIL PROTECTED]> wrote:
> >   
> >> Dear All,
> >>
> >> I would like to get community's feedback with regard to RAID1 ( Software or
> >> Hardware) implementations with asterisk.
> >>
> >> This is my setup
> >>
> >> Motherboard with SATA RAID1 support
> >> CENT OS 4.4
> >> Asterisk 1.2.19
> >> Libpri/zaptel latest release
> >> 2.8 Ghz Intel processor
> >> 2 80 GB SATA Hard disks
> >> 256 MB RAM
> >> digium PRI/E1 card
> >>
> >> Following are the concerns I am having
> >>
> >> I'm planing to put this asterisk server in production enviorment which is
> >> having E1 connection to the asterisk server, approximately
> >> 20 con-current calls, Music on hold, voice mail boxes.
> >>
> >> 1. If I use Software RAID, what would be the impact to my deployment? (
> >> problems that I have to face with regard to the call flow )
> >> 2. If I use Hardware based RAID 1, what would be the impact to the system?
> >> 3. According to your practical experiance what is the ideal solution among
> >> both options?
> >>
> >> I will be highly appreciate your feedback on this regard.
> >>
> >>
> >> --
> >> Thanks & Regards,
> >> Vidura Senadeera,
> >>
> >>
> >> 
> >
> >   
> 
> 
> ___
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-21 Thread Steve Totaro
I guess I am just lucky to have 24 hour manned data centers with staff 
that walk around looking for flashing LEDs.

I am sure there is some error thrown in /var/log/messages about a 
failure that could be used to trigger a notification quite trivially.

Thanks,
Steve

Arnaud Ligot wrote:
> My servers run in a datacenter, 50km away from my office... if a led
> flash, if the speaker beep... I think I'll not see/hear it ...
>
> My servers are monitored using nagios which has a plugin for software
> raid... so if one array goes down, I receive a mail/sms/call/...
> futher more, everything is on the same panel: raid, http servers, free
> disk space, ...
>
> I think it is better than any led flashing into the DC :-D
>
> A.
>
> On Tue, 2007-08-21 at 10:30 -0400, Steve Totaro wrote:
>   
>> I thought that was what the flashing LEDs on the front of the server's 
>> HDs were for (besides showing activity). Some I have seen also have an 
>> LED near the power button to indicate HD problems.
>>
>> I guess if you are building your own boxen and not using enterprise 
>> grade servers, this is not the case.
>>
>> Thanks,
>> Steve Totaro
>>
>> C F wrote:
>> 
>>> While hardware RAID tend to be more reliable, it is not always
>>> possible to properly monitor hardware raid in a linux system, unless
>>> you write your own code.
>>> Consider this:
>>> ~# cat /proc/mdstat
>>> Personalities : [raid1]
>>> md0 : active raid1 sdb2[2](F) sda2[1]
>>>   76139968 blocks [2/1] [_U]
>>>
>>> unused devices: 
>>>
>>> The above is from an active system that one hdd failed. It would take
>>> way longer to find such a thing on a hardware raid. Unless it came
>>> with a program that emails me notification on such a failure.
>>>
>>> On 8/20/07, Vidura Senadeera <[EMAIL PROTECTED]> wrote:
>>>   
>>>   
 Dear All,

 I would like to get community's feedback with regard to RAID1 ( Software or
 Hardware) implementations with asterisk.

 This is my setup

 Motherboard with SATA RAID1 support
 CENT OS 4.4
 Asterisk 1.2.19
 Libpri/zaptel latest release
 2.8 Ghz Intel processor
 2 80 GB SATA Hard disks
 256 MB RAM
 digium PRI/E1 card

 Following are the concerns I am having

 I'm planing to put this asterisk server in production enviorment which is
 having E1 connection to the asterisk server, approximately
 20 con-current calls, Music on hold, voice mail boxes.

 1. If I use Software RAID, what would be the impact to my deployment? (
 problems that I have to face with regard to the call flow )
 2. If I use Hardware based RAID 1, what would be the impact to the system?
 3. According to your practical experiance what is the ideal solution among
 both options?

 I will be highly appreciate your feedback on this regard.


 --
 Thanks & Regards,
 Vidura Senadeera,


 
 
>>>   
>>>   
>> ___
>> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>http://lists.digium.com/mailman/listinfo/asterisk-users
>> 
>
> ___
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>   


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-22 Thread Richard Scobie


Steve Totaro wrote:
> I guess I am just lucky to have 24 hour manned data centers with staff 
> that walk around looking for flashing LEDs.
> 
> I am sure there is some error thrown in /var/log/messages about a 
> failure that could be used to trigger a notification quite trivially.
> 

Both smartd and mdadm can be configured to send emails.

Regards,

Richard

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-22 Thread Steven
For RAID1, I am not sure.

But for RAID 5, You should always use hardware RAID.

If you use software RAID and your CPU spikes for too long, you can corrupt your 
disks. I have seen this several times.


-- 
-- 
Steven

http://www.glimasoutheast.org



  "Vidura Senadeera" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

  Dear All,

  I would like to get community's feedback with regard to RAID1 ( Software or 
Hardware) implementations with asterisk.

  This is my setup

  Motherboard with SATA RAID1 support
  CENT OS 4.4
  Asterisk 1.2.19
  Libpri/zaptel latest release
  2.8 Ghz Intel processor
  2 80 GB SATA Hard disks
  256 MB RAM
  digium PRI/E1 card

  Following are the concerns I am having

  I'm planing to put this asterisk server in production enviorment which is 
having E1 connection to the asterisk server, approximately
  20 con-current calls, Music on hold, voice mail boxes.

  1. If I use Software RAID, what would be the impact to my deployment? ( 
problems that I have to face with regard to the call flow )
  2. If I use Hardware based RAID 1, what would be the impact to the system?
  3. According to your practical experiance what is the ideal solution among 
both options?

  I will be highly appreciate your feedback on this regard.


  -- 
  Thanks & Regards,
  Vidura Senadeera,
   


--


  ___
  --Bandwidth and Colocation Provided by http://www.api-digital.com--

  asterisk-users mailing list
  To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-22 Thread Gordon Henderson
On Wed, 22 Aug 2007, Steven wrote:

> For RAID1, I am not sure.
>
> But for RAID 5, You should always use hardware RAID.
>
> If you use software RAID and your CPU spikes for too long, you can 
> corrupt your disks. I have seen this several times.

Please report this to the linux-raid mailling list, especially if you can 
repeat it.

But I have to say, I've been using linux-raid for 8 years on some 
seriously overused/abused servers and *never* had disk corruption in all 
those years that I couldn't track down to a hardware problem.

Gordon

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-22 Thread shadowym
I've gotten burned by software raid so I'll probably be sticking with
hardware in the future.  If your drive dies for some reason it could affect
the SATA bus and cause the system to crash.  That's what happened to me.  It
wouldn't come back up on the second Raid 1 drive until I removed the bad
one.

With hardware raid that would NEVER happen.  They are designed to isolate
the Sata interface of a drive gone bad and just keep on running.

Are there Hardware Raid cards that don't come with software for monitoring
and emailing warnings?  I know the 3ware cards come with linux software that
can run as a web interface or command line so the whole monitoring argument
is mute IMHO.

-Original Message-
From: Arnaud Ligot [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 21, 2007 12:45 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

My servers run in a datacenter, 50km away from my office... if a led
flash, if the speaker beep... I think I'll not see/hear it ...

My servers are monitored using nagios which has a plugin for software
raid... so if one array goes down, I receive a mail/sms/call/...
futher more, everything is on the same panel: raid, http servers, free
disk space, ...

I think it is better than any led flashing into the DC :-D

A.

On Tue, 2007-08-21 at 10:30 -0400, Steve Totaro wrote:
> I thought that was what the flashing LEDs on the front of the server's 
> HDs were for (besides showing activity). Some I have seen also have an 
> LED near the power button to indicate HD problems.
> 
> I guess if you are building your own boxen and not using enterprise 
> grade servers, this is not the case.
> 
> Thanks,
> Steve Totaro
> 
> C F wrote:
> > While hardware RAID tend to be more reliable, it is not always
> > possible to properly monitor hardware raid in a linux system, unless
> > you write your own code.
> > Consider this:
> > ~# cat /proc/mdstat
> > Personalities : [raid1]
> > md0 : active raid1 sdb2[2](F) sda2[1]
> >   76139968 blocks [2/1] [_U]
> >
> > unused devices: 
> >
> > The above is from an active system that one hdd failed. It would take
> > way longer to find such a thing on a hardware raid. Unless it came
> > with a program that emails me notification on such a failure.
> >
> > On 8/20/07, Vidura Senadeera <[EMAIL PROTECTED]> wrote:
> >   
> >> Dear All,
> >>
> >> I would like to get community's feedback with regard to RAID1 (
Software or
> >> Hardware) implementations with asterisk.
> >>
> >> This is my setup
> >>
> >> Motherboard with SATA RAID1 support
> >> CENT OS 4.4
> >> Asterisk 1.2.19
> >> Libpri/zaptel latest release
> >> 2.8 Ghz Intel processor
> >> 2 80 GB SATA Hard disks
> >> 256 MB RAM
> >> digium PRI/E1 card
> >>
> >> Following are the concerns I am having
> >>
> >> I'm planing to put this asterisk server in production enviorment which
is
> >> having E1 connection to the asterisk server, approximately
> >> 20 con-current calls, Music on hold, voice mail boxes.
> >>
> >> 1. If I use Software RAID, what would be the impact to my deployment? (
> >> problems that I have to face with regard to the call flow )
> >> 2. If I use Hardware based RAID 1, what would be the impact to the
system?
> >> 3. According to your practical experiance what is the ideal solution
among
> >> both options?
> >>
> >> I will be highly appreciate your feedback on this regard.
> >>
> >>
> >> --
> >> Thanks & Regards,
> >> Vidura Senadeera,
> >>
> >>
> >> 
> >
> >   
> 
> 
> ___
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users




___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-22 Thread Stephen Bosch
Gordon Henderson wrote:
> You do (sometimes) need the hardware RAID controller to be supported by 
> Linux and this is a weak area. Some controllers just look like a standard 
> drive, so they are transparent to the system, but then you need to use 
> either the BIOS utilities to set it up in the first place, or (typically) 
> a Windows utility, although some controllers are now being supported by 
> Linux with user-land tools to manage and check the arrays.

Most proper (ie, not fakeraid) RAID controllers support Linux now. They
are practically unsellable if they do not.

-Stephen-

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-22 Thread Stephen Bosch
Zane C.B. wrote:
> 1: Software RAID on Linux is way less than impressive. Plus last a I
> checked Linux can't handle mirroring a entire disk. Last I looked at
> it around a year ago you were limited to only mirroring partitions,
> which is a joke from a administrative standpoint.

How is this any different in FreeBSD?

Could you explain to me how else you are going to mirror an entire disk
in software when your boot partition is on the disk?

-Stephen-

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-23 Thread Zane C.B.
On Tue, 21 Aug 2007 09:50:57 -0400
Dave Fullerton <[EMAIL PROTECTED]> wrote:

> Zane C.B. wrote:
> > On Tue, 21 Aug 2007 07:33:23 +0530
> > "Vidura Senadeera" <[EMAIL PROTECTED]> wrote:
> > 
> >> Dear All,
> >>
> >> I would like to get community's feedback with regard to RAID1
> >> ( Software or Hardware) implementations with asterisk.
> >>
> >> This is my setup
> >>
> >> Motherboard with SATA RAID1 support
> >> CENT OS 4.4
> >> Asterisk 1.2.19
> >> Libpri/zaptel latest release
> >> 2.8 Ghz Intel processor
> >> 2 80 GB SATA Hard disks
> >> 256 MB RAM
> >> digium PRI/E1 card
> >>
> >> Following are the concerns I am having
> >>
> >> I'm planing to put this asterisk server in production enviorment
> >> which is having E1 connection to the asterisk server,
> >> approximately 20 con-current calls, Music on hold, voice mail
> >> boxes.
> >>
> >> 1. If I use Software RAID, what would be the impact to my
> >> deployment? ( problems that I have to face with regard to the
> >> call flow ) 2. If I use Hardware based RAID 1, what would be the
> >> impact to the system? 3. According to your practical experiance
> >> what is the ideal solution among both options?
> >>
> >> I will be highly appreciate your feedback on this regard.
> > 
> > 1: Software RAID on Linux is way less than impressive. Plus last
> > a I checked Linux can't handle mirroring a entire disk. Last I
> > looked at it around a year ago you were limited to only mirroring
> > partitions, which is a joke from a administrative standpoint.
> > 2: No real impact other than a bad disk won't mean a reinstall.
> > 3: On Linux, go hardware. On FreeBSD it is personal choice.
> 
> You can (sort of) run raid on an entire disk, but you have to use
> LVM. You basically create a single partition on the disk, run raid
> on that partition and then use LVM with the /dev/md? device as a
> physical volume that you can then "partition" with LVM.

Yeah, still a ugly solution though.

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-23 Thread Zane C.B.
On Wed, 22 Aug 2007 12:37:26 -0600
Stephen Bosch <[EMAIL PROTECTED]> wrote:

> Zane C.B. wrote:
> > 1: Software RAID on Linux is way less than impressive. Plus last
> > a I checked Linux can't handle mirroring a entire disk. Last I
> > looked at it around a year ago you were limited to only mirroring
> > partitions, which is a joke from a administrative standpoint.
> 
> How is this any different in FreeBSD?
> 
> Could you explain to me how else you are going to mirror an entire
> disk in software when your boot partition is on the disk?

The raid info is done the same as on other decent system, it is stored
at the in the last sector of the provider.

making a mirrored freebsd system is like this...
1: install freebsd
2: dd if= of=<2nd drive for mirror>
3: gmirror label  <2nd drive>
4: mount 2nd drive and edit fstab to boot
using /dev/gmirror/
5: boot from 2nd drive
6: gmirror insert  


/me loves GEOM, the goddess of all disk subsystems or whatever.

http://www.freebsd.org/cgi/man.cgi?query=gmirror&apropos=0&sektion=0&manpath=FreeBSD+6.2-RELEASE&format=html

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-24 Thread shadowym
Still true on CentOS 5.  You can only RAID partitions unless you do the LVM
thing.  What are the disadvantages compared to being able to RAID the whole
disk? Maybe for monitoring it's just more to deal with but does it make a
RAID 1 any less reliable?

-Original Message-
From: Zane C.B. [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 23, 2007 9:06 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

On Wed, 22 Aug 2007 12:37:26 -0600
Stephen Bosch <[EMAIL PROTECTED]> wrote:

> Zane C.B. wrote:
> > 1: Software RAID on Linux is way less than impressive. Plus last
> > a I checked Linux can't handle mirroring a entire disk. Last I
> > looked at it around a year ago you were limited to only mirroring
> > partitions, which is a joke from a administrative standpoint.
> 
> How is this any different in FreeBSD?
> 
> Could you explain to me how else you are going to mirror an entire
> disk in software when your boot partition is on the disk?

The raid info is done the same as on other decent system, it is stored
at the in the last sector of the provider.

making a mirrored freebsd system is like this...
1: install freebsd
2: dd if= of=<2nd drive for mirror>
3: gmirror label  <2nd drive>
4: mount 2nd drive and edit fstab to boot
using /dev/gmirror/
5: boot from 2nd drive
6: gmirror insert  


/me loves GEOM, the goddess of all disk subsystems or whatever.

http://www.freebsd.org/cgi/man.cgi?query=gmirror&apropos=0&sektion=0&manpath
=FreeBSD+6.2-RELEASE&format=html




___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-25 Thread Andrew Joakimsen
On 8/20/07, Vidura Senadeera <[EMAIL PROTECTED]> wrote:

> Motherboard with SATA RAID1 support

That's a mulit-port SATA controller with RAID in the driver (software).

> 256 MB RAM
Use a little more RAM.


> digium PRI/E1 card
Is there any reason you aren't using Sangoma cards?

> 1. If I use Software RAID, what would be the impact to my deployment? (
> problems that I have to face with regard to the call flow )

None.

> 2. If I use Hardware based RAID 1, what would be the impact to the system?

A PCI slot.

> 3. According to your practical experiance what is the ideal solution among
> both options?

Software RAID works fine.

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-08-26 Thread Stephen Bosch
Zane C.B. wrote:
> On Wed, 22 Aug 2007 12:37:26 -0600
> Stephen Bosch <[EMAIL PROTECTED]> wrote:
> 
>> Zane C.B. wrote:
>>> 1: Software RAID on Linux is way less than impressive. Plus last
>>> a I checked Linux can't handle mirroring a entire disk. Last I
>>> looked at it around a year ago you were limited to only mirroring
>>> partitions, which is a joke from a administrative standpoint.
>> How is this any different in FreeBSD?
>>
>> Could you explain to me how else you are going to mirror an entire
>> disk in software when your boot partition is on the disk?
> 
> The raid info is done the same as on other decent system, it is stored
> at the in the last sector of the provider.

I still don't understand what you mean by this. Something has to load
the RAID engine, and if the RAID engine is sitting on root partition
which is on the mirror, then it's not going to work.

Are you saying that this only works on disks that do not contain the
root partition?

-Stephen-

> 
> making a mirrored freebsd system is like this...
> 1: install freebsd
> 2: dd if= of=<2nd drive for mirror>
> 3: gmirror label  <2nd drive>
> 4: mount 2nd drive and edit fstab to boot
> using /dev/gmirror/
> 5: boot from 2nd drive
> 6: gmirror insert  
> 
> 
> /me loves GEOM, the goddess of all disk subsystems or whatever.
> 
> http://www.freebsd.org/cgi/man.cgi?query=gmirror&apropos=0&sektion=0&manpath=FreeBSD+6.2-RELEASE&format=html


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-09-01 Thread Zane C.B.
On Sun, 26 Aug 2007 11:51:19 -0600
Stephen Bosch <[EMAIL PROTECTED]> wrote:

> Zane C.B. wrote:
> > On Wed, 22 Aug 2007 12:37:26 -0600
> > Stephen Bosch <[EMAIL PROTECTED]> wrote:
> > 
> >> Zane C.B. wrote:
> >>> 1: Software RAID on Linux is way less than impressive. Plus last
> >>> a I checked Linux can't handle mirroring a entire disk. Last I
> >>> looked at it around a year ago you were limited to only
> >>> mirroring partitions, which is a joke from a administrative
> >>> standpoint.
> >> How is this any different in FreeBSD?
> >>
> >> Could you explain to me how else you are going to mirror an
> >> entire disk in software when your boot partition is on the disk?
> > 
> > The raid info is done the same as on other decent system, it is
> > stored at the in the last sector of the provider.
> 
> I still don't understand what you mean by this. Something has to
> load the RAID engine, and if the RAID engine is sitting on root
> partition which is on the mirror, then it's not going to work.
> 
> Are you saying that this only works on disks that do not contain the
> root partition?

It is mirrored. This means both disks are exactly the same. Towards
the end of the kernel starting up, it goes through finding all the
gmirror disk devices etc. The raid information is contained at the
end of device.

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-09-01 Thread Zane C.B.
On Fri, 24 Aug 2007 13:08:05 -0700
"shadowym" <[EMAIL PROTECTED]> wrote:

> Still true on CentOS 5.  You can only RAID partitions unless you do
> the LVM thing.  What are the disadvantages compared to being able
> to RAID the whole disk? Maybe for monitoring it's just more to deal
> with but does it make a RAID 1 any less reliable?

Being able to actually mirror a entire disk makes things a lot easier
to work with in all areas.

Why the hell would it make it less reliable? You have mirror
everything on a disk for reliable operation, including the swap.

Their are no disadvantages to mirror a entire disk.

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-09-01 Thread Tzafrir Cohen
On Sat, Sep 01, 2007 at 07:29:09PM -0400, Zane C.B. wrote:
> On Fri, 24 Aug 2007 13:08:05 -0700
> "shadowym" <[EMAIL PROTECTED]> wrote:
> 
> > Still true on CentOS 5.  You can only RAID partitions unless you do
> > the LVM thing.  What are the disadvantages compared to being able
> > to RAID the whole disk? Maybe for monitoring it's just more to deal
> > with but does it make a RAID 1 any less reliable?
> 
> Being able to actually mirror a entire disk makes things a lot easier
> to work with in all areas.
> 
> Why the hell would it make it less reliable? You have mirror
> everything on a disk for reliable operation, including the swap.

You mentioned that the two disks are identical. Hence there's a large
chance that they're from the same batch. This increases the chance of
them failing together :-p

> 
> Their are no disadvantages to mirror a entire disk.

A more complicated setup. But that's up to you to set up.

-- 
   Tzafrir Cohen   
icq#16849755jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-09-01 Thread Jay R. Ashworth
On Sun, Sep 02, 2007 at 04:38:19AM +0300, Tzafrir Cohen wrote:
> You mentioned that the two disks are identical. Hence there's a large
> chance that they're from the same batch. This increases the chance of
> them failing together :-p

In practice, though, we've never had both halves of a RAID 1 pair fail
in the same month.

Cheers,
-- jra
-- 
Jay R. Ashworth   Baylink  [EMAIL PROTECTED]
Designer The Things I Think   RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727 647 1274

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-09-01 Thread Zane C.B.
On Sun, 2 Sep 2007 04:38:19 +0300
Tzafrir Cohen <[EMAIL PROTECTED]> wrote:

> On Sat, Sep 01, 2007 at 07:29:09PM -0400, Zane C.B. wrote:
> > On Fri, 24 Aug 2007 13:08:05 -0700
> > "shadowym" <[EMAIL PROTECTED]> wrote:
> > 
> > > Still true on CentOS 5.  You can only RAID partitions unless
> > > you do the LVM thing.  What are the disadvantages compared to
> > > being able to RAID the whole disk? Maybe for monitoring it's
> > > just more to deal with but does it make a RAID 1 any less
> > > reliable?
> > 
> > Being able to actually mirror a entire disk makes things a lot
> > easier to work with in all areas.
> > 
> > Why the hell would it make it less reliable? You have mirror
> > everything on a disk for reliable operation, including the swap.
> 
> You mentioned that the two disks are identical. Hence there's a
> large chance that they're from the same batch. This increases the
> chance of them failing together :-p

No, I am talking about the data on them. The disks just have to be
the same size.

> > 
> > Their are no disadvantages to mirror a entire disk.
> 
> A more complicated setup. But that's up to you to set up.

How the hell is mirroring using GEOM under FreeBSD more complex than
what it takes to get something very vaguely similar under Linux?

Software RAID1 on FreeBSD is way simpler, robust, and easier to work
with than Software RAID1 on Linux.

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-09-02 Thread Tzafrir Cohen
On Sun, Sep 02, 2007 at 12:04:14AM -0400, Zane C.B. wrote:

> How the hell is mirroring using GEOM under FreeBSD more complex than
> what it takes to get something very vaguely similar under Linux?

It is more complex than a straight, non-software-RAID installation on
BSD. This is all I meant. I don't intend to start any distro fight here.

-- 
   Tzafrir Cohen   
icq#16849755jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-09-02 Thread Zane C.B.
On Sun, 2 Sep 2007 17:46:19 +0300
Tzafrir Cohen <[EMAIL PROTECTED]> wrote:

> On Sun, Sep 02, 2007 at 12:04:14AM -0400, Zane C.B. wrote:
> 
> > How the hell is mirroring using GEOM under FreeBSD more complex
> > than what it takes to get something very vaguely similar under
> > Linux?
> 
> It is more complex than a straight, non-software-RAID installation
> on BSD. This is all I meant. I don't intend to start any distro
> fight here.

Ahh, K. Cool. :)

Yeah, hardware RAID is always simpler to setup.

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk

2007-09-06 Thread Gordon Henderson
On Sat, 1 Sep 2007, Jay R. Ashworth wrote:

> On Sun, Sep 02, 2007 at 04:38:19AM +0300, Tzafrir Cohen wrote:
>> You mentioned that the two disks are identical. Hence there's a large
>> chance that they're from the same batch. This increases the chance of
>> them failing together :-p
>
> In practice, though, we've never had both halves of a RAID 1 pair fail
> in the same month.

I've had 3 drives in a 6-drive unit fail in a 36-hour period )-:

It was a Dell. 3 x WDC drives, 3 x Seagate. It was the Seagate drives that 
failled IIRC.

Gordon

___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk (Vidura Senadeera)

2007-08-21 Thread Vidura Senadeera
>
>

Dear all,

Thanks for the greate explanation regaing Software/H/W Raid. This details
better but on voip-info.org/wiki pages.

Thanks lot agian.
Regs,
Vidura Senadeera.



==

Dear All,
> >
> > I would like to get community's feedback with regard to RAID1 ( Software
> or
> > Hardware) implementations with asterisk.
> >
> > This is my setup
> >
> > Motherboard with SATA RAID1 support
> > CENT OS 4.4
> > Asterisk 1.2.19
> > Libpri/zaptel latest release
> > 2.8 Ghz Intel processor
> > 2 80 GB SATA Hard disks
> > 256 MB RAM
> > digium PRI/E1 card
> >
> > Following are the concerns I am having
> >
> > I'm planing to put this asterisk server in production enviorment which
> is
> > having E1 connection to the asterisk server, approximately
> > 20 con-current calls, Music on hold, voice mail boxes.
> >
> > 1. If I use Software RAID, what would be the impact to my deployment?
> > ( problems that I have to face with regard to the call flow )
> > 2. If I use Hardware based RAID 1, what would be the impact to the
> system?
> > 3. According to your practical experiance what is the ideal solution
> among
> > both options?
>
> With my other hat on I build and maintain many servers with disk
> capacities ranging from 80GB to over 6TB... All using Linux software RAID.
> I've been using Linux s/w RAID for over 8 years now.
>
> So with RAID-1 done in hardware, the impact to the system, CPU, etc.
> should be no more (or less) than running a single SCSI or SATA drive. You
> write the data over the (PCI) bus once and the hardware takes care of
> writing it to both drives behind your back. Similarly for reading (where
> it might only read from one drive or from alternative drives) you only see
> one transaction over the PCI bus.
>
> You do (sometimes) need the hardware RAID controller to be supported by
> Linux and this is a weak area. Some controllers just look like a standard
> drive, so they are transparent to the system, but then you need to use
> either the BIOS utilities to set it up in the first place, or (typically)
> a Windows utility, although some controllers are now being supported by
> Linux with user-land tools to manage and check the arrays.
>
> Doing it in software requires double the PCI bandwidth for writes, but the
> same as a single drive or hardware controller for reads. AIUI, the current
> software RAID-1 reads alternatively from the disks. So on writes. The
> overhead in terms of CPU power is minimal - write the same block twice,
> and if the hardware is good, then both writes can be transfered over the
> PCI bus rapidly, into the cache on the drives and the writes then take
> place in parallel, so performance wise, it's really no worse than single
> drive (and it's important to note than it's no better than a single drive
> on reads too, despite many threads on the linux-raid list suggesting
> otherwise!)
>
> RAID-1 doesn't require parity calculations, so the software overhead
> really is quite small (especially when you compare it to the relatively
> huge times it takes to actually get the data to/from the disks)
>
> So things that are important: Make sure the hardware to each drive is as
> independent as possible. Hard to do these days as there is probably only
> one SATA controller chip on the motherboard. You also need to see what
> happens when a drive dies - is it going to crowbar the entire SATA chip
> and block the other drive? Is the driver going to recognise it quickly
> enough and so on. (Some early SATA drives weren't good at this)
>
> And the "usual" - make sure all the hardware has it's own interrupts.
>
> For the absolute maximun performance, (and minimum overheard) then you
> need a motherboard with multiple PCI buses - put the disks on one bus, the
> PRI card on another.
>
> If terms of disk b/w needed - if we're using g711, then it's 64KB/sec, and
> 20 calls streaming to voicemail is 1.3MB/sec. A single modern drive ought
> to be able to sustain 60MB/sec read or writes, so there is plenty of
> overhead, as long as asterisk is relatively sensible about buffering disk
> write/reads (which I think it is)
>
> So I'd say "go for it", but do take the time, if possible to build a
> custom kernel for your hardware, and at the BIOS level, turn off all
> drivers that you won't be using - eg. on-board sound, then 2nd network
> port, USB (if you're not using it, don't enable it!) and so on, and make
> sure you have a custom compiled kernel for your exact hardware
> requirements with no modules loaded other than the Zap/TDM, etc., ones.
>
> And I'd also say "go for it" because I have similarly specd. servers doing
> similar tasks also running asterisk. I won't put a server in a remote data
> centre these days without it either booting off flash, or using at least
> RAID-1.
>
> Remember to put your swap on RAID-1 too.
>
> Here is one of my servers in a similar setup to yours:
>
> $ cat /proc/mdstat
> Personalities : [raid0] [raid1]
> md1 : active raid1 hdc1[1] h

Re: [asterisk-users] Saftware RAID1 or Hardware RAID1 with Asterisk (Andrew Joakimsen)

2007-08-28 Thread Vidura Senadeera
Dear Andrew,

Thanks for your kind responce.

Regards,
vidura.



=

> Motherboard with SATA RAID1 support

That's a mulit-port SATA controller with RAID in the driver (software).

> 256 MB RAM
Use a little more RAM.


> digium PRI/E1 card
Is there any reason you aren't using Sangoma cards?

> 1. If I use Software RAID, what would be the impact to my deployment? (
> problems that I have to face with regard to the call flow )

None.

> 2. If I use Hardware based RAID 1, what would be the impact to the system?

A PCI slot.

> 3. According to your practical experiance what is the ideal solution among
> both options?

Software RAID works fine.

-- 
Thanks & Regards,
Vidura Senadeera,
Network Engineer,
Debug Solutions
Sri Lanka.
Tel - +94114520036
Mobile - +9466596
Web - www.debug.lk
___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users