1VOTEQUORUM_GETINFO(C3o)rosync Cluster Engine Programmer's ManVuOaTlEQUORUM_GETINFO(3)
2
3
4

NAME

6       votequorum_getinfo - Get information about the VoteQuorum service
7

SYNOPSIS

9       #include <corosync/votequorum.h>
10
11       int   votequorum_getinfo(votequorum_handle_t   *handle,   unsigned  int
12       nodeid, struct votequorum_info *info);
13

DESCRIPTION

15       The votequorum_getinfo function is used to get  information  about  the
16       voting system and its nodes.
17
18       The  nodeid  argument indicates which node information should be stored
19       in the votequorum_info structure.
20
21       The votequorum_info structure is defined as follows:
22
23
24       struct votequorum_info {
25               unsigned int node_id;
26               unsigned int node_state;
27               unsigned int node_votes;
28               unsigned int node_expected_votes;
29               unsigned int highest_expected;
30               unsigned int total_votes;
31               unsigned int quorum;
32               unsigned int flags;
33               unsigned int qdevice_votes;
34               char qdevice_name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN];
35       };
36
37       The node_state is defined as:
38
39       #define VOTEQUORUM_NODESTATE_MEMBER     1
40       #define VOTEQUORUM_NODESTATE_DEAD       2
41       #define VOTEQUORUM_NODESTATE_LEAVING    3
42
43       The flags are defined as:
44
45       #define VOTEQUORUM_INFO_TWONODE                 1
46       #define VOTEQUORUM_INFO_QUORATE                 2
47       #define VOTEQUORUM_INFO_WAIT_FOR_ALL            4
48       #define VOTEQUORUM_INFO_LAST_MAN_STANDING       8
49       #define VOTEQUORUM_INFO_AUTO_TIE_BREAKER       16
50       #define VOTEQUORUM_INFO_ALLOW_DOWNSCALE        32
51       #define VOTEQUORUM_INFO_QDEVICE_REGISTERED     64
52       #define VOTEQUORUM_INFO_QDEVICE_ALIVE         128
53       #define VOTEQUORUM_INFO_QDEVICE_CAST_VOTE     256
54       #define VOTEQUORUM_INFO_QDEVICE_MASTER_WINS   512
55
56
57       The members starting node_ hold information specific to  the  requested
58       nodeid, the other are general to the voting system.
59

RETURN VALUE

61       This  call  returns  the CS_OK value if successful, otherwise a generic
62       error is returned.
63

ERRORS

65       CS_ERR_TRY_AGAIN Resource temporarily unavailable
66
67       CS_ERR_INVALID_PARAM Invalid argument
68
69       CS_ERR_ACCESS Permission denied
70
71       CS_ERR_LIBRARY The connection failed
72
73       CS_ERR_INTERRUPT System call interrupted by a signal
74
75       CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
76
77       CS_ERR_MESSAGE_ERROR Incorrect auth message received
78
79       CS_ERR_NO_MEMORY Not enough memory to complete the requested task
80
81

SEE ALSO

83       votequorum_overview(3),   votequorum_initialize(3),   votequorum_final‐
84       ize(3),   votequorum_trackstart(3),  votequorum_trackstop(3),  votequo‐
85       rum_fd_get(3), votequorum_dispatch(3), votequorum_context_set(3), vote‐
86       quorum_context_get(3),        votequorum_setexpected(3),       votequo‐
87       rum_setvotes(3)
88
89corosync Man Page                 2021-06-03             VOTEQUORUM_GETINFO(3)
Impressum