Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

PERC - Automating Consistency Checks using Open Manage Server Administrator Command Line in Windows OS

Summary: -

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Symptoms

This article provides information about the automation of storage consistency checks on PowerEdge RAID Controllers (PERC) using Open Manage Server Administrator (OMSA) Command Line in Microsoft Windows operating systems.

For systems running Windows server 2008(r2) and 2012(r2), along with the Open Manage Server Administrator software, you can use Task Scheduler to automate the process of running consistency checks of PowerEdge RAID Controllers (PERC). It is recommended to run the check at least once a month. Once started the check itself will take approximately 3 to 5 minutes per gigabyte in the virtual disk and by default dedicate around 30% of system resources to the check.
 


How To Schedule Consistency Checks
 

For Windows servers with OMSA installed

  1. Click Start, then All Programs, then Task Scheduler. If you are on server 2008 or 2008r2 click Start, then All Programs, then Administrative Tools, then Task Scheduler.
  2. On the right-hand side of the window, click Create Task.
  3. In the create task window under General:
    1. Give your new task a name (e.g.: OMSA Consistency Check)
    2. When running the task, use the following user account: click Change User or Group…
    3. In the new window type System then click Check Names then OK.
  4. Click Triggers then New:
    1. Make sure it says Begin the task On a schedule
    2. On the left-hand side of the New Trigger window click Monthly
    3. The drop down menu for Months: click <Select all months>
    4. In Days: pick a day that works for your maintenance window or otherwise a day that works for you in our example the 1st is picked
    5. Leave start date alone but set the time for something in your window in our example 11:59:00 pm
    6. Make sure Enabled is checked then click ok.
  5. Under Actions click new:
    1. Click browse and browse to your install of OMSA command line by default that is: C:\Program Files\dell\SysMgt\oma\bin\omconfig.exe
    2. In the box for Add arguments (optional): add the following:
      storage vdisk action=checkconsistency controller=x vdisk=y (where x and y are your controller and virtual disk)
    3. In the box for Start in (optional): copy paste the path from program/script to this box leaving off omconfig.exe you should have C:\Program Files\dell\SysMgt\oma\bin\ in that box now
    4. Click OK
  6. Click OK
  7. Repeat as needed for other virtual disks if you try to do them all at once it will severely degrade the server's performance
     


For Linux servers with OMSA installed

  1. Open terminal as root
  2. Open your cron file for editing with crontab –e
  3. Add the following line to your crontab file: 
    0 0 30 * * /opt/dell/srvadmin/bin/omconfig storage vdisk action=checkconsistency controller=x vdisk=y > /var/log/omccheck.log (where x and y are your controller and virtual disk)
  4. Save and then close the file
SLN246708_en_US__1icon Note: If you want to verify it has been added type crontab –l

Example with pictures:
 

  1. Open Task Scheduler
    SLN246708_en_US__2OMSA_task_scheduler_1

  2. Click Create Task...
    SLN246708_en_US__3OMSA_task_scheduler_2

  3. Name the task and change it to run under System (here: NT AUTHORITHY\SYSTEM)
    SLN246708_en_US__4OMSA_task_scheduler_3

  4. Click on the Triggers tab then click New
    SLN246708_en_US__5OMSA_task_scheduler_4

  5. Change to Monthly under Months: click <Select all months> under Days: click 1 to have it start the first of every month then click OK.
    SLN246708_en_US__6OMSA_task_scheduler_5

  6. Click Actions then click New…
    SLN246708_en_US__7OMSA_task_scheduler_6

  7. Click Browse then browse to: C:\Program Files\Dell\SysMgt\oma\bin\omconfig.exe

    1. Add the following to arguments: storage vdisk action=chceckconsistency controller=0 vdisk=0
    2. Add the following to start in: C:\Program Files\Dell\SysMgt\oma\bin
    3. Click OK.

    SLN246708_en_US__8OMSA_task_scheduler_7

  8. Click OK again.
    SLN246708_en_US__9OMSA_task_scheduler_8


Cause

-

Resolution

-

Article Properties


Affected Product

Servers, PowerEdge, OpenManage Server Administrator

Last Published Date

23 Sep 2021

Version

4

Article Type

Solution