Its barebones right now. Nothing really running. I intended to move
our current email server over to it eventually. The thing is slow as
mud due to disk I/O though. I have no idea whats going on.
Here is a bit of iostat -x output.
[root@server ~]# iostat -x
Linux 2.6.18-164.9.1.el5 (server.x.us) 01/05/2010
Does anyone have an idea what I have wrong here? This is my first
software RAID install. Built a number of Centos servers without RAID
and they have all worked fine.
Matt
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
01-05-2010, 09:50 PM
John R Pierce
Software RAID1 Disk I/O
Matt wrote:
> Does anyone have an idea what I have wrong here? This is my first
> software RAID install. Built a number of Centos servers without RAID
> and they have all worked fine.
>
wild guess, md is still striping. try...
# mdadm -D /dev/md0
/dev/md0:
Version : 00.90.01
Creation Time : Thu Dec 10 12:58:00 2009
Raid Level : raid10
Array Size : 286743936 (273.46 GiB 293.63 GB)
Device Size : 143371968 (136.73 GiB 146.81 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Mon Dec 21 16:48:16 2009
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Number Major Minor RaidDevice State
0 8 33 0 active sync /dev/sdc1
1 8 49 1 active sync /dev/sdd1
2 8 65 2 active sync /dev/sde1
3 8 81 3 active sync /dev/sdf1
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
01-05-2010, 09:59 PM
Matt
Software RAID1 Disk I/O
>> Does anyone have an idea what I have wrong here? *This is my first
>> software RAID install. *Built a number of Centos servers without RAID
>> and they have all worked fine.
>>
>
> wild guess, md is still striping. * try...
I get this:
[root@server ~]# mdadm -D /dev/md0
/dev/md0:
Version : 0.90
Creation Time : Tue Dec 22 23:35:17 2009
Raid Level : raid1
Array Size : 104320 (101.89 MiB 106.82 MB)
Used Dev Size : 104320 (101.89 MiB 106.82 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Sun Jan 3 04:38:15 2010
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 19 1 active sync /dev/sdb3
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
01-05-2010, 10:15 PM
Les Mikesell
Software RAID1 Disk I/O
On 1/5/2010 4:44 PM, Matt wrote:
> I just installed CentOS 5.4 64 bit release on a 1.9ghz CPU with 8gB of
> RAM. It has 2 Western Digital 1.5TB SATA2 drives in RAID1.
>
> [root@server ~]# df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/md2 1.4T 1.4G 1.3T 1% /
> /dev/md0 99M 19M 76M 20% /boot
> tmpfs 4.0G 0 4.0G 0% /dev/shm
> [root@server ~]#
>
> Its barebones right now. Nothing really running. I intended to move
> our current email server over to it eventually. The thing is slow as
> mud due to disk I/O though. I have no idea whats going on.
>
> Here is a bit of iostat -x output.
>
[...]
>
> Does anyone have an idea what I have wrong here? This is my first
> software RAID install. Built a number of Centos servers without RAID
> and they have all worked fine.
Did you just create the RAIDs? It will something that size a few hours
to complete the initial sync. Try 'cat /proc/mdstat' to see when the
sync completes. Until then, expect to have head contention with
anything else that might be trying to use the drives.
--
Les Mikesell
lesmikesell@gmail.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
01-05-2010, 10:29 PM
Matt
Software RAID1 Disk I/O
>> I just installed CentOS 5.4 64 bit release on a 1.9ghz CPU with 8gB of
>> RAM. *It has 2 Western Digital 1.5TB SATA2 drives in RAID1.
>>
>> [root@server ~]# df -h
>> Filesystem * * * * * *Size *Used Avail Use% Mounted on
>> /dev/md2 * * * * * * *1.4T *1.4G *1.3T * 1% /
>> /dev/md0 * * * * * * * 99M * 19M * 76M *20% /boot
>> tmpfs * * * * * * * * 4.0G * * 0 *4.0G * 0% /dev/shm
>> [root@server ~]#
>>
>> Its barebones right now. *Nothing really running. *I intended to move
>> our current email server over to it eventually. *The thing is slow as
>> mud due to disk I/O though. *I have no idea whats going on.
>>
>> Here is a bit of iostat -x output.
>>
> [...]
>>
>> Does anyone have an idea what I have wrong here? *This is my first
>> software RAID install. *Built a number of Centos servers without RAID
>> and they have all worked fine.
>
> Did you just create the RAIDs? *It will something that size a few hours to
> complete the initial sync. *Try 'cat /proc/mdstat' to see when the sync
> completes. *Until then, expect to have head contention with anything else
> that might be trying to use the drives.
I think you need to investigate what is causing the load
to be high. In my experience, software RAID causes some
CPU load, but it should not be sustained unless you have
something doing continuous disk IO.
Neil
--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
CentOS 5.4 VPS with unmetered bandwidth only $25/month!
No overage charges, 7 day free trial, PayPal, Google Checkout
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
01-05-2010, 10:58 PM
John R Pierce
Software RAID1 Disk I/O
Matt wrote:
> [root@server ~]# uptime
> 17:20:54 up 7 days, 3:26, 2 users, load average: 3.41, 2.93, 2.8
rather high LA for an 'idle' system I'd be looking at top and/oor
atop to see what processes are active, also lsof to see what
files/devices are open.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
01-05-2010, 11:00 PM
Les Mikesell
Software RAID1 Disk I/O
On 1/5/2010 5:29 PM, Matt wrote:
>>> I just installed CentOS 5.4 64 bit release on a 1.9ghz CPU with 8gB of
>>> RAM. It has 2 Western Digital 1.5TB SATA2 drives in RAID1.
>>>
>>> [root@server ~]# df -h
>>> Filesystem Size Used Avail Use% Mounted on
>>> /dev/md2 1.4T 1.4G 1.3T 1% /
>>> /dev/md0 99M 19M 76M 20% /boot
>>> tmpfs 4.0G 0 4.0G 0% /dev/shm
>>> [root@server ~]#
>>
>> Did you just create the RAIDs? It will something that size a few hours to
>> complete the initial sync. Try 'cat /proc/mdstat' to see when the sync
>> completes. Until then, expect to have head contention with anything else
>> that might be trying to use the drives.
>
> Here is what I got there. Md1 is swap I beleive:
>
> [root@server ~]# uptime
> 17:20:54 up 7 days, 3:26, 2 users, load average: 3.41, 2.93, 2.89
> [root@server ~]#
> [root@server ~]#
> [root@server ~]# cat /proc/mdstat
> Personalities : [raid1]
> md0 : active raid1 sdb1[1] sda1[0]
> 104320 blocks [2/2] [UU]
>
> md1 : active raid1 sdb2[1] sda2[0]
> 8385856 blocks [2/2] [UU]
>
> md2 : active raid1 sdb3[1] sda3[0]
> 1456645568 blocks [2/2] [UU]
That's working normally with the sync completed. Mirrors should run at
close to the speed of a single drive. Maybe you are just expecting too
much from SATA or you have something like an updatedb running. An
'hdparm -tT' against the partitions and md devices should give you an
idea of what the drives can do. And top might show what's causing the
load (but maybe not if it is mostly waiting on disk seeks).
--
Les Mikesell
lesmikesell@gmail.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos