This post is more than 5 years old

51 Posts

65781

March 24th, 2014 15:00

Scheduled Raid consistency check

Is it possible to set-up a scheduled Raid consistency check to happen say every weekend?  We have a T420 with a Perc 310 controller.

12 Elder

 • 

6.2K Posts

March 24th, 2014 18:00

Hello Nick

I'm not aware of an option within any of our applications to automate consistency checks. The easiest way I can think of to do this is to use a script and a task scheduler within the host operating system. I'm sure you can script it from a remote system via IPMI over LAN as well.

To do this you need to have RACADM ability, so you would need to install something like OpenManager Server Administrator Manage Node on the system you are running the commands from. Then create a batch file. Refer to page 154 of the OMSA user's guide for the syntax:

omconfig storage vdisk action=checkconsistency controller=0 vdisk=0
omconfig storage vdisk action=checkconsistency controller=0 vdisk=1
omconfig storage vdisk action=checkconsistency controller=0 vdisk=2

You can use omreport to find out what your controller and virtual disk ID's are. If you have multiple virtual disks then you can have multiple commands in the same batch file like my above command. You do not need to put anything else in the batch file except the omconfig commands. Just set task scheduler to open the batch file when you want the consistency checks to start.

Thanks

12 Elder

 • 

6.2K Posts

April 2nd, 2014 10:00

Add TestUser to Domain Admins group and all works perfectly!

I think this is because it is a Hyper V host. I can't find documentation that states so, but I'm pretty sure only local admins can install and perform management functions on a Hyper V host. Domain Admins are considered local admins.

Add the account to the local administrator group on the server instead of the administrator group in active directory. That should give it access without giving it access to everything in your Domain.

Thanks

51 Posts

March 25th, 2014 05:00

Works perfectly, thanks Daniel.

6 Operator

 • 

1.8K Posts

March 25th, 2014 07:00

Nick...

You can do the same with Patrol Reads, scheduling through task scheduler to only run off hours, as to not affect peak hour performance . I am a bit paranoid so I schedule Consistency checks weekly, Patrol Reads started /stopped twice a week (Wednesday, Sunday), both in the early a.m. Rig your servers to email of any critical raid issues.

 

 

  

 

51 Posts

March 30th, 2014 14:00

Currently working but needed to make scheduling user account member of Domain Admins otherwise won't run.  Any idea what rights/permissions OMConfig actually needs to allow a Consistency Check to be started?

12 Elder

 • 

6.2K Posts

March 30th, 2014 15:00

Currently working but needed to make scheduling user account member of Domain Admins otherwise won't run.  Any idea what rights/permissions OMConfig actually needs to allow a Consistency Check to be started?

A regular admin account can do this. I just created an account and added it to the admin group and tested. Make sure that you select "Run whether user is logged on or not", do not check "Do not store password", and "Run with highest privileges".

If you don't select those options then there will be a prompt for the password or a prompt to run as administrator. Aside from those options the only thing I selected was "Configure for". I changed it from the default of 2008 to server 2012 R2.

By default the administrator group has Log on as batch permissions. If this policy has been edited to Domain Admins only then you will have to edit the policy or use a Domain Admin account.

My server is not set up as a Hyper-V host, so the default permissions may be different with your configuration.

Thanks

51 Posts

March 31st, 2014 13:00

Interestingly our server behaves quite differently.  Administrators group is included in Logon as batch permissions and our TestUser is a member of Administrators.

Scheduled task options are as you describe.

However the task fails to run causing eventid: 4625 - An account failed to log on.

Add TestUser to Domain Admins group and all works perfectly!

No Events found!

Top