view usr/src/man/man1m/metastat.1m @ 13659:57451298f940

1469 ttyc/ttyd should be an allowed console device Reviewed by: Milan Jurik <milan.jurik@xylab.cz> Reviewed by: Alexander Eremin <alexander.r.eremin@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
author Gary Mills <gary_mills@fastmail.fm>
date Thu, 05 Apr 2012 08:47:21 -0500
parents 5b2854ecc12d
children
line wrap: on
line source

'\" te
.\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH METASTAT 1M "Mar 26, 2006"
.SH NAME
metastat \- display status for metadevice or hot spare pool
.SH SYNOPSIS
.LP
.nf
\fB/usr/sbin/metastat\fR \fB-h\fR
.fi

.LP
.nf
\fB/usr/sbin/metastat\fR [\fB-a\fR] [\fB-B\fR] [\fB-D\fR] [\fB-c\fR] [\fB-i\fR] [\fB-p\fR] [\fB-q\fR]
     [\fB-s\fR \fIsetname\fR] [\fB-t\fR] [\fImetadevice...\fR] [\fIhot_spare_pool\fR...]
.fi

.LP
.nf
\fB/usr/sbin/metastat\fR [\fB-a\fR] [\fB-B\fR] [\fB-D\fR] [\fB-c\fR] [\fB-i\fR] [\fB-p\fR] [\fB-q\fR]
     [\fB-s\fR \fIsetname\fR] \fIcomponent\fR...
.fi

.SH DESCRIPTION
.sp
.LP
The \fBmetastat\fR command displays the current status for each metadevice
(including stripes, concatenations, concatenations of stripes, mirrors, RAID5,
soft partitions, and trans devices) or hot spare pool, or of specified
metadevices, components, or hot spare pools.
.sp
.LP
It is helpful to run the \fBmetastat\fR command after using the \fBmetattach\fR
command to view the status of the metadevice.
.sp
.LP
\fBmetastat\fR displays the state of each Solaris Volume Manager RAID-1 volume
on the system. The possible states include:
.sp
.ne 2
.na
\fB\fBOkay\fR\fR
.ad
.RS 21n
The device reports no errors.
.RE

.sp
.ne 2
.na
\fB\fBNeeds maintenance\fR\fR
.ad
.RS 21n
A problem has been detected. This requires that the system administrator
replace the failed physical device. Volumes displaying \fBNeeds maintenance\fR
have incurred no data loss, although additional failures could risk data loss.
Take action as quickly as possible.
.RE

.sp
.ne 2
.na
\fB\fBLast erred\fR\fR
.ad
.RS 21n
A problem has been detected. Data loss is a possibility. This might occur if a
component of a submirror fails and is not replaced by a hot spare, therefore
going into \fBNeeds maintenance\fR state. If the corresponding component also
fails, it would go into \fBLast erred\fR state and, as there is no remaining
valid data source, data loss could be a possibility.
.RE

.sp
.ne 2
.na
\fB\fBUnavailable\fR\fR
.ad
.RS 21n
A device cannot be accessed, but has not incurred errors. This might occur if a
physical device has been removed with Solaris Dynamic Reconfiguration (DR)
features, thus leaving the Solaris Volume Manager volume unavailable. It could
also occur if an array or disk is powered off at system initialization, or if a
>1TB volume is present when the system is booted in 32-bit mode.
.sp
After the storage has been made available, run the \fBmetastat\fR command with
the \fB-i\fR option to update the status of the metadevices. This clears the
unavailable state for accessible devices.
.RE

.sp
.LP
See the \fI\fR for instructions on replacing disks and handling volumes in
Needs maintenance or Last erred states.
.SH OPTIONS
.sp
.LP
The following options are supported:
.sp
.ne 2
.na
\fB\fB-a\fR\fR
.ad
.RS 14n
Display all disk sets. Only metadevices in disk sets that are owned by the
current host are displayed.
.RE

.sp
.ne 2
.na
\fB\fB-B\fR\fR
.ad
.RS 14n
Display the current status of all of the 64-bit metadevices and hot spares.
.RE

.sp
.ne 2
.na
\fB\fB-c\fR\fR
.ad
.RS 14n
Display concise output.
.sp
There is one line of output for each metadevice. The output shows the basic
structure and the error status, if any, for each metadevice.
.sp
The \fB-c\fR output format is distinct from the \fB-p\fR output format. The
\fB-p\fR option does not display metadevice status and is not intended as
human-readable output.
.RE

.sp
.ne 2
.na
\fB\fB-D\fR\fR
.ad
.RS 14n
Display the current status of all of the descriptive name metadevices and
hotspares.
.RE

.sp
.ne 2
.na
\fB\fB-h\fR\fR
.ad
.RS 14n
Display usage message.
.RE

.sp
.ne 2
.na
\fB\fB-i\fR\fR
.ad
.RS 14n
Check the status of RAID-1 (mirror) volumes, RAID-5 volumes, and hot spares.
The inquiry checks each metadevice for accessibility, starting at the top level
metadevice. When problems are discovered, the metadevice state databases are
updated as if an error had occurred.
.RE

.sp
.ne 2
.na
\fB\fB-p\fR\fR
.ad
.RS 14n
Display the list of active metadevices and hot spare pools in the same format
as \fBmd.tab\fR. See \fBmd.tab\fR(4).
.sp
The \fB-p\fR output is designed for snapshotting the configuration for later
recovery or setup.
.RE

.sp
.ne 2
.na
\fB\fB-q\fR\fR
.ad
.RS 14n
Display the status for metadevices without the device relocation information.
.RE

.sp
.ne 2
.na
\fB\fB-s\fR \fB\fIsetname\fR\fR\fR
.ad
.RS 14n
Specify the name of the disk set on which \fBmetastat\fR works. Using the
\fB-s\fR option causes the command to perform its administrative function
within the specified disk set. Without this option, the command performs its
function on metadevices and hot spare pools in the local disk set.
.RE

.sp
.ne 2
.na
\fB\fB-t\fR\fR
.ad
.RS 14n
Display the current status and timestamp for the specified metadevices and hot
spare pools. The timestamp provides the date and time of the last state change.
.RE

.SH OPERANDS
.sp
.LP
The following operands are supported:
.sp
.ne 2
.na
\fB\fIcomponent\fR\fR
.ad
.RS 18n
Display the status of the component hosting a soft partition, including
extents, starting blocks, and block count.
.RE

.sp
.ne 2
.na
\fB\fIhot_spare_pool\fR\fR
.ad
.RS 18n
Display the status of the specified hot spare pool(s).
.RE

.sp
.ne 2
.na
\fB\fImetadevice\fR\fR
.ad
.RS 18n
Display the status of the specified metadevice(s). If a trans metadevice is
specified, the status of the master and log devices is also displayed. Trans
metadevices have been replaced by UFS logging. See \fBNOTES\fR.
.RE

.SH EXAMPLES
.LP
\fBExample 1 \fROutput Showing Mirror with Two Submirrors
.sp
.LP
The following example shows the partial output of the \fBmetastat\fR command
after creating a mirror, \fBopt_mirror\fR, consisting of two submirrors,
\fBopt_sub1\fR and \fBopt_sub2\fR.

.sp
.in +2
.nf
# metastat opt_mirror
opt_mirror: Mirror
    Submirror 0: opt_sub1
      State: Okay
    Submirror 1: opt_sub2
      State: Resyncing
    Resync in progress: 15 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 2006130 blocks
    .
    .
    .
.fi
.in -2
.sp

.LP
\fBExample 2 \fRSoft Partition on Mirror with Submirror
.sp
.LP
The following example shows the partial output of the \fBmetastat\fR command
after creating a soft partition, \fBd3\fR, on concat \fBd2\fR, which is built
on a soft partition.

.sp
.in +2
.nf
# metastat
d2: Concat/Stripe
    Size: 204800 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        d0                         0     No    Okay

d0: Soft Partition
    Component: c0t3d0s0
    Status: Okay
    Size: 204800 blocks
        Extent              Start Block  Block count
             0                      129       204800

d3: Soft Partition
    Component: d2
    Status: Okay
    Size: 202752 blocks
         Extent              Start Block  Block count
              0                      129       202752
.fi
.in -2
.sp

.LP
\fBExample 3 \fRTrans Metadevice
.sp
.LP
The following example shows the output of the \fBmetastat\fR command after
creating a trans metadevice.

.sp
.in +2
.nf
# metastat
d2: Concat/Stripe
    Size: 204800 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        d0                         0     No    Okay

d0: Soft Partition
    Component: c0t3d0s0
    Status: Okay
    Size: 204800 blocks
        Extent              Start Block  Block count
             0                      129       204800

d3: Soft Partition
    Component: d2
    Status: Okay
    Size: 202752 blocks
         Extent              Start Block  Block count
              0                      129       202752
.fi
.in -2
.sp

.LP
\fBExample 4 \fRMulti-owner disk set
.sp
.LP
The following example shows the output of the \fBmetastat\fR command with a
multi-owner disk set and application-based mirror resynchronization option.
Application-based resynchronization is set automatically if needed.

.sp
.in +2
.nf
# metastat -s oban
oban/d100: Mirror
    Submirror 0: oban/d10
      State: Okay
    Submirror 1: oban/d11
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Resync option: application based
    Owner: None
    Size: 1027216 blocks (501 MB)

oban/d10: Submirror of oban/d100
    State: Okay
    Size: 1027216 blocks (501 MB)
    Stripe 0:
        Device     Start Block  Dbase     State Reloc Hot Spare
        c1t3d0s0          0     No         Okay

oban/d11: Submirror of oban/d100
    State: Okay
    Size: 1027216 blocks (501 MB)
    Stripe 0:
        Device     Start Block  Dbase     State Reloc Hot Spare
        c1t4d0s0          0     No         Okay
.fi
.in -2
.sp

.SH WARNINGS
.sp
.LP
\fBmetastat\fR displays states as of the time the command is entered. It is
unwise to use the output of the \fBmetastat\fR \fB-p\fR command to create a
\fBmd.tab\fR(4) file for a number of reasons:
.RS +4
.TP
.ie t \(bu
.el o
The output of \fBmetastat\fR \fB-p\fR might show hot spares being used.
.RE
.RS +4
.TP
.ie t \(bu
.el o
It might show mirrors with multiple submirrors. See \fBmetainit\fR(1M) for
instructions for creating multi-way mirrors using \fBmetainit\fR and
\fBmetattach\fR.
.RE
.RS +4
.TP
.ie t \(bu
.el o
A slice may go into an error state after \fBmetastat\fR \fB-p\fR is issued.
.RE
.SH EXIT STATUS
.sp
.LP
The following exit values are returned:
.sp
.ne 2
.na
\fB\fB0\fR\fR
.ad
.RS 6n
Successful completion.
.RE

.sp
.ne 2
.na
\fB\fB>0\fR\fR
.ad
.RS 6n
An error occurred.
.RE

.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Interface Stability	Stable
.TE

.SH SEE ALSO
.sp
.LP
\fBmdmonitord\fR(1M), \fBmetaclear\fR(1M), \fBmetadb\fR(1M),
\fBmetadetach\fR(1M), \fBmetahs\fR(1M), \fBmetainit\fR(1M),
\fBmetaoffline\fR(1M), \fBmetaonline\fR(1M), \fBmetaparam\fR(1M),
\fBmetarecover\fR(1M), \fBmetarename\fR(1M), \fBmetareplace\fR(1M),
\fBmetaroot\fR(1M), \fBmetaset\fR(1M), \fBmetassist\fR(1M), \fBmetasync\fR(1M),
\fBmetattach\fR(1M), \fBmd.tab\fR(4), \fBmd.cf\fR(4), \fBmddb.cf\fR(4),
\fBmd.tab\fR(4), \fBattributes\fR(5), \fBmd\fR(7D)
.sp
.LP
\fI\fR
.SH NOTES
.sp
.LP
Trans metadevices have been replaced by UFS logging. Existing trans devices are
\fBnot\fR logging--they pass data directly through to the underlying device.
See \fBmount_ufs\fR(1M) for more information about UFS logging.