2000-04-11 03:01:45 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2000 Michael Smith
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission
|
2001-07-15 08:06:20 +00:00
|
|
|
.\"
|
2000-04-11 03:01:45 +00:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
|
|
|
.Dd April 10, 2000
|
|
|
|
.Dt MLXCONTROL 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm mlxcontrol
|
|
|
|
.Nd Mylex DAC-family RAID management utility
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2000-04-11 03:01:45 +00:00
|
|
|
.Aq command
|
|
|
|
.Op args
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2000-04-11 03:01:45 +00:00
|
|
|
status
|
|
|
|
.Op Fl qv
|
|
|
|
.Op Ar drive
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2000-04-11 03:01:45 +00:00
|
|
|
rescan
|
|
|
|
.Ar controller
|
|
|
|
.Op Ar controller ...
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2000-04-11 03:01:45 +00:00
|
|
|
detach
|
|
|
|
.Ar drive
|
|
|
|
.Op Ar drive ...
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2000-04-11 03:01:45 +00:00
|
|
|
detach
|
|
|
|
.Fl a
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2000-04-11 03:01:45 +00:00
|
|
|
check
|
|
|
|
.Ar drive
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2000-04-11 03:01:45 +00:00
|
|
|
config
|
|
|
|
.Ar controller
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2000-04-11 03:01:45 +00:00
|
|
|
help
|
|
|
|
.Ar command
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2000-04-13 08:09:02 +00:00
|
|
|
utility provides status monitoring and management functions
|
|
|
|
for devices attached
|
2000-04-11 03:01:45 +00:00
|
|
|
to the
|
|
|
|
.Xr mlx 4
|
|
|
|
driver.
|
|
|
|
.Pp
|
2000-04-13 08:09:02 +00:00
|
|
|
Controller names are of the form "mlxN"
|
|
|
|
where N is the unit number of the controller.
|
|
|
|
Drive names are of the form "mlxdN"
|
|
|
|
where N is the unit number of the drive.
|
|
|
|
Do not specify the path to a device node.
|
2000-08-09 01:54:30 +00:00
|
|
|
.Bl -tag -width rebuild
|
2000-04-11 03:01:45 +00:00
|
|
|
.It status
|
2000-04-13 08:09:02 +00:00
|
|
|
Print the status of controllers and system drives.
|
|
|
|
If one or more drives are specified,
|
|
|
|
only print information about these drives,
|
|
|
|
otherwise print information
|
|
|
|
about all controllers and drives in the system.
|
|
|
|
With the
|
2000-04-11 03:01:45 +00:00
|
|
|
.Fl v
|
|
|
|
flag, display much more verbose information.
|
|
|
|
With the
|
|
|
|
.Fl q
|
2000-04-13 08:09:02 +00:00
|
|
|
flag, do not print any output.
|
|
|
|
This command returns
|
|
|
|
0 if all drives tested are online,
|
|
|
|
1 if one or more drives are critical and
|
|
|
|
2 if one or more are offline.
|
2000-04-11 03:01:45 +00:00
|
|
|
.It rescan
|
2000-04-13 08:09:02 +00:00
|
|
|
Rescan one or more controllers for non-attached system drives
|
2004-07-02 23:13:00 +00:00
|
|
|
(e.g.\& drives that have been
|
2000-04-13 08:09:02 +00:00
|
|
|
detached or created subsequent to driver initialisation).
|
|
|
|
If the
|
2000-04-11 03:01:45 +00:00
|
|
|
.Fl a
|
|
|
|
flag is supplied, rescan all controllers in the system.
|
|
|
|
.It detach
|
2000-04-13 08:09:02 +00:00
|
|
|
Detach one or more system drives.
|
|
|
|
Drives must be unmounted
|
|
|
|
and not opened by any other utility for this command to succeed.
|
|
|
|
If the
|
2000-04-11 03:01:45 +00:00
|
|
|
.Fl a
|
|
|
|
flag is supplied, detach all system drives from the nominated controller.
|
|
|
|
.It check
|
2000-04-13 08:09:02 +00:00
|
|
|
Initiate a consistency check and repair pass on a redundant system drive
|
2004-07-02 23:13:00 +00:00
|
|
|
(e.g.\& RAID1 or RAID5).
|
2000-04-13 08:09:02 +00:00
|
|
|
The controller will scan the system drive and repair any inconsistencies.
|
|
|
|
This command returns immediately;
|
2000-08-09 01:54:30 +00:00
|
|
|
use the
|
2000-04-11 03:01:45 +00:00
|
|
|
.Ar status
|
|
|
|
command to monitor the progress of the check.
|
2000-08-09 01:54:30 +00:00
|
|
|
.It rebuild
|
2001-07-15 08:06:20 +00:00
|
|
|
Requires two arguments,
|
2000-08-09 01:54:30 +00:00
|
|
|
.Ar controller
|
|
|
|
and
|
|
|
|
.Ar physdrive
|
|
|
|
as specified in the
|
|
|
|
output of the
|
2001-07-15 08:06:20 +00:00
|
|
|
.Ar status
|
2000-08-10 09:01:10 +00:00
|
|
|
command.
|
|
|
|
All system drives using space on the physical drive
|
2001-07-15 08:06:20 +00:00
|
|
|
.Ar physdrive
|
2000-08-09 01:54:30 +00:00
|
|
|
are rebuilt, reconstructing all data on the drive.
|
2000-08-10 09:01:10 +00:00
|
|
|
Note that each controller can only perform one rebuild at a time.
|
|
|
|
This command returns immediately; use the
|
2000-08-09 01:54:30 +00:00
|
|
|
.Ar status
|
|
|
|
command to monitor the progress of the rebuild.
|
2000-04-11 03:01:45 +00:00
|
|
|
.It config
|
2000-04-13 08:09:02 +00:00
|
|
|
Print the current configuration from the nominated controller.
|
|
|
|
This command will be updated
|
|
|
|
to allow addition/deletion of system drives from a configuration
|
|
|
|
in a future release.
|
2000-04-11 03:01:45 +00:00
|
|
|
.It help
|
|
|
|
Print usage information for
|
2000-04-11 05:01:09 +00:00
|
|
|
.Ar command .
|
2000-08-09 01:54:30 +00:00
|
|
|
.El
|
2005-01-18 20:02:45 +00:00
|
|
|
.Sh AUTHORS
|
2014-06-20 09:57:27 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility was written by
|
|
|
|
.An Michael Smith Aq Mt msmith@FreeBSD.org .
|
2000-04-11 03:01:45 +00:00
|
|
|
.Sh BUGS
|
|
|
|
The
|
|
|
|
.Ar config
|
|
|
|
command does not yet support modifying system drive configuration.
|
|
|
|
.Pp
|
|
|
|
Error log extraction is not yet supported.
|