megactl(1) | General Commands Manual | megactl(1) |
megactl - diagnostics on megaraid adapters and attached disks.
megactl [-vest] [-H] [-l log-page-nr] [-T long|short] [target ...]
Reports diagnostics on megaraid adapters and attached disks. Permits dumping of controller log pages for inspection of error, temperature, and self-test conditions, initiates self-test diagnostics, and documents adapter and logical drive configuration. Target devices may be adapters, (e.g. a0), channels (e.g. a0c0), or individual disks (e.g. a0c0t0). If no target is specified, reports configuration and drive state on all adapters. If a target matches a collection of disks, operations are applied to all matching devices. Options are:
N.B. The background long self test is a useful tool for diagnosing problems with individual disks. But be cautious with program usage. "megactl -T long" with no targets will initiate a background long self test on every drive on every adapter. This may not be what you want.
By default, the health check option inspects log pages 0x02, 0x03, and 0x05 for uncorrected read, write, and verify errors, 0x0d for excess temperature conditions, and 0x10 for failed self tests. If, however, any of the log page options is specified, only the designated log pages are inspected.
This program requires the device file /dev/megadev0 to be present on the system. If your system does not have this device file, you may create it either by executing Dell's "dellmgr" program once, or by locating the megadev entry in /proc/devices and creating /dev/megadev0 as a character device with suitable permissions with a matching major device number and a minor number of 0.
03 March 2024 |