1
2FENCE_AGENT(8)              System Manager's Manual             FENCE_AGENT(8)
3
4
5

NAME

7       fence_pve - Fencing agent for the Proxmox Virtual Environment
8

DESCRIPTION

10       The  fence_pve  agent  can  be used to fence virtual machines acting as
11       nodes in a virtualized cluster.
12
13       fence_pve accepts options on the command line as well  as  from  stdin.
14       Fenced  sends  parameters  through  stdin  when  it  execs  the  agent.
15       fence_pve can be run by itself with command line options.  This is use‐
16       ful for testing and for turning outlets on or off from scripts.
17
18       Vendor URL: http://www.proxmox.com/
19

PARAMETERS

21
22
23       -o, --action=[action]
24              Fencing action (Default Value: reboot)
25
26       -a, --ip=[ip]
27              IP  Address  or  Hostname  of a node within the Proxmox cluster.
28              This parameter is always required.
29
30       -u, --ipport=[port]
31              TCP/UDP port to use for connection with device  (Default  Value:
32              8006)
33
34       -m, --method=[method]
35              Method to fence (onoff|cycle) (Default Value: onoff)
36
37
38       -p, --password=[password]
39              Login password or passphrase
40
41       -S, --password-script=[script]
42              Script to run to retrieve password
43
44       -n, --plug=[id]
45              Id of the virtual machine. This parameter  is  always  required.
46
47
48       -l, --username=[name]
49              Login name (Default Value: root@pam)
50
51       -N, --pve-node=[node_name]
52              Proxmox  node  name on which machine is located. (Must be speci‐
53              fied if not using --pve-node-auto)
54
55       -A, --pve-node-auto
56              Automatically select proxmox node. (This option overrides --pve-
57              node)
58
59       --vmtype
60              Virtual  machine  type  lxc  or  qemu.  (Default: qemu) (Default
61              Value: qemu)
62
63       --nodename
64              Replaced by --pve-node
65
66       -q, --quiet
67              Disable logging to stderr. Does not affect --verbose or --debug-
68              file or logging to syslog.
69
70       -v, --verbose
71              Verbose  mode.  Multiple  -v flags can be stacked on the command
72              line (e.g., -vvv) to increase verbosity.
73
74       --verbose-level
75              Level of debugging detail in output. Defaults to the  number  of
76              --verbose  flags  specified on the command line, or to 1 if ver‐
77              bose=1 in a  stonith  device  configuration  (i.e.,  on  stdin).
78
79
80       -D, --debug-file=[debugfile]
81              Write debug information to given file
82
83       -V, --version
84              Display version information and exit
85
86       -h, --help
87              Display help and exit
88
89       -C, --separator=[char]
90              Separator for CSV created by 'list' operation (Default Value: ,)
91
92
93       --delay=[seconds]
94              Wait X seconds before fencing  is  started  (Default  Value:  0)
95
96
97       --disable-timeout=[true/false]
98              Disable  timeout (true/false) (default: true when run from Pace‐
99              maker 2.0+)
100
101       --login-timeout=[seconds]
102              Wait X seconds for cmd prompt after  login  (Default  Value:  5)
103
104
105       --power-timeout=[seconds]
106              Test  X  seconds  for status change after ON/OFF (Default Value:
107              20)
108
109       --power-wait=[seconds]
110              Wait X seconds after issuing ON/OFF (Default Value: 0)
111
112       --shell-timeout=[seconds]
113              Wait X seconds for cmd prompt  after  issuing  command  (Default
114              Value: 3)
115
116       --stonith-status-sleep=[seconds]
117              Sleep  X  seconds  between  status calls during a STONITH action
118              (Default Value: 1)
119
120       --retry-on=[attempts]
121              Count of attempts to retry power on (Default Value: 1)
122
123

ACTIONS

125
126
127       on     Power on machine.
128
129       off    Power off machine.
130
131       reboot Reboot machine.
132
133       status This returns the status of the plug/virtual machine.
134
135       list   List available plugs with aliases/virtual machines if  there  is
136              support for more then one device. Returns N/A otherwise.
137
138       list-status
139              List  available  plugs  with  aliases/virtual machines and their
140              power state if it can be obtained without  additional  commands.
141
142
143       monitor
144              Check the health of fence device
145
146       metadata
147              Display the XML metadata describing this resource.
148
149       manpage
150               The operational behavior of this is not known.
151
152       validate-all
153              Validate if all required parameters are entered.
154
155

STDIN PARAMETERS

157
158
159       action Fencing action (Default Value: reboot)
160
161       ip     IP  Address  or  Hostname  of a node within the Proxmox cluster.
162              This parameter is always required. Obsoletes: ipaddr
163
164       ipport TCP/UDP port to use for connection with device  (Default  Value:
165              8006)
166
167       method Method to fence (onoff|cycle) (Default Value: onoff)
168
169
170       password
171              Login password or passphrase Obsoletes: passwd
172
173       password_script
174              Script to run  to  retrieve  password  Obsoletes:  passwd_script
175
176
177       plug   Id  of  the  virtual machine. This parameter is always required.
178              Obsoletes: port
179
180       username
181              Login name (Default Value: root@pam) Obsoletes: login
182
183       pve_node
184              Proxmox node name on which machine is located. (Must  be  speci‐
185              fied if not using --pve-node-auto)
186
187       pve_node_auto
188              Automatically select proxmox node. (This option overrides --pve-
189              node)
190
191       vmtype Virtual machine type  lxc  or  qemu.  (Default:  qemu)  (Default
192              Value: qemu)
193
194       nodename
195              Replaced by --pve-node Obsoletes: node_name
196
197       quiet  Disable logging to stderr. Does not affect --verbose or --debug-
198              file or logging to syslog.
199
200       verbose
201              Verbose mode. Multiple -v flags can be stacked  on  the  command
202              line (e.g., -vvv) to increase verbosity.
203
204       verbose_level
205              Level  of  debugging detail in output. Defaults to the number of
206              --verbose flags specified on the command line, or to 1  if  ver‐
207              bose=1  in  a  stonith  device  configuration  (i.e., on stdin).
208
209
210       debug_file
211              Write debug information to given file Obsoletes: debug
212
213       version
214              Display version information and exit
215
216       help   Display help and exit
217
218       separator
219              Separator for CSV created by 'list' operation (Default Value: ,)
220
221
222       delay  Wait  X  seconds  before  fencing  is started (Default Value: 0)
223
224
225       disable_timeout
226              Disable timeout (true/false) (default: true when run from  Pace‐
227              maker 2.0+)
228
229       login_timeout
230              Wait  X  seconds  for  cmd prompt after login (Default Value: 5)
231
232
233       power_timeout
234              Test X seconds for status change after  ON/OFF  (Default  Value:
235              20)
236
237       power_wait
238              Wait X seconds after issuing ON/OFF (Default Value: 0)
239
240       shell_timeout
241              Wait  X  seconds  for  cmd prompt after issuing command (Default
242              Value: 3)
243
244       stonith_status_sleep
245              Sleep X seconds between status calls  during  a  STONITH  action
246              (Default Value: 1)
247
248       retry_on
249              Count of attempts to retry power on (Default Value: 1)
250
251
252
253fence_pve (Fence Agent)           2009-10-20                    FENCE_AGENT(8)
Impressum