System
2004-12-20
Man Page Of METASTAT
Maintenance Commands METASTAT(1M)
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, concatena-
tions 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 speci-
fied 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 mas-
ter and log devices is also displayed.
hot_spare_pool...
Displays the status of the specified hot spare pool(s).
EXAMPLES
SunOS 5.7 Last change: 19 June 1996 1
Maintenance Commands METASTAT(1M)
The following example shows the partial output of the metas-
tat 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:
o The output of metastat -p may show hot spares being used.
o It may show mirrors with multiple submirrors. See
metainit for instructions for creating multi-way mirrors
using metainit and metattach.
o A slice may go into an error state after metastat -p is
issued.
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 Refer-
ence
SunOS 5.7 Last change: 19 June 1996 2
历史上的今天
- 2011-12-20 JAVA连接池导致的超高回滚率 - rlbk=1
- 2008-12-20 《深入解析Oracle》一书勘误表
- 2008-12-20 置顶:《数据安全警示录》及个人图书信息汇总
- 2006-12-20 圣诞快乐与搜索引擎的力量
- 2005-12-20 Oracle Diag:如何处理ORA-600 2662错误
- 2005-12-20 骄阳似我-俺在八达岭滑雪的照片