The valraid utility validates policy files against inventory files generated by the invraid utility.
Used in simulation mode, valraid simulates the effect that a policy file would have on a RAID configuration if it were applied using the praid utility, which makes it useful for creating PRAID policy files. The policy files can be tested without running praid on the target system.
Used in check mode, valraid determines whether the policy file specified matches the RAID configuration represented in the inventory file. This capability can be used in OS deployment scripts to skip the RAID configuration step if the controller is already configured with the required RAID configuration and thus avoiding an extra reboot before installing the OS. valraid will set the return code to 20 to indicate that the policy file does not match the configuration represented by the inventory file.
The two modes of operation share most parameters, but the syntax is mode-specific.
valraid /ini:input_inventory_file /inp:input_policy_file /outi:output_inventory_file /outp:output_policy_file /raid:/inifiles
valraid /c /ini:input_inventory_file /inp:input_policy_file /raid:/inifiles
The following examples illustrates valraid parameters and usage.
Parameter | Description | Example |
---|---|---|
/ini:input_inventory_file |
|
valraid /ini:myfile.inv /inp:policy.ini /outi:newfile.inv /outp:newpolicy.ini /raid:/inifiles |
/inp:input_policy_file |
Specifies the input policy file. | valraid /ini:myfile.inv /inp:policy.ini /outi:newfile.inv /outp:newpolicy.ini /raid:/inifiles |
/outi:output_inventory_file |
|
valraid /ini:myfile.inv /inp:policy.ini /outi:newfile.inv /outp:newpolicy.ini /raid:/inifiles |
/outp:output_policy_file |
|
valraid /ini:myfile.inv /inp:policy.ini /outi:newfile.inv /outp:newpolicy.ini /raid:/inifiles |
/raid:inifiles |
|
valraid /ini:myfile.inv /inp:policy.ini /outi:newfile.inv /outp:newpolicy.ini /raid:/inifiles |
/c |
|
valraid /c /ini:myfile.inv /inp:policy.ini /raid:inifiles |