Fence na.conf: Difference between revisions

From Alteeve Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{na_header}}
{{na_header}}


'''NOTE''': The comments in this file need to be update, please don't trust them.
This is the common Node Assassin configuration file that exists in <span class="code">/etc/na/</span>. It '''must''' be updated to match your setup in order for your Node Assassin to work properly.
 
This is the common Node Assassin configuration file that exists in <span class="code">/etc/na/</span>.


* Download the [http://nodeassassin.org/files/fence_na/fence_na.conf source code].
<source lang="bash">
<source lang="bash">
# This is the main configuration file for the Node Assassin fence device.
# This is the main configuration file for the Node Assassin fence device.
Line 12: Line 11:
# Node Assassin - Fence Agent
# Node Assassin - Fence Agent
# Digimer; digimer@alteeve.com
# Digimer; digimer@alteeve.com
# Mar. 05, 2010.
# Jun. 27, 2010
# Version: 0.1.003
# Version: 1.1.5
#
# This software is released under the GPL v2. See the LICENSE file for a copy
# of the GPL v2.




Line 26: Line 28:
system::na_num = 1
system::na_num = 1


# Version
# Version of the fence_na fence agent.
system::agent_version = 0.1.003
system::agent_version = 1.1.5.1


# This is the log file. If unset, no logging will occur. If using '/var/log/',
# This is the log file. If unset, no logging will occur. If using '/var/log/',
Line 34: Line 36:
# misconfiguration.
# misconfiguration.
#system::log = /var/log/fence_na.log
#system::log = /var/log/fence_na.log
system::log = /tmp/fence_na.log
system::log = /var/log/fence_na.log


# If set to '1', messages to STDOUT will be surpressed except in the event of
# If set to '1', messages to STDOUT will be surpressed except in the event of
# errors. This can be overridden at the command line with the '-q' switch.
# errors. This can be overridden at the command line with the '-q' switch.
system::quiet = 0
system::quiet = 0
# Set this to '1' to enable extra debug information. Ignored if 'system::quiet'
# is set.
system::debug = 0


# This is the authentication information... It is currently a simple plain text
# This is the authentication information... It is currently a simple plain text
# compare, but this will change prior to first release.
# compare, but this will change prior to first release.
system::username = ariel
system::username = motoko
system::password = gr0tt0
system::password = secret




Line 55: Line 61:


# The nodes name. This must match exactly with the name set in the given node.
# The nodes name. This must match exactly with the name set in the given node.
node::1::name = Ariel
na::1::na_name = Motoko
 
# This is the IP address and port where I will connect to this node at.
# This is the IP address and port where I will connect to this node at.
# NOTE: THIS MUST MATCH THE VALUE USED IN '/etc/cluster.conf'! If you used a
# NOTE: THIS MUST MATCH THE VALUE USED IN '/etc/cluster.conf'! If you used a
Line 61: Line 68:
# If this doesn't match the 'ipaddr' argument sent by the 'fenced' daemon the
# If this doesn't match the 'ipaddr' argument sent by the 'fenced' daemon the
# fence will not work properly!
# fence will not work properly!
node::1::ipaddr = ariel.alteeve.com
na::1::ipaddr = motoko.alteeve.com
node::1::tcp_port = 238
na::1::tcp_port = 238
 
# This is the number of nodes supported by this Node Assassin
# This is the number of nodes supported by this Node Assassin
# (1 node = 2 ports; odd # = reset, even # = power)
# (1 node = 2 ports; odd # = reset, even # = power)
node::1::ports = 4
na::1::max_nodes = 4
 
# These values are set when the node assassin program switch is run.
# These values are set when the node assassin program switch is run.
node::1::mac = 00:09:30:ff:f0:8a
# NOT YET IMPLEMENTED.
node::1::netmask = 255.255.255.0
na::1::mac = 02:00:00:FF:F0:AA
node::1::gateway = 192.168.1.1
na::1::netmask = 255.255.255.0
na::1::gateway = 192.168.1.1
 
# These are aliases for each Node Assassin port. They should match the name or
# URI of the node connected to the given port. This is optional but will make
# the fenced 'list' argument more accurate and sane. If a port is listed here,
# then the 'list' action will return '<node_id>,<value>'. If a port is not
# defined, 'list' will return '<node_id>,<node::X::name-node_id>'. If a port is
# set to 'unused', it will be skipped when replying to a 'list'.
na::1::alias::1 = an_node01.alteeve.com
na::1::alias::2 = an_node02.alteeve.com
na::1::alias::3 = unused
na::1::alias::4 = unused
</source>
</source>


{{na_footer}}
{{na_footer}}

Latest revision as of 17:01, 25 August 2010

 Node Assassin :: Fence na.conf

This is the common Node Assassin configuration file that exists in /etc/na/. It must be updated to match your setup in order for your Node Assassin to work properly.

# This is the main configuration file for the Node Assassin fence device.
# 
# This can support one or more fence devices.
#
# Node Assassin - Fence Agent
# Digimer; digimer@alteeve.com
# Jun. 27, 2010
# Version: 1.1.5
#
# This software is released under the GPL v2. See the LICENSE file for a copy
# of the GPL v2.


###############################################################################
# System:                                                                     #
# - Here you setup general values for the fence agent and any/all nodes.      #
###############################################################################

# This must be set to the number of Node Assassin devices you are using. It
# must be a positive integer. 
#system::na_num		=	1
system::na_num		=	1

# Version of the fence_na fence agent.
system::agent_version	=	1.1.5.1

# This is the log file. If unset, no logging will occur. If using '/var/log/',
# be sure that this agent is able to create or edit the file. The default is to
# write to '/tmp' to prevent accidental failure of the agent due to
# misconfiguration.
#system::log		=	/var/log/fence_na.log
system::log		=	/var/log/fence_na.log

# If set to '1', messages to STDOUT will be surpressed except in the event of
# errors. This can be overridden at the command line with the '-q' switch.
system::quiet		=	0

# Set this to '1' to enable extra debug information. Ignored if 'system::quiet'
# is set.
system::debug		=	0

# This is the authentication information... It is currently a simple plain text
# compare, but this will change prior to first release.
system::username	=	motoko
system::password	=	secret


###############################################################################
# Devices:                                                                    #
# - Here you setup each fence device. There must be a corresponding           #
#   'node::X::var' for each node where 'X' is between 1 and 'system::na_num'. #
###############################################################################

### Define values for Node 1.

# The nodes name. This must match exactly with the name set in the given node.
na::1::na_name		=	Motoko

# This is the IP address and port where I will connect to this node at.
# NOTE: THIS MUST MATCH THE VALUE USED IN '/etc/cluster.conf'! If you used a
# resolvable name there, use the same name here. Vice versa for IP addresses.
# If this doesn't match the 'ipaddr' argument sent by the 'fenced' daemon the
# fence will not work properly!
na::1::ipaddr		=	motoko.alteeve.com
na::1::tcp_port		=	238

# This is the number of nodes supported by this Node Assassin
# (1 node = 2 ports; odd # = reset, even # = power)
na::1::max_nodes	=	4

# These values are set when the node assassin program switch is run.
# NOT YET IMPLEMENTED.
na::1::mac		=	02:00:00:FF:F0:AA
na::1::netmask		=	255.255.255.0
na::1::gateway		=	192.168.1.1

# These are aliases for each Node Assassin port. They should match the name or
# URI of the node connected to the given port. This is optional but will make
# the fenced 'list' argument more accurate and sane. If a port is listed here,
# then the 'list' action will return '<node_id>,<value>'. If a port is not
# defined, 'list' will return '<node_id>,<node::X::name-node_id>'. If a port is
# set to 'unused', it will be skipped when replying to a 'list'.
na::1::alias::1		=	an_node01.alteeve.com
na::1::alias::2		=	an_node02.alteeve.com
na::1::alias::3		=	unused
na::1::alias::4		=	unused

 

Input, advice, complaints and meanderings all welcome!
Digimer digimer@alteeve.ca https://alteeve.ca/w legal stuff:  
All info is provided "As-Is". Do not use anything here unless you are willing and able to take resposibility for your own actions. © 1997-2013
Naming credits go to Christopher Olah!
In memory of Kettle, Tonia, Josh, Leah and Harvey. In special memory of Hannah, Jack and Riley.