The following variables are available as both
sysctl(8)
variables and
loader(8)
tunables:
kern.cam.ctl.debug
|
|
Bit mask of enabled CTL log levels:
|
1
|
log commands with errors;
|
2
|
log all commands;
|
4
|
log data for commands other then READ/WRITE.
|
Defaults to 0.
kern.cam.ctl.ha_id
|
Specifies unique position of this node within High Availability cluster.
Default is 0 -- no HA, 1 and 2 -- HA enabled at specified position.
|
kern.cam.ctl.ha_mode
|
Specifies High Availability cluster operation mode:
|
0
|
Active/Standby -- primary node has backend access and processes requests,
while secondary can only do basic LUN discovery and reservation;
|
1
|
Active/Active -- both nodes have backend access and process requests,
while secondary node synchronizes processing with primary one;
|
2
|
Active/Active -- primary node has backend access and processes requests,
while secondary node forwards all requests and data to primary one;
|
All above modes require established connection between HA cluster nodes.
If connection is not configured, secondary node will report Unavailable
state; if configured but not established -- Transitioning state.
Defaults to 0.
kern.cam.ctl.ha_peer
|
String value, specifying method to establish connection to peer HA node.
Can be "listen IP:port", "connect IP:port" or empty.
|
kern.cam.ctl.ha_link
|
Reports present state of connection between HA cluster nodes:
|
0
|
not configured;
|
1
|
configured but not established;
|
2
|
established.
|
kern.cam.ctl.ha_role
|
Specifies default role of this node:
|
0
|
primary;
|
1
|
secondary.
|
This role can be overridden on per-LUN basis using "ha_role" LUN option,
so that for one LUN one node is primary, while for another -- another.
Role change from primary to secondary for HA modes 0 and 2 closes backends,
the opposite change -- opens.
If there is no primary node (both nodes are secondary, or secondary node has
no connection to primary one), secondary node(s) report Transitioning state.
State with two primary nodes is illegal (split brain condition).