晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。   林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。   见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝)   既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。   南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。 .
Prv8 Shell
Server : Apache
System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64
User : rainic ( 1014)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /usr/share/doc/kexec-tools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/doc/kexec-tools/kdump-in-cluster-environment.txt
Kdump-in-cluster-environment HOWTO

Introduction

Kdump is a kexec based crash dumping mechansim for Linux. This docuement 
illustrate how to configure kdump in cluster environment to allow the kdump 
crash recovery service complete without being preempted by traditional power
fencing methods. 

Overview

Kexec/Kdump

Details about Kexec/Kdump are available in Kexec-Kdump-howto file and will not
be described here.

fence_kdump

fence_kdump is an I/O fencing agent to be used with the kdump crash recovery 
service. When the fence_kdump agent is invoked, it will listen for a message 
from the failed node that acknowledges that the failed node is executing the 
kdump crash kernel. Note that fence_kdump is not a replacement for traditional
fencing methods. The fence_kdump agent can only detect that a node has entered
the kdump crash recovery service. This allows the kdump crash recovery service
complete without being preempted by traditional power fencing methods. 

fence_kdump_send

fence_kdump_send is a utility used to send messages that acknowledge that the 
node itself has entered the kdump crash recovery service. The fence_kdump_send
utility is typically run in the kdump kernel after a cluster node has 
encountered a kernel panic. Once the cluster node has entered the kdump crash 
recovery service, fence_kdump_send will periodically send messages to all 
cluster nodes. When the fence_kdump agent receives a valid message from the 
failed nodes, fencing is complete.

How to configure Pacemaker cluster environment:

If we want to use kdump in Pacemaker cluster environment, fence-agents-kdump
should be installed in every nodes in the cluster. You can achieve this via
the following command:

  # yum install -y fence-agents-kdump

Next is to add kdump_fence to the cluster. Assuming that the cluster consists 
of three nodes, they are node1, node2 and node3, and use Pacemaker to perform
resource management and pcs as cli configuration tool. 

With pcs it is easy to add a stonith resource to the cluster. For example, add
a stonith resource named mykdumpfence with fence type of fence_kdump via the 
following commands:
  
   # pcs stonith create mykdumpfence fence_kdump \
     pcmk_host_check=static-list pcmk_host_list="node1 node2 node3"
   # pcs stonith update mykdumpfence pcmk_monitor_action=metadata --force
   # pcs stonith update mykdumpfence pcmk_status_action=metadata --force
   # pcs stonith update mykdumpfence pcmk_reboot_action=off --force
   
Then enable stonith
   # pcs property set stonith-enabled=true

How to configure kdump:

Actually there are two ways how to configure fence_kdump support:

1) Pacemaker based clusters
     If you have successfully configured fence_kdump in Pacemaker, there is
     no need to add some special configuration in kdump. So please refer to
     Kexec-Kdump-howto file for more information.

2) Generic clusters
     For other types of clusters there are two configuration options in
     kdump.conf which enables fence_kdump support:

       fence_kdump_nodes <node(s)>
            Contains list of cluster node(s) separated by space to send
            fence_kdump notification to (this option is mandatory to enable
            fence_kdump)

       fence_kdump_args <arg(s)>
            Command line arguments for fence_kdump_send (it can contain
            all valid arguments except hosts to send notification to)

     These options will most probably be configured by your cluster software,
     so please refer to your cluster documentation how to enable fence_kdump
     support.

Please be aware that these two ways cannot be combined and 2) has precedence
over 1). It means that if fence_kdump is configured using fence_kdump_nodes
and fence_kdump_args options in kdump.conf, Pacemaker configuration is not
used even if it exists.

haha - 2025