| United States-English |
|
|
|
![]() |
HP A5856A RAID 4Si PCI 4-Channel Ultra2 SCSI Controller: Installation and Administration Guide > Chapter 4 Managing the HP RAID 4Si ProductChecking a Logical Drive's Physical Drives for Errors (Consistency Check) |
|
For logical drives that use RAID level 1, 3, or 5, you can check their physical drives for parity and mirror errors by doing a consistency check. Consistency checks are very important because they can detect and correct parity errors or bad disk blocks. A consistency check forces every block on a physical drive to be read, and any bad blocks are marked; those blocks are not used again. This is critical because a bad disk block can prevent a disk rebuild from completing. We strongly recommend that you run consistency checks on a regular basis—at least once per week. Note that consistency checks degrade performance, so you should run them when the system load can tolerate it. You use IRM or the irconcheck utility to run consistency checks.
IRM is described below. irconcheck is described in “Using irconcheck”. You can use IRM to do a consistency check on one logical drive or on multiple drives. Each of these methods is described in this section. This section describes the steps for using IRM to check the consistency of one logical drive. Note that these steps assume you have started IRM and (if applicable) selected the HP RAID 4Si controller the logical drive is configured on. Menu path: "Management Menu" → Objects → Logical Drive The "Logical Drives" menu displays.
This section describes the steps for using IRM to check the consistency of one or more logical drives. Note that these steps assume you have started IRM and (if applicable) selected the HP RAID 4Si controller the logical drive is configured on. Menu path: "Management Menu" → Check Consistency The "Logical Drives Configured" screen, with the "Logical Drives" menu to the bottom left, displays. You are placed in the "Logical Drives" menu.
You can use irconcheck from the HP-UX command line or set up a cron job to run it at a regular time. Each of these methods is described in this section. See the irconcheck(1M) man page for details (including the messages irconcheck generates). This section describes how to use irconcheck from the HP-UX command line to do a consistency check on one or more logical drives. Note that when you run irconcheck from the command line, the messages are sent to your (the user's) console. If you include /opt/raid4si/bin in your PATH statement, you can run the command as it is shown below. Otherwise, you must include /opt/raid4si/bin as part of the command name (that is, /opt/raid4si/bin/irconcheck). You must be logged in as root to run this command. The syntax is as follows:
Note that some of the lines in the above syntax are indented for readability purposes only. When you actually type the command, you do not have to indent anything. The command parameters are as follows:
If you do not specify any of the above options, a consistency check is run on all logical drives that are on each HP RAID 4Si controller installed in the HP-UX system. Note that because it can take several hours, we recommend doing this kind of check through a cron job that runs it regularly at a time when the system load is low. Some examples of using irconcheck are shown below.
When you run irconcheck through a cron job, you cannot specify any of the irconcheck options. This means it does a consistency check on all logical drives on each HP RAID 4Si controller in the system. So, the check can run for several hours. Also, when you run irconcheck through a cron job, the messages are written to the /var/adm/syslog/syslog.log system log file. Here is an example of an entry for a cron job:
This entry will run irconcheck (without any options) once every week, on Saturday (Weekday = 6), at 10:00 p.m. (Hour [22], Minute [00]= 22:00). Note that in the above example, lines beginning with a pound sign (#) are standard HP-UX comment lines; the sixth line (shown in bold, for highlighting purposes) is the one that is actually executed by the cron job. You can create cron entries in two ways:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||