How to schedule consistency check in MegaRaid.

I was supposed to run the consistency check on volume in MegaRAID. Be aware that running consistency check can lead to high I/O waits.

Step 1 : Before doing any thing I checked the current settings for consistency check.

[root@Node1 /opt/MegaRAID/CLI]# ./MegaCli -AdpCcSched -Info -aALL

Adapter #0

Operation Mode: Concurrent
Execution Delay: 168
Next start time: 08/23/2014, 03:00:00
Current State: Stopped
Number of iterations: 174
Number of VD completed: 0
Excluded VDs : None
Exit Code: 0x00 

Step 2 : Before doing the date modification I confirmed that MegaRAID and my Solaris server are taking the same time zone.

[root@Node1 /opt/MegaRAID/CLI]# date
Fri Aug 22 03:14:23 EDT 2014 

[root@Node1 /opt/MegaRAID/CLI]# ./MegaCli -AdpGetTime aALL

Adapter 0:
Date: 08/22/2014
Time: 03:14:14

Exit Code: 0x00 

Step 3 : After that I schedule it to run at 4:00 AM EDT date format is YYYYMMDD. It works in 24 Hours Clock if you want to schedule it for evening 17:00 EDT i.e 5:00 PM EDT

[root@Node1 /opt/MegaRAID/CLI]# ./MegaCli -AdpCcSched -SetStartTime 20140822 04 -aALL

Adapter 0: Scheduled CC start time is set.

Exit Code: 0x00
[root@Node1 /opt/MegaRAID/CLI]# ./MegaCli -AdpCcSched -Info -aALL

Adapter #0

Operation Mode: Concurrent
Execution Delay: 168
Next start time: 08/22/2014, 04:00:00
Current State: Stopped
Number of iterations: 174
Number of VD completed: 0
Excluded VDs : None
Exit Code: 0x00 

Step 4 : At schedule time I verified that it started running.

During Running phase:

[root@Node1 /opt/MegaRAID/CLI]# ./MegaCli -AdpCcSched -Info -aALL

Adapter #0

Operation Mode: Concurrent
Execution Delay: 168
Next start time: 08/22/2014, 04:00:00
Current State: Active
Number of iterations: 174
Number of VD completed: 0
Excluded VDs : None
Exit Code: 0x00 

Check got completed Successfully.

[root@Node1 /opt/MegaRAID/CLI]# ./MegaCli -AdpCcSched -Info -aALL

Adapter #0

Operation Mode: Concurrent
Execution Delay: 168
Next start time: 08/29/2014, 04:00:00
Current State: Stopped
Number of iterations: 175
Number of VD completed: 1
Excluded VDs : None
Exit Code: 0x00 

In above output it is showing me that it has checked the one virtual drive and as per my configuration one virtual drive was created on 2 physical drives. 

Verified the status of Virtual Drives using “./MegaCli -LDInfo -Lall -aALL | grep -i State”  all showing Optimal 🙂 

One more check regarding details of correction can be done with below command

cd /opt/MegaRAID/CLI
./MegaCli -fwtermlog -dsply -a0 -nolog > /tmp/lsi-fwterm.log

Snippet of the content of /tmp/lsi-fwterm.log

08/22/14 5:16:01: EVT#615932-08/22/14 5:16:01: 59=Consistency Check done with corrections on VD 00/0, (corrections=65535)
08/22/14 5:16:01: ccScheduleSetNextStartTime: RTC_TimeStamp=1b898e91, nextStartTime=1b92b740
08/22/14 5:16:01: Next cc scheduled to start at 08/29/14 4:00:00
08/22/14 5:16:01: CC Schedule cycle complete

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s