Pacemaker コマンド一覧

crm
crm_attribute - Manage node's attributes and cluster options.
crm_failcount - A convenience wrapper for crm_attribute
crm_mon - Provides a summary of cluster's current state.
crm_node - Tool for displaying low-level node information
crm_resource - Perform tasks related to cluster resources.
crm_shadow - Perform configuration changes in a sandbox before updating the live cluster.
crm_standby - A convenience wrapper for crm_attribute
crm_uuid
crm_verify - Check a (complete) confiuration for syntax and common conceptual errors.
crmadmin - Development tool for performing some crmd-specific commands.

crm(Pacemaker)コマンド一覧

  • cib

cib new [withstatus] [force] [empty]
cib delete
cib reset
cib commit
cib use
cib diff
cib list
cib import {|} []
cib cibstatus -- CIB status management and editing
cib cibstatus load {|shadow:|live}
cib cibstatus save
cib cibstatus origin
cib cibstatus show
cib cibstatus node {online|offline|unclean}
cib cibstatus op [] []

  • resource

resource status,show,list
resource start
resource stop
resource restart
resource promote
resource demote
resource manage
resource unmanage
resource migrate,move [] [] [force]
resource unmigrate,unmove [] [] [force]
resource param set
resource meta set
resource failcount set
resource cleanup []
resource refresh
resource reprobe

  • node

node status
node show,list
node standby
node online
node fence
node clearstate
node delete
node attribute set
node status-attr set

  • options

options skill-level {operator | administrator | expert}
options user
options editor
options pager
options sort-elements {yes|no}
options output
options colorscheme
options check-frequency
options check-mode
options show
options save

  • configure

configure node [:] [attributes = [=...]]
configure primitive
configure monitor
configure group
configure clone
configure ms,master
configure location
configure colocation,collocation
configure order
configure property
configure rsc_defaults
configure op_defaults
configure show
configure edit
configure delete
configure rename
configure refresh
configure erase
configure ptest
configure cibstatus
configure template
configure commit
configure verify
configure upgrade
configure save
configure load
configure xml

  • ra

ra classes
ra list []
ra meta,info [:[:]]
ra providers []

  • status

Pacemakerのインストール試行

■基本資料
http://gihyo.jp/admin/serial/01/pacemaker

システム構成

  • RHEL 5.6
  • pacemaker + heartbeat

■インストール
(ノード1, ノード2で実施)
# rpm -ihv openib-1.4.1-5.0.1.el5.noarch.rpm
# rpm -ihv --nodeps libibverbs-devel-1.1.3-2.el5.i386.rpm libibverbs-1.1.3-2.el5.i386.rpm
# rpm -ihv libtool-ltdl-1.5.22-7.el5_4.i386.rpm
# rpm -ihv lm_sensors-2.10.7-9.el5.i386.rpm
# rpm -ihv librdmacm-1.0.10-1.el5.i386.rpm
# rpm -ihv perl-TimeDate-1.16-5.el5.noarch.rpm
# rpm -ihv openhpi-libs-2.14.0-5.el5.i386.rpm
# rpm -ihv openhpi-devel-2.14.0-5.el5.i386.rpm
# rpm -ihv openhpi-2.14.0-5.el5.i386.rpm

# tar zxvf pacemaker-1.0.11-1.2.1.el5.i386.repo.tar.gz
# yum -c /tmp/pacemaker-1.0.11-1.2.1.el5.i386.repo/pacemaker.repo install pacemaker heartbeat pm_extras
# chkconfig --level 2345 heartbeat off

# vi /etc/ha.d/ha.cf
# vi /etc/ha.d/authkeys
# chmod 0600 /etc/ha.d/authkeys

# crm configure property no-quorum-policy="ignore" stonith-enabled="false"
# crm configure rsc_defaults resource-stickiness="INFINITY" migration-threshold="1"

ルータの基本設定

IPv6を有効にする
 工場出荷時ではIPv6が利用できない機器があります。
 機器でIPv6を有効にするために設定を行います。<設定手順>
1) configure terminal
2) sdm prefer dual-ipv4-and-ipv6 default
3) reload
4) ipv6 cef

IPv6アドレスの設定
 インターフェースにIPv6アドレスを設定します。<設定手順>
1) configure terminal
2) interface interface-id
3) ipv6 address ipv6-address

●特権モードパスワード設定
 コンソールからのスイッチへのログインパスワードを設定します。<設定手順>
1) configure terminal
2) enable password password
3) enable password secret password
シークレットパスワードの場合
4) end

Windows XPにIPv6をインストール

コマンドプロンプトで以下コマンド実行
>ipv6 install

http://www.ipv6style.jp/jp/tryout/20030120/index.shtml

IPv6対応状況

  • IPv6普及・高度化推進協会 v6pc.jp AAAA IPv6 address = 2001:218:2001:3003::66c
  • 日立製作所 ns1.hitachi.co.jp AAAA IPv6 address = 2001:240:400::8591:e0c9
  • ソニー ns.ssd.ad.jp AAAA IPv6 address = 2001:cf8::9619:53