lvm[12446]: Another thread is handling an event. Waiting

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

在檢查一Linux伺服器時,發現日誌裡面有大量“lvm[12446]: Another thread is handling an event. Waiting...” Jul 4 00:01:42 localhost lvm[12446]: Another thread is handling a... ...


  在檢查一Linux伺服器時,發現日誌裡面有大量“lvm[12446]: Another thread is handling an event. Waiting...”

Jul  4 00:01:42 localhost lvm[12446]: Another thread is handling an event. Waiting...
Jul  4 00:09:36 localhost lvm[12446]: Another thread is handling an event. Waiting...
Jul  4 00:13:42 localhost lvm[12446]: Another thread is handling an event. Waiting...
Jul  4 00:13:43 localhost lvm[12446]: Extension of snapshot VolGroup05/LogVol00-PS-user-snapshot finished successfully.
Jul  4 00:13:43 localhost lvm[12446]: dm_task_run failed, errno = 9, Bad file descriptor
Jul  4 00:14:42 localhost lvm[12446]: Extension of snapshot VolGroup05/LogVol00-PS-user-snapshot finished successfully.
Jul  4 00:15:52 localhost lvm[12446]: Extension of snapshot VolGroup05/LogVol00-PS-user-snapshot finished successfully.
Jul  4 00:17:02 localhost lvm[12446]: Another thread is handling an event. Waiting...
Jul  4 00:17:02 localhost lvm[12446]: Extension of snapshot VolGroup05/LogVol00-PS-user-snapshot finished successfully.
Jul  4 00:17:46 localhost lvm[12446]: Another thread is handling an event. Waiting...
Jul  4 00:18:52 localhost lvm[12446]: Extension of snapshot VolGroup05/LogVol00-PS-user-snapshot finished successfully.
Jul  4 00:19:42 localhost lvm[12446]: Extension of snapshot VolGroup05/LogVol00-PS-user-snapshot finished successfully.
Jul  4 00:20:32 localhost lvm[12446]: Snapshot VolGroup05-LogVol00--PS--user--snapshot is now 80% full. 
Jul  4 00:20:32 localhost lvm[12446]: Extension of snapshot VolGroup05/LogVol00-PS-user-snapshot finished successfully.
Jul  4 00:23:12 localhost lvm[12446]: Snapshot VolGroup05-LogVol00--PS--user--snapshot is now 85% full. 
Jul  4 00:23:12 localhost lvm[12446]: Another thread is handling an event. Waiting...
Jul  4 00:23:12 localhost lvm[12446]: Extension of snapshot VolGroup05/LogVol00-PS-user-snapshot finished successfully.
Jul  4 00:23:12 localhost lvm[12446]: dm_task_run failed, errno = 9, Bad file descriptor
Jul  4 00:26:09 localhost lvm[12446]: Another thread is handling an event. Waiting...
Jul  4 00:26:52 localhost last message repeated 2 times
Jul  4 00:26:52 localhost lvm[12446]: Snapshot VolGroup05-LogVol00--PS--user--snapshot is now 90% full. 
Jul  4 00:26:52 localhost lvm[12446]: Extension of snapshot VolGroup05/LogVol00-PS-user-snapshot finished successfully.
Jul  4 00:28:52 localhost lvm[12446]: Another thread is handling an event. Waiting...
Jul  4 00:28:52 localhost lvm[12446]: Snapshot VolGroup05-LogVol00--PS--user--snapshot is now 95% full. 
Jul  4 00:28:52 localhost lvm[12446]: Extension of snapshot VolGroup05/LogVol00-PS-user-snapshot finished successfully.
Jul  4 00:28:52 localhost lvm[12446]: dm_task_run failed, errno = 9, Bad file descriptor
Jul  4 00:31:07 localhost kernel: device-mapper: snapshots: Invalidating snapshot: Unable to allocate exception.
Jul  4 00:34:59 localhost lvm[12446]: Another thread is handling an event. Waiting...
Jul  4 00:35:42 localhost lvm[12446]: Another thread is handling an event. Waiting...
Jul  4 00:42:29 localhost lvm[12446]: Another thread is handling an event. Waiting...
Jul  4 00:44:16 localhost lvm[12446]: Another thread is handling an event. Waiting...
Jul  4 00:45:49 localhost lvm[12446]: Another thread is handling an event. Waiting...
Jul  4 00:46:59 localhost last message repeated 3 times
Jul  4 00:48:49 localhost last message repeated 2 times

clip_image001

 

在Redhat官網有看到相關資料介紹”"What does "lvm: Another thread is handling an event. Waiting..." log messages mean on Red Hat Enterprise Linux 6?" 如下所示:

 

問題

  • lvm event log messages
  • Continuous messages filling /var/log/messages
    lvm: Another thread is handling an event, Waiting...
    lvm: Another thread is handling an event, Waiting...

決議

  • These messages can safely be ignored at this stage.  They are verbose messages that do not indicate any error has occurred.
  • Red Hat are planning to remove these messages from the lvm2 package in a future release of Red Hat Enterprise Linux 6.

根源

  • dmeventd daemon montors for events that need to occur on device-mapper devices.
    • There are segments of code that can only be entered by one thread at a time.
    • If a second thread tries to enter the code section, it will be forced to wait until the first thread has exited. This message is printed when a process is forced to wait.
  • There is currently no evidence that there is any problem with locking access to critical code in dmeventd.

診斷步驟

If the following symptoms are present on your system, then this article may apply to your issue:

  • Your lvm2 package is 2.02.87-6.el6 or earlier.
  • You have more than 1 LVM snapshots on the system.
  • Periodically, the following messages appear in /var/log/messages:

    Raw
        lvm: Another thread is handling an event. Waiting...
        lvm: Another thread is handling an event. Waiting...

 

 

根據官方文檔資料,這個消息可以忽略,這中現象出現在你的系統中,當你系統滿足下麵條件:

      當你的lvm2包版本是2.02.87-6.el6 或之前的版本。

      當你的系統有超過一個LVM快照

 

對比、參考本機操作系統版本,發現lvm2的版本確實比2.02.87-6.el6 低。另外,這個系統也確實有多個LVM快照。唯一有點差別的是Linux版本Red Hat Enterprise Linux Server release 5.7 ,並不是Red Hat Enterprise Linux (RHEL) 6

[root@localhost ~]# rpm -qa | grep lvm
lvm2-2.02.84-6.0.1.el5
system-config-lvm-1.1.5-9.el5
[root@localhost ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.7 (Tikanga)

另外,查看進程12446,也確實是/sbin/dmeventd

[root@localhost ~]# ps -ef | grep  12446 
root     12446     1  0 Jul02 ?        00:07:51 /sbin/dmeventd
root     26043 23106  0 11:06 pts/6    00:00:00 grep 12446

 

clip_image002

 

這個錯誤信息一直不停的出現在系統日誌當中,很奇怪的時候,我同樣環境的其它伺服器又沒有出現這個問題。應該是某些問題引起的。在做VG掃描時,發現有這樣/dev/VolGroup03/LogVol00-PS-user-snapshot: read failed after 0 of 4096 at 0: Input/output error一些錯誤信息,懷疑這個導致引起的,但是生產環境還不能亂動,需要在測試環境測試、驗證後,方能在生產環境處理。目前沒有許可權和資源處理,需要系統管理員幫忙解決。

 


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

-Advertisement-
Play Games
更多相關文章
  • 1.文件介紹 /etc/pam.d/vsftpd中ftpuser、user_list文件說明;(在file=後添加改文件路徑)/etc/vsftpd.conf中userlist_enable、userlist_deny的解釋。 為了安全,管理員不希望一些擁有過大許可權的帳號(如root)或系統自帶不常 ...
  • You can get Oprofile RPM from "https://www.rpmfind.net/" How to use Oprofile tools: Get report Steps : 1. opcontrol init //載入模塊,mout /dev/oprofile 創建必 ...
  • 一、rsync 簡介 Rsync(remote synchronize)是一個遠程數據同步工具,可通過LAN/WAN快速同步多台主機間的文件,也可以使用 Rsync 同步本地硬碟中的不同目錄。 Rsync 是用於取代rcp的一個工具,Rsync使用所謂的 “Rsync 演算法” 來使本地和遠程兩個主機 ...
  • 在Linux下如何解壓iso類型的文件呢? 可以使用mount命令來處理 [root@DB-Server tmp]# ls /tmp/rhel-server-5.7-x86_64-dvd.iso/tmp/rhel-server-5.7-x86_64-dvd.iso[root@DB-Server tm... ...
  • 本篇大概介紹一下在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報錯,後來經過網上查找相關資料學會瞭如何向系統里添加驅動解決了我在啟動過程中找不到網卡驅動的問題。因為每次碰到不同的電腦有不同的網卡都 需要添加一次, ...
一周排行
    -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.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...