1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LifeKeeper for Linux コマンドあんちょこ(Ver9.2.1)

Last updated at Posted at 2024-01-22

LifeKeeper for Linux コマンドあんちょこ(Ver9.2.1)

LifeKeeperドキュメントリンク
※各CommandのPathは、「/opt/LifeKeeper/bin/」です。

●LifeKeeper自体

内容 コマンド 参考 HAモニタでのコマンド
LK停止 lkstop monstop
監視一時停止 lkstop -f
LK起動 lkstart monstart
LK起動確認 lktest プロセス(lcm,lcd,ttymonlcm)が表示さていればLK起動状態 monshow
License適用 lkkeyins file フルパスまたは相対パス
License確認 typ_list -l UNLICENSED=Core License適用
EVAL=Temporary License適用
EVAL=Temporary License適用
PERMANENT=Recovery Kit適用
NEEDED=Recovery Kit不適用
SwitchBackType ins_list INTELLIGENT=無効(default)
AUTOMATIC=有効
設定flag一覧 flg_list
flag作成 flg_create [-d destname] -f flag flag:フラグファイル名
destname:サーバー名
flag削除 flg_remove [-d destname] -f flag flag:フラグファイル名
destname:サーバー名
ログの参照 lk_log [-t number] [-f] log number:行数(整数値)
-fオプションはリアルタイム
/var/log/lifekeeperを参照可
ノード指定のコマンド実行 lcdremexec -d destname -- "command" destname:サーバー名
command:実行コマンド
リソースインスタンスの一覧 ins_list [-f x] x:任意の区切り文字
Pathの状態確認 net_list [-f x] [指定内容] x:任意の1文字(区切り文字)
ALIVE=ノード間の通信可
DEAD=ノード間の通信不可
monsp
monpath

●GUI

内容 コマンド 参考
GUIClient起動 lkGUIapp
GUIServer起動 lkGUIserver start
GUIServer停止 lkGUIserver stop

●リソース

内容 コマンド 参考 HAモニタでのコマンド
リソース状態 ins_list [-f x] x:任意の区切り文字
ISP=Active
OSU=Standby
OSF=Failed
monshow
リソース状態一覧 lcdstatus [-d destname] destname:サーバー名 monshow
リソース起動 perform_action -t tagname -a restore [-b] tagname :リソース名



monbegin
リソース停止 perform_action -t tagname -a remove tagname :リソース名 monend
switch over/switch back perform_action -t tagname -a restore [-b] tagname :リソース名 monswap

●レプリケーション

内容 コマンド 参考
Replication状態 mirror_status tagname tagname :リソース名
Replication一時停止 mirror_action tagname pause [source] [target] tagname :リソース名
source:ミラー元サーバ
target:ミラー先サーバ
Replication再開 mirror_action tagname resume [source] [target]
Replication全同期 mirror_action tagname fullresync [source] [target]
Replication強制開始 mirror_action tagname force [source] [target]

●ポリシー管理

内容 コマンド 参考
ポリシー確認 lkpolicy -g -v -gオプション:デフォルトから変更された箇所のみ出力
特定のリソースのfailover無効化 lkpolicy -s Failover -E tag="tagname"
特定のリソースのfailover有効化 lkpolicy -s Failover -e tag="tagname"
特定のリソースのlocal recovery無効化 lkpolicy -s LocalRecovery -E tag="tagname"
特定のリソースのlocal recovery有効化 lkpolicy -s LocalRecovery -e tag="tagname"
local recovery回数超過によるfailover有効化 lkpolicy -s TemporalRecovery -e recoverylimit=number period=number number:整数値

●その他

内容 コマンド 参考 HAモニタでのコマンド
LK構成情報のbackup lkbackup -c [--cluster]
LK構成情報のrestore lkbackup -x -f filepath
hostname/ IPアドレスの変更 lk_chg_value -o old_value -n new_value -v
LK情報の一括取得 lksupport [--full] monts
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?