Linux Buffer I/O error on device dm-4, logical block

来源:http://www.cnblogs.com/kerrycode/archive/2016/07/27/5711663.html
-Advertisement-
Play Games

Linux伺服器日誌(Oracle Linux Server release 5.7)裡面出現了一些"Buffer I/O error on device dm-4, logical block 0"之類的錯誤,如下所示: Jul 3 02:33:24 localhost kernel: Buffe... ...


Linux伺服器日誌(Oracle Linux Server release 5.7)裡面出現了一些"Buffer I/O error on device dm-4, logical block 0"之類的錯誤,如下所示:

Jul 3 02:33:24 localhost kernel: Buffer I/O error on device dm-4, logical block 0

Jul 3 02:33:24 localhost kernel: Buffer I/O error on device dm-4, logical block 1

Jul 3 02:33:24 localhost kernel: Buffer I/O error on device dm-4, logical block 2

Jul 3 02:33:24 localhost kernel: Buffer I/O error on device dm-4, logical block 3

Jul 3 02:33:24 localhost kernel: Buffer I/O error on device dm-4, logical block 0

Jul 3 02:33:24 localhost kernel: Buffer I/O error on device dm-4, logical block 0

Jul 3 02:33:24 localhost kernel: Buffer I/O error on device dm-4, logical block 1

Jul 3 02:33:24 localhost kernel: Buffer I/O error on device dm-4, logical block 2

Jul 3 02:33:24 localhost kernel: Buffer I/O error on device dm-4, logical block 3

clip_image001

在這篇"Buffer I/O Error in /var/log/messages"博客裡面的英文介紹:

 

A server using a LUN, which is presented by a storage array through fabric channels, may show buffer I/O errors while the server is booting or commands such as fdisk and vgscan are being run. The access can be a read or write attempt. These messages are sometimes harmless. When using PowerPath, these errors are suppressed. However, in the case where Linux native multipathing is used, there is no automatic provision for filtering these messages.

The errors can occur when using an active/passive storage array, such as EMC Clarion series. These types of SANs contain two storage processors. LUNs are assigned to only one of the processors at the time of LUN creation. The LUN can receive I/O only via that one processor. The other processor is passive; it acts as a backup, ready to receive I/O if the active controller fails, or if all paths to the LUN via the active controller fails.

Paths to the LUN going via the passive controller are passive paths and will generate an I/O errors should I/O be sent over them. At bootup, the kernel's SCSI mid-layer scans all paths to find devices. Thus it will scan both active and passive paths and will generate buffer I/O errors for the passive paths.

This is a normal behavior for Linux native multipath, and the errors do not indicate an array issue. The errors can safely be filtered through the OS logging configuration or the user can avoid access to native devices (as opposed to using /dev/mapper devices). Alternatively, a qualified version of PowerPath may be installed, which will automatically filter these errors.

 

在官方文檔Why do I see I/O errors on a RHEL system using devices from an active/passive storage array?亦有介紹。

 

· Storage arrays in a SAN are generally implemented in a redundant manner such that the host can access logical units (LUN) on one of many different paths. Typically, these operate in one of two different modes: active/active or active/passive. With active/active network, the I/O can be sent to any path of a LUN and it will be handled by the controller. With active/passive arrays, a controller is considered the main for each LUN, while the other controller is waiting and acts as a backup plan. Some windows will accept I/O to a LUN on the backup controller (passive) but this will not be optimized (worst performance). However, other active/passive arrays will not accept I/O to the backup controller for a LUN, so all commands sent to it will result in an I/O error.

· In RHEL, there are a number of commands and utilities that can send I/O to various devices, such as LVM, udev, fdisk, etc., not to mention applications such as databases, web servers, etc.Si one of them had to issue I/O to a passive way on a bay that does not accept it, it will cause an error I/O in newspapers .The messages are harmless and do not indicate a problem, but they can fill newspapers or become unduly concern .Therefore, some may want to try to avoid these errors by preventing applications from accessing passive paths. Typically, filtering from LVM will disappear the majority of these erreurs.Aussi to reduce the number of errors, avoid commands like 'fdisk -l' that scan all devices. Finally, the configuration of the applications that scan or accesses multiple devices so that only accesses the appropriate active path or multipath logical device (/dev/mapper/mpath *, /dev/emcpower *, /dev/ * sddlma etc. ) can reduce the number of errors.

 

看來這個錯誤信息是可以忽略的(harmless)。並不是存儲出現了什麼問題。檢查了大量日誌,發現這個錯誤只是偶爾出現,另外,出現時的時候為IO負載較大的時候(RMAN備份,Platespin複製同時出現的時候)

 

參考資料:

http://blog.csdn.net/kinges/article/details/40425841

https://access.redhat.com/solutions/18746

 


您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • 本篇大概介紹一下在Windows Server 2012 R2上安裝和部署SCVMM的過程及其註意事項。下圖是我們數據中心SCVMM的基本架構,其中 SCVMM Database 是用於存儲了所有配置信息和狀態信息的Sql Server資料庫,為實現高可用,該Sql Server也可以配置成Sql ... ...
  • 此文包含的命令: cd、pwd、mkdir、rmdir、rm、ls、cp、mv、cat、tac、more、less、head、tail、od、touch、umask、chattr、lsattr、file、chgrp、chown。 理論: 一、檔案的種類 正規檔案:[-] 目錄(directory): ...
  • 轉自http://www.linuxidc.com/Linux/2012-10/71850.htm 設置epel源。方法如下: 32位系統選擇:rpm -ivh http://download.Fedoraproject.org/pub/epel/6/i386/epel-release-6-8.no ...
  • 2016年到了一家公司做網管,經常會為了裝系統而煩惱,後來學習了WDS自動部署,但是在學習過程中發現啟動鏡像boot.wim中沒有網卡驅動 導致wds報錯,後來經過網上查找相關資料學會瞭如何向系統里添加驅動解決了我在啟動過程中找不到網卡驅動的問題。因為每次碰到不同的電腦有不同的網卡都 需要添加一次, ...
  • 在檢查一Linux伺服器時,發現日誌裡面有大量“lvm[12446]: Another thread is handling an event. Waiting...” Jul 4 00:01:42 localhost lvm[12446]: Another thread is handling a... ...
  • 首先啟動你的卡裡系統,等出現引導界面時選擇恢復模式。如下圖: 再出來一個界面時,選擇第二個並按E鍵進入編輯模式。如下圖: 進入編輯模式後找到如下圖的代碼: 把ro改為rw,並且在.gz 後面寫上init=/bin/bash,如下圖: 改完後按F10或Ctrl+X繼續啟動。啟動後的界面如下圖: 這時輸 ...
  • 為了定位問題,需要在Linux上使用tcpdump並且保存到文件,遇到瞭如下問題:Permission denied. ...
  • Unix下共有五種I/O模型: 1. 阻塞式I/O 2. 非阻塞式I/O 3. I/O復用(select和poll) 4. 信號驅動式I/O(SIGIO) 5. 非同步I/O(POSIX的aio_系列函數) io請求分兩步: 1. 先將數據從存儲介質(磁碟,網路等)拷貝到內核緩衝區,此時稱為數據準備好 ...
一周排行
    -Advertisement-
    Play Games
  • 移動開發(一):使用.NET MAUI開發第一個安卓APP 對於工作多年的C#程式員來說,近來想嘗試開發一款安卓APP,考慮了很久最終選擇使用.NET MAUI這個微軟官方的框架來嘗試體驗開發安卓APP,畢竟是使用Visual Studio開發工具,使用起來也比較的順手,結合微軟官方的教程進行了安卓 ...
  • 前言 QuestPDF 是一個開源 .NET 庫,用於生成 PDF 文檔。使用了C# Fluent API方式可簡化開發、減少錯誤並提高工作效率。利用它可以輕鬆生成 PDF 報告、發票、導出文件等。 項目介紹 QuestPDF 是一個革命性的開源 .NET 庫,它徹底改變了我們生成 PDF 文檔的方 ...
  • 項目地址 項目後端地址: https://github.com/ZyPLJ/ZYTteeHole 項目前端頁面地址: ZyPLJ/TreeHoleVue (github.com) https://github.com/ZyPLJ/TreeHoleVue 目前項目測試訪問地址: http://tree ...
  • 話不多說,直接開乾 一.下載 1.官方鏈接下載: https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads 2.在下載目錄中找到下麵這個小的安裝包 SQL2022-SSEI-Dev.exe,運行開始下載SQL server; 二. ...
  • 前言 隨著物聯網(IoT)技術的迅猛發展,MQTT(消息隊列遙測傳輸)協議憑藉其輕量級和高效性,已成為眾多物聯網應用的首選通信標準。 MQTTnet 作為一個高性能的 .NET 開源庫,為 .NET 平臺上的 MQTT 客戶端與伺服器開發提供了強大的支持。 本文將全面介紹 MQTTnet 的核心功能 ...
  • Serilog支持多種接收器用於日誌存儲,增強器用於添加屬性,LogContext管理動態屬性,支持多種輸出格式包括純文本、JSON及ExpressionTemplate。還提供了自定義格式化選項,適用於不同需求。 ...
  • 目錄簡介獲取 HTML 文檔解析 HTML 文檔測試參考文章 簡介 動態內容網站使用 JavaScript 腳本動態檢索和渲染數據,爬取信息時需要模擬瀏覽器行為,否則獲取到的源碼基本是空的。 本文使用的爬取步驟如下: 使用 Selenium 獲取渲染後的 HTML 文檔 使用 HtmlAgility ...
  • 1.前言 什麼是熱更新 游戲或者軟體更新時,無需重新下載客戶端進行安裝,而是在應用程式啟動的情況下,在內部進行資源或者代碼更新 Unity目前常用熱更新解決方案 HybridCLR,Xlua,ILRuntime等 Unity目前常用資源管理解決方案 AssetBundles,Addressable, ...
  • 本文章主要是在C# ASP.NET Core Web API框架實現向手機發送驗證碼簡訊功能。這裡我選擇是一個互億無線簡訊驗證碼平臺,其實像阿裡雲,騰訊雲上面也可以。 首先我們先去 互億無線 https://www.ihuyi.com/api/sms.html 去註冊一個賬號 註冊完成賬號後,它會送 ...
  • 通過以下方式可以高效,並保證數據同步的可靠性 1.API設計 使用RESTful設計,確保API端點明確,並使用適當的HTTP方法(如POST用於創建,PUT用於更新)。 設計清晰的請求和響應模型,以確保客戶端能夠理解預期格式。 2.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...