metastat (1M)
Table of Contents

NAME

metastat - display status for metadevice or hot spare pool

SYNOPSIS

metastat -h
metastat [ -s setname ] [ -p ] [ -t ] [ metadevice... ] [ hot_spare_pool... ]

AVAILABILITY

/usr/opt/SUNWmd/sbin

DESCRIPTION

The metastat command displays the current status for each metadevice (including stripes, concatenations, concatenations of stripes, mirrors, RAID5, and trans devices) or hot spare pool, or of specified metadevices or hot spare pools.

It is helpful to run the metastat command after using the metattach command to view the status of the metadevice.

OPTIONS

-h
Displays usage message.

-p
Displays the list of active metadevices and hot spare pools in a format like md.tab.

-s setname
Specifies the name of the diskset on which metastat will work. Using the -s option will cause the command to perform its administrative function within the specified diskset. Without this option, the command will perform its function on metadevices and/or hot spare pools in the local diskset.

-t
Prints 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.

metadevice...
Displays the status of the specified metadevice(s). If a trans metadevice is specified, the status of the master and log devices is also displayed.

hot_spare_pool...
Displays the status of the specified hot spare pool(s).

EXAMPLES

The following example shows the partial output of the metastat command after creating a mirror, d0, consisting of two submirrors, d70 and d80.

# metastat d0
d0: Mirror
Submirror 0: d80
State: Okay
Submirror 1: d70
State: Resyncing
Resync in progress: 15 % done
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 2006130 blocks
.
.
.

WARNING

metastat prints states as of the time the command is entered. It is unwise to use the output of the metastat -p command to create a md.tab(4) file for a number of reasons:

SEE ALSO

metaclear(1M), metadb(1M), metadetach(1M), metahs(1M), metainit(1M), metaoffline(1M), metaonline(1M), metaparam(1M), metareplace(1M), metaroot(1M), metaset(1M), metasync(1M), metattach(1M), md.tab(4), md.cf(4), mddb.cf(4)

Solstice DiskSuite User's Guide, Solstice DiskSuite Reference