CentOS 7:RAID 1 高 I/O 等待

CentOS 7:RAID 1 高 I/O 等待

我正在運行 CentOS 7,硬碟上有 RAID 1 (md)。我的分區設定如下所示。

md0 -> root (sda1, sdb1)
md2 -> swap (sda2, sdb2)
md3 -> misc (sda3, sdb3)

在 md3 上,我禁用了日記功能。但是,當我的應用程式寫入 md3 時;我遇到了較長的 I/O 等待時間 (35+%)。

CentOS 6 上完全相同的設定不會為我帶來 I/O 等待問題。我嘗試在 CentOS 7 上的所有分割區上停用日誌記錄,並更改安裝選項/檔案系統標誌。但是,無濟於事。

CentOS 6 使用 GRUB,CentOS 7 使用 GRUB2

CentOS 6 --> 2.6.32-573.7.1.el6.x86_64

CentOS 7 --> 3.10.0-327.13.1.el7.x86_64


作業系統6

grub.cfg:

title CentOS (2.6.32-573.7.1.el6.x86_64)
    root (hd0,0)
kernel /boot/vmlinuz-2.6.32-573.7.1.el6.x86_64 ro root=UUID=d8273070-760f-4728-b70c-0368be3ec612 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8
SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /boot/initramfs-2.6.32-573.7.1.el6.x86_64.img

dumpe2fs 輸出 --> /dev/md3

Filesystem features:      ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash

作業系統7

grub.cfg:

menuentry 'CentOS Linux (3.10.0-327.13.1.el7.x86_64) 7 (CentOS 7 RAID)' --class centos --class gnu-linux --class gnu --class os {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos msdos
    insmod diskfilter mdraid1x
    insmod ext2
    set root='mduuid/afa918cd8b06e98111da7fa5baab386e'
    if [ x = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint='mduuid/afa918cd8b06e98111da7fa5baab386e' cbad6fd3-333c-4137-afce-9e1c8b9b75d2
    else
      search --no-floppy --fs-uuid --set=root cbad6fd3-333c-4137-afce-9e1c8b9b75d2
    fi
    linux16 /boot/vmlinuz-3.10.0-327.13.1.el7.x86_64 root=UUID=cbad6fd3-333c-4137-afce-9e1c8b9b75d2 ro crashkernel=auto  vconsole.font=latarcyrheb-sun16 rd.md.uuid=afa918cd:8b06e981:11da7fa5:baab386e vconsole.keymap=us rd.md.uuid=a0e564a7:cfc4a6b6:57b4f190:8e5734c7 rhgb quiet LANG=en_US.UTF-8
    initrd16 /boot/initramfs-3.10.0-327.13.1.el7.x86_64.img
}

dumpe2fs 輸出 --> md3

Filesystem features:      ext_attr resize_inode dir_index filetype extent 64bit flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash

答案1

來關閉這個。更新到核心 3.10.0-327.36.1+ 修復了該問題;日記仍然被禁用。

相關內容