Maintaining a Storage Array 93The script command set provides two commands to define media scanproperties:• set virtualDisks• set storageArrayThe set virtualDisk command enables a media scan for the virtual disk.The following syntax is the general form of the command:set (allVirtualDisks | virtualDisk[virtualDiskName] | virtualDisks [virtualDiskName1... virtualDiskNamen] | virtualDisk <wwid>)mediaScanEnabled=(TRUE | FALSE)The set storageArray command defines how frequently a media scan isrun on a storage array. The following syntax is the general form of thecommand:set storageArray mediaScanRate=(disabled | 1-30)Running a Consistency CheckConsistency checks are performed when media scans are run, if consistencycheck is enabled on the virtual disk. (See "Running a Media Scan" on page 91for an explanation about setting up and running media scans.) During aconsistency check, all data blocks in a virtual disk are scanned, and deteriorateddata is corrected. The method of correction depends on the redundant array ofindependent disks (RAID) levels:• RAID 5 virtual disks — Consistency is checked and repaired.• RAID 1 virtual disks — The data is compared between the mirroredphysical disks, and data inconsistencies are repaired.• RAID 0 virtual disks — No redundancy exists.Before attempting a consistency check, you must enable the process with theset virtualDisk command, which uses the following general form:set (allVirtualDisks | virtualDisk[virtualDiskName] | virtualDisks [virtualDiskName1... virtualDiskNamen] | virtualDisk <wwid>)consistencyCheckEnabled=(TRUE | FALSE)