2 .\" Copyright (c) 2001, Sun Microsystems, Inc. All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH MEDSTAT 1M "Jan 18, 2001"
8 medstat \- check the status of mediator hosts for a given diskset
12 \fB/usr/sbin/medstat\fR [\fB-q\fR] \fB-s\fR \fIsetname\fR
18 If a specified diskset has been configured for mediators, \fBmedstat\fR
19 attempts to contact these hosts to see if they are accessible and returns the
20 results of the communication.
28 This optional argument disables the printing of informative text. When used
29 with \fB-q\fR, \fBmedstat\fR still prints error messages and returns a result
36 \fB\fB-s\fR \fB\fIsetname\fR\fR \fR
39 Specifies the name of a diskset on which \fBmedstat\fR will work.
44 \fBExample 1 \fR Checking diskset
47 This example checks the mediator hosts for the selected diskset.
59 The name of the diskset is \fBrelo-red\fR. The \fBmedstat\fR command prints the
60 status for each mediator host. Additionally, if the mediator quorum is met,
61 either through a ``golden'' mediator host or because half+1 of the mediator
62 hosts respond, the exit code is 0. If the quorum is not met, then the exit code
63 is 1. If no mediator hosts have been configured for the named diskset, the exit
64 code is 2. The status field will contain one of the following values:
65 Unreachable, Bad, Fatal, or Ok, where Unreachable indicates an
66 RPC/communication problem, Bad indicates an error in the mediator data, Fatal
67 indicates any other error condition, and Ok indicates no error conditions.
73 \fB\fB/etc/lvm/meddb\fR\fR
76 Contains the mediator data for a host that has been selected as a mediator
83 The following exit values are returned:
90 Successful completion.
105 See \fBattributes\fR(5) for descriptions of the following attributes:
113 ATTRIBUTE TYPE ATTRIBUTE VALUE
115 Interface Stability Evolving
121 \fBmetaclear\fR(1M), \fBmetadb\fR(1M), \fBmetadetach\fR(1M), \fBmetahs\fR(1M),
122 \fBmetainit\fR(1M), \fBmetaoffline\fR(1M), \fBmetaonline\fR(1M),
123 \fBmetaparam\fR(1M), \fBmetareplace\fR(1M), \fBmetaroot\fR(1M),
124 \fBmetaset\fR(1M), \fBmetastat\fR(1M), \fBmetasync\fR(1M), \fBmetattach\fR(1M),
125 \fBmd.cf\fR(4), \fBmd.tab\fR(4), \fBmddb.cf\fR(4), \fBmeddb\fR(4),
129 Sun Cluster documentation, \fISolaris Volume Manager Administration Guide\fR
133 This command is designed for use in the high availability product.