The email generated from a mdadm rebuild of raid 1 setup took hours to appear in email account of admin of the server.
What happened?
It was odd that I was working on a metal SME machine making some modifications at around 5pm ;ast night and
after i did the modification. I did the normal "signal-event post-upgrade;signal-event reboot".
I was working on the server from a putty console from a windows workstation.
After the server rebooted.
I have a webpage that displays the command of "cat /proc/mdstat" to show the status of the raid 1 array and I viewed the webpage.
Well there are 2 drives in my raid 1 array.
To my surprise after the reboot. The server was now in the process of rebuilding a drive. What the heck. I am remoting into the windows workstation from 25 miles away.
As far as i remembered, I removed the "99-raid-check" cron.
So I went looking to see how often this might of been happened.
I went straight to the servers admin email account to see if other rebuilds had taken place that i was not aware of.
I did not even see an email to the admin account that a rebuild process was being done.
I did not see any other emails of rebuilding taken place in the past as well.
I for surely thought that then or in the very near future i would of receive an email notifying my that a raid 1 rebuild process was taking place.
This morning, I looked again at the admin email account on the server.
There was the email notification that a raid rebuild had been started and finish.
This is on a intel i5 processor and nothing was being processed on the server much from 5pm to 5:30pm and nothing else after 6pm except the rebuilding of the raid 1 array.
The slow email delivery of the raid rebuild may be normal.
But I would of expected an email much sooner than what actual happened.
Here is the headers from the mdadm email at the being of the rebuild. Notice the time.
Return-Path: <root@mylocation.com>
Delivered-To: admin_raidreport@server2.mylocation.com
Received: (qmail 9588 invoked by alias); 12 Nov 2013 23:28:14 -0000
Delivered-To: alias-localdelivery-admin_raidreport@mylocation.com
Received: (qmail 9585 invoked by uid 0); 12 Nov 2013 23:28:14 -0000
Date: 12 Nov 2013 23:28:14 -0000
Message-ID: <20131112232814.9584.qmail@mylocation.com>
To: admin_raidreport@mylocation.com
From: "mdadm monitoring" <root@mylocation.com>
Subject: Rebuild20 event on /dev/md2:server2.mylocation.com
here is a webpage of the raid 1 being rebuilt.
Server Status Report
Current date : 11-12-2013 17:25:40 CST
URL name : www.mylocation.com
Server name : server2
************** UPTIME ***************
17:25:39 up 30 min, 0 users, load average: 0.78, 0.66, 0.56
************** RAID STATUS **********
Personalities : [raid1]
md1 : active raid1 sdb1[1] sda1[0]
104320 blocks [2/2] [UU]
md2 : active raid1 sdb2[1] sda2[0]
976655488 blocks [2/2] [UU]
[===>.................] resync = 18.0% (176464256/976655488) finish=85.3min speed=156302K/sec
unused devices:
************** DISK STATUS **********
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/main-root
936257548 23078476 864852828 3% /
/dev/md1 101018 26871 68931 29% /boot
tmpfs 4034500 0 4034500 0% /dev/shm
I had saved the /var/log/raidmonitor/current file then deleted it. But somehow, I cannot find the data in the file that show the raid 1 rebuild time.