LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-20-2020, 12:04 PM   #1
quantox
LQ Newbie
 
Registered: Sep 2020
Posts: 3

Rep: Reputation: Disabled
what does a dm_integrity mdadm RAID1 error looks like?


I've recently started running a dm_integrity mdadm RAID1 array on my Debian 10 system. It seems to be working OK, with no obvious errors.

If it does detect an error, what will it look like? I just want to know what sort of thing to look for in my logs. When I start it up and scrub the array I see a pair of messages like this in /var/log/kern.log:

Sep 20 10:53:44 kernel: [ 359.689681] md: data-check of RAID array md127
Sep 20 11:20:37 kernel: [ 1972.998119] md: md127: data-check done.

I'm guessing that if the scrub detected an error, some sort of message would appear between these lines, so I could look for lines containing "md:" and/or "md127". Or should I look for those strings *anywhere* in kern.log, since presumably an error might be detected outside of the active scrub? It would be really useful to have something specific to search for, to avoid the distraction of general info messages.
 
Old 10-02-2020, 07:58 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
The low-level error will usually be detected first by the disk driver, then it will percolate up to md. So something like:

Code:
kernel: end_request: I/O error, dev sdb, sector 2045799
kernel: raid1: Disk failure on sdb5, disabling device
Operation continuing on 1 devices
Set up mdadm in monitor mode to send a message when an event occurs. I hear all the time from people who set up RAID and their system fails. When you look in the logs, the first drive failed 6 months ago, but they weren't checking.
 
Old 10-02-2020, 10:04 AM   #3
quantox
LQ Newbie
 
Registered: Sep 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks smallpond, that's exactly the sort of thing I was hoping for.
 
Old 10-04-2020, 05:06 AM   #4
lvm_
Member
 
Registered: Jul 2020
Posts: 926

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
"data-check of RAID array" message doesn't indicate an error of any kind, it means that array self-check was started probably triggered from crontab - mdadm schedules checkarray run when installed.
 
Old 10-04-2020, 05:32 AM   #5
quantox
LQ Newbie
 
Registered: Sep 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
I probably wasn't clear enough in my original post. I know the data-check messages are not errors; I just wondered what sort of error messages I might expect to see in the half-hour or so between those data-check messages, if the scrub detected an error.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lvm volume group on raid1: physically move raid1 array from server 1 to server 2 Sum1 Linux - Software 4 07-20-2018 11:20 AM
mdadm Software RAID1 with GPT on Debian 8.0 amd64 - Does not boot on disk removal Bobbers Linux - General 1 04-29-2015 08:56 AM
Have software raid1, but like to change to raid1+0 or 0+1, how? spaceuser Debian 8 03-17-2008 02:07 PM
mdadm error creating raid1 Ezplan Fedora 7 07-26-2007 10:35 AM
raid1 using mdadm? help plz akadidm Linux - Hardware 3 06-09-2005 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration