LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Kernel 3.0.7, Disk I/O hangs (http://www.linuxquestions.org/questions/linux-software-2/kernel-3-0-7-disk-i-o-hangs-911154/)

Oshaka 10-31-2011 06:07 PM

Kernel 3.0.7, Disk I/O hangs
 
Hello
I just installed the latest arch x86_64 on my intel xeon server. It is setup using raid1 and mdadm. The raid works fine. However, when I try to copy any data (ex: cat /dev/zero > /home/test.out) it gets to 580-583MB and hangs. I can not kill the copy from there.
This happens when I copy from either my raid devices or just a single ext4 harddrive that is not part of an array. The drives are SATA

Code:

lsmod:
Module                  Size  Used by
ipv6                  290983  56
ext2                  64314  1
ioatdma                37268  16
joydev                  9895  0
usbhid                35256  0
psmouse                55192  0
i2c_i801                8187  0
hid                    81635  1 usbhid
i2c_core              20133  1 i2c_i801
pcspkr                  1819  0
serio_raw              4294  0
evdev                  9530  0
i7core_edac            16231  0
iTCO_wdt              12717  0
iTCO_vendor_support    1929  1 iTCO_wdt
edac_core              37328  3 i7core_edac
e1000e                142545  0
dca                    5073  1 ioatdma
button                  4470  0
processor              24256  0
uhci_hcd              23084  0
ehci_hcd              39543  0
usbcore              142576  4 usbhid,uhci_hcd,ehci_hcd
raid1                  20992  4
md_mod                94993  5 raid1
ext4                  370462  2
mbcache                5817  2 ext2,ext4
jbd2                  71074  1 ext4
crc16                  1297  1 ext4
sd_mod                28307  10
ata_piix              22005  8
libata                173297  1 ata_piix
scsi_mod              131546  2 sd_mod,libata

mkinitcpio.conf
Code:

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#    MODULES="piix ide_disk reiserfs"
MODULES="ata_piix ext4 raid1"

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run first, so it may be used to
# override the actual binaries used in a given hook.
# (Existing files are NOT overwritten if already added)
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
# Some users may wish to include modprobe.conf for custom module options
# like so:
#    FILES="/etc/modprobe.d/modprobe.conf"
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##  This setup specifies all modules in the MODULES setting above.
##  No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
##  This setup will autodetect all modules for your system and should
##  work as a sane default
#    HOOKS="base udev autodetect pata scsi sata filesystems"
#
##  This is identical to the above, except the old ide subsystem is
##  used for IDE devices instead of the new pata subsystem.
#    HOOKS="base udev autodetect ide scsi sata filesystems"
#
##  This setup will generate a 'full' image which supports most systems.
##  No autodetection is done.
#    HOOKS="base udev pata scsi sata usb filesystems"
#
##  This setup assembles a pata mdadm array with an encrypted root FS.
##  Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS="base udev pata mdadm encrypt filesystems"
#
##  This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev usb lvm2 filesystems"
HOOKS="base udev sata mdadm filesystems usbinput"

# COMPRESSION
# Use this to compress the initramfs image. With kernels earlier than
# 2.6.30, only gzip is supported, which is also the default. Newer kernels
# support gzip, bzip2 and lzma. Kernels 2.6.38 and later support xz
# compression.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""

rc.conf
Code:

# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
# startup and during the boot process. If set to 'no', the C locale is used.
# HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
#  in the hardware clock being left untouched (useful for virtualization)
#  Note: Using "localtime" is discouraged, using "" makes hwclock fall back
#  to the value in /var/lib/hwclock/adjfile
# TIMEZONE: timezones are found in /usr/share/zoneinfo
#  Note: if unset, the value in /etc/localtime is used unchanged
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="UTC"
TIMEZONE="America/New_York"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
#  Replace every !module by an entry as on the following line in a file in
#  /etc/modprobe.d:
#    blacklist module
#  See "man modprobe.conf" for details.
#
MODULES=()

# Udev settle timeout (default to 30)
UDEV_TIMEOUT=30

# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"

# Scan for BTRFS volumes at startup
USEBTRFS="no"

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="sitebox"

# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
#  - interface: name of device (required)
#  - address: IP address (leave blank for DHCP)
#  - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
#  - broadcast: broadcast address (ignored for DHCP) (optional)
#  - gateway: default route (ignored for DHCP)
#
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# broadcast=192.168.0.255
# gateway=192.168.0.1
#
# DHCP example
# interface=eth0
# address=
# netmask=
# gateway=

interface=eth0
address=******
netmask=255.255.255.0
broadcast=******
gateway=*******

# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"

# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as multiple network configurations (ie, laptop users)
#  - set to 'menu' to present a menu during boot-up (dialog package required)
#  - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#  - prefix a daemon with a ! to disable it
#  - prefix a daemon with a @ to start it up in the background
#
# If something other takes care of your hardware clock (ntpd, dual-boot...)
# you should disable 'hwclock' here.
#
DAEMONS=(hwclock syslog-ng network netfs crond sshd mdadm)
mount
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
# startup and during the boot process. If set to 'no', the C locale is used.
# HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
#  in the hardware clock being left untouched (useful for virtualization)
#  Note: Using "localtime" is discouraged, using "" makes hwclock fall back
#  to the value in /var/lib/hwclock/adjfile
# TIMEZONE: timezones are found in /usr/share/zoneinfo
#  Note: if unset, the value in /etc/localtime is used unchanged
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="UTC"
TIMEZONE="America/New_York"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
#  Replace every !module by an entry as on the following line in a file in
#  /etc/modprobe.d:
#    blacklist module
#  See "man modprobe.conf" for details.
#
MODULES=()

# Udev settle timeout (default to 30)
UDEV_TIMEOUT=30

# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"

# Scan for BTRFS volumes at startup
USEBTRFS="no"

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="sitebox"

# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
#  - interface: name of device (required)
#  - address: IP address (leave blank for DHCP)
#  - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
#  - broadcast: broadcast address (ignored for DHCP) (optional)
#  - gateway: default route (ignored for DHCP)
#
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# broadcast=192.168.0.255
# gateway=192.168.0.1
#
# DHCP example
# interface=eth0
# address=
# netmask=
# gateway=

interface=eth0
address=216.120.238.129
netmask=255.255.255.0
broadcast=216.120.238.255
gateway=216.120.238.1

# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"

# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as multiple network configurations (ie, laptop users)
#  - set to 'menu' to present a menu during boot-up (dialog package required)
#  - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#  - prefix a daemon with a ! to disable it
#  - prefix a daemon with a @ to start it up in the background
#
# If something other takes care of your hardware clock (ntpd, dual-boot...)
# you should disable 'hwclock' here.
#
DAEMONS=(hwclock syslog-ng network netfs crond sshd mdadm)

mdadm stat
Code:

Personalities : [raid1]
md127 : active raid1 sda4[0] sdb4[1]
      379962739 blocks super 1.2 [2/2] [UU]
     
md126 : active raid1 sda3[0] sdb3[1]
      9766424 blocks super 1.2 [2/2] [UU]
     
md125 : active raid1 sda2[0] sdb2[1]
      97658039 blocks super 1.2 [2/2] [UU]
     
md124 : active raid1 sda1[0] sdb1[1]
      995904 blocks [2/2] [UU]

unused devices: <none>
I've been taking out useless modules in mkinitcpio and redoing the initramfs image but so far same result.
Thanks!

H_TeXMeX_H 11-01-2011 11:01 AM

Can you also post the output of:

Code:

lspci -k
cat /proc/interrupts

To me it seems that the SATA controller is in IDE mode. Try putting it in AHCI mode.


All times are GMT -5. The time now is 12:28 PM.