1medstat(1M)             System Administration Commands             medstat(1M)
2
3
4

NAME

6       medstat - check the status of mediator hosts for a given diskset
7

SYNOPSIS

9       /usr/sbin/medstat [-q] -s setname
10
11

DESCRIPTION

13       If  a  specified  diskset  has  been  configured for mediators, medstat
14       attempts to contact these hosts to  see  if  they  are  accessible  and
15       returns the results of the communication.
16

OPTIONS

18       -q             This optional argument disables the printing of informa‐
19                      tive text. When used with -q, medstat still prints error
20                      messages and returns a result code.
21
22
23       -s setname     Specifies  the  name  of a diskset on which medstat will
24                      work.
25
26

EXAMPLES

28       Example 1  Checking diskset
29
30
31       This example checks the mediator hosts for the selected diskset.
32
33
34         # medstat -s relo-red
35
36
37
38
39       The name of the diskset is relo-red. The  medstat  command  prints  the
40       status  for each mediator host. Additionally, if the mediator quorum is
41       met, either through a ``golden'' mediator host or because half+1 of the
42       mediator  hosts  respond, the exit code is 0. If the quorum is not met,
43       then the exit code is 1. If no mediator hosts have been configured  for
44       the  named  diskset,  the exit code is 2. The status field will contain
45       one of the following values: Unreachable,  Bad,  Fatal,  or  Ok,  where
46       Unreachable  indicates  an  RPC/communication problem, Bad indicates an
47       error in the mediator data, Fatal indicates any other error  condition,
48       and Ok indicates no error conditions.
49
50

FILES

52       /etc/lvm/meddb    Contains  the  mediator data for a host that has been
53                         selected as a mediator host.
54
55

EXIT STATUS

57       The following exit values are returned:
58
59       0     Successful completion.
60
61
62       >0    An error occurred.
63
64

ATTRIBUTES

66       See attributes(5) for descriptions of the following attributes:
67
68
69
70
71       ┌───────────────────────────────────────────────────────────┐
72ATTRIBUTE TYPE                ATTRIBUTE VALUE              
73       │Availability                  SUNWmdu                      │
74       │Interface Stability           Evolving                     │
75       └───────────────────────────────────────────────────────────┘
76

SEE ALSO

78       metaclear(1M), metadb(1M),  metadetach(1M),  metahs(1M),  metainit(1M),
79       metaoffline(1M),  metaonline(1M), metaparam(1M), metareplace(1M), meta‐
80       root(1M),  metaset(1M),  metastat(1M),   metasync(1M),   metattach(1M),
81       md.cf(4), md.tab(4), mddb.cf(4), meddb(4), mediator(7D)
82
83
84       Sun Cluster documentation, Solaris Volume Manager Administration Guide
85

NOTES

87       This command is designed for use in the high availability product.
88
89
90
91SunOS 5.11                        18 Jan 2001                      medstat(1M)
Impressum