Subversion Repositories configs

Rev

Rev 9 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
# Configures where to put the kdump /proc/vmcore files
2
#
3
# This file contains a series of commands to perform (in order) when a
4
# kernel crash has happened and the kdump kernel has been loaded.  Directives in
5
# this file are only applicable to the kdump initramfs, and have no effect if
6
# the root filesystem is mounted and the normal init scripts are processed
7
#
8
# Currently only one dump target and path may be configured at a time. If dump
9
# to configured dump target fails, the default action will be preformed.
10
# Default action may be configured with the "default" directive below.
11
#
12
# Basics commands supported are:
13
# path <path> 		- Append path to the filesystem device which you are
14
#			  dumping to.  Ignored for raw device dumps.
15
#		 	  If unset, will default to /var/crash.
16
#
17
# core_collector <command> <options>
18
#			- This allows you to specify the command to copy the
19
#			  vmcore.  You could use the dump filtering program
20
#			  makedumpfile, the default one, to retrieve your core,
21
#			  which on some arches can drastically reduce core file
22
#			  size. See /usr/sbin/makedumpfile --help for a list of
23
#			  options. Note that the -i and -g options are not
24
#			  needed here, as the initrd will automatically be
25
#			  populated with a config file appropriate for the
26
#			  running kernel.
27
#			  For ssh dump, scp should be used instead of cp.
28
#
29
# raw <partition>	- Will write /proc/vmcore into raw <partition>.
30
#
31
# nfs <nfs mount>	- Will mount fs and copy /proc/vmcore to
32
#			  <mnt>/<path>/%HOST-%DATE/, supports DNS.
33
#
34
# nfs4 <nfs mount>      - Will use NFSv4 instead of NFSv3
35
#
36
# net <nfs mount>       - This is a deprecated option to transfer vmcore over
37
#			  nfs.  Use "nfs" option instead.
38
#
39
# ssh <user@server>	- Will copy /proc/vmcore to
40
#			  <user@server>:<path>/%HOST-%DATE/ via SSH,
41
#			  supports DNS. If makedumpfile is the core_collector,
42
#			  it is piped to an "ssh" shell, otherwise use the
43
#			  specified core_collector like scp.
44
#			  NOTE: make sure user has necessary write
45
#			  permissions on server
46
#
47
# net <user@server>     - This is a deprecated option to transfer vmcore over
48
#			  ssh.  Use "ssh" option instead.
49
#
50
# <fs type> <partition> - Will mount -t <fs type> <partition> /mnt and copy
51
#		 	  /proc/vmcore to /mnt/<path>/127.0.0.1-%DATE/.
52
#			  NOTE: <partition> can be a device node, label or uuid.
53
#
54
# disk_timeout <seconds>
55
#			- Number of seconds to wait for disks to appear prior
56
#			  to continue to save dump. By default kdump waits
57
#			  180 seconds for the disks to show up it needs. This
58
#			  can be useful in some cases if disk never shows up
59
#			  (Either because disk was removed or because kdump is
60
#			  waiting on wrong disk).
61
#
62
# link_delay <seconds>
63
#			- Some network cards take a long time to initialize, and
64
#			  some spanning tree enabled networks do not transmit
65
#			  user traffic for long periods after a link state
66
#			  changes.  This optional parameter defines a wait
67
#			  period after a link is activated in which the
68
#			  initramfs will wait before attempting to transmit
69
#			  user data.
70
#
71
# kdump_post <binary | script>
72
# 			- This directive allows you to run a specified
73
# 			  executable just after the memory dump process
74
# 			  terminates. The exit status from the dump process
75
# 			  is fed to the kdump_post executable, which can be
76
# 			  used to trigger different actions for success or
77
# 			  failure.
78
#
79
# kdump_pre <binary | script>
80
#			- works just like the kdump_post directive, but instead
81
#			  of running after the dump process, runs immediately
82
#			  before.  Exit status of this binary is interpreted
83
#			  as follows:
84
#			  0 - continue with dump process as usual
85
#			  non 0 - reboot/halt the system
86
#
87
# extra_bins <binaries | shell scripts>
88
# 			- This directive allows you to specify additional
89
# 			  binaries or shell scripts you'd like to include in
90
# 			  your kdump initrd. Generally only useful in
91
# 			  conjunction with a kdump_post binary or script that
92
# 			  relies on other binaries or scripts.
93
#
94
# extra_modules <module(s)>
95
# 			- This directive allows you to specify extra kernel
96
# 			  modules that you want to be loaded in the kdump
97
# 			  initrd, typically used to set up access to
98
# 			  non-boot-path dump targets that might otherwise
99
# 			  not be accessible in the kdump environment. Multiple
100
# 			  modules can be listed, separated by a space, and any
101
# 			  dependent modules will automatically be included.
102
# 			  Module name should be specified without ".ko" suffix.
103
#
104
# options <module> <option list>
105
#			- This directive allows you to specify options to apply
106
#			  to modules in the initramfs.  This directive overrides
107
#			  options specified in /etc/modprobe.conf. Module name
108
#			  should be specified without ".ko" suffix.
109
#
34 - 110
# blacklist <module>
111
#			- The blacklist keyword indicates that all of that
112
#			  particular modules are to be ignored in the initramfs.
113
#			  General terminology for blacklist has been that module
114
#			  is present in initramfs but it is not actually loaded
115
#			  in kernel. This directive can be specified multiple
4 - 116
#			  times or as a space separated list. Module name should
117
#			  be specified without ".ko" suffix.
118
#
119
# sshkey <path>
120
#			- Specifies the path of the ssh identity file you want
121
#			  to use when doing ssh dump. It must be a private key,
122
#			  the default value is /root/.ssh/kdump_id_rsa. When
123
#			  progagating public key, the key is assumed to be
124
#			  identity_file.pub which by default is
125
#			  /root/.ssh/kdump_id_rsa.pub.
126
#
127
# default <reboot | halt | poweroff | shell | mount_root_run_init>
128
#			- Action to preform in case dumping to intended target
129
#			  fails. If no default action is specified, "reboot"
130
#			  is assumed default.
131
#
132
#			  reboot: If the default action is reboot simply reboot
133
#				  the system and loose the core that you are
134
#				  trying to retrieve.
135
#			  halt:   If the default action is halt, then simply
136
#				  halt the system after attempting to capture
137
#				  a vmcore, regardless of success or failure.
138
#			  poweroff: The system will be powered down
139
#			  shell:  If the default action is shell, then drop to
140
#				  an hush session inside the initramfs from
141
#				  where you can try to record the core manually.
142
#				  Exiting this shell reboots the system.
143
#	     mount_root_run_init: Mount root filesystem and run init. Kdump
144
#			  	    initscript will try to save dump to root
145
#			  	    filesystem in /var/crash dir. This will
146
#			  	    likely require a lot more memory to
147
#			  	    be reserved for kdump kernel.
148
#
149
# debug_mem_level <0-3>
150
#                       - Turns on debug/verbose output of kdump scripts
151
#                         regarding free/used memory at various points of
152
#                         execution. Higher level means more debugging output.
153
#                         0 - no output
154
#                         1 - partial /proc/meminfo
155
#                         2 - /proc/meminfo
156
#                         3 - /proc/meminfo + /proc/slabinfo
157
#
158
# force_rebuild <0 | 1>
159
#			- By default, kdump initrd only will be rebuilt when
160
#			  necessary. Specify 1 here to force rebuilding kdump
161
#			  initrd every time when kdump service starts.
9 - 162
#
163
# fence_kdump_args <arg(s)>
164
#			- Command line arguments for fence_kdump_send (it can contain
165
#			all valid arguments except hosts to send notification to).
166
#
167
# fence_kdump_nodes <node(s)>
168
# 			- List of cluster node(s) separated by space to send fence_kdump
169
# 			notification to (this option is mandatory to enable fence_kdump).
4 - 170
 
9 - 171
 
4 - 172
#raw /dev/sda5
173
#ext4 /dev/sda3
174
#ext4 LABEL=/boot
175
#ext4 UUID=03138356-5e61-4ab3-b58e-27507ac41937
176
#net my.server.com:/export/tmp
177
#net user@my.server.com
178
path /var/crash
179
core_collector makedumpfile -c --message-level 1 -d 31
180
#core_collector scp
181
#core_collector cp --sparse=always
182
#extra_bins /bin/cp
183
#link_delay 60
184
#kdump_post /var/crash/scripts/kdump-post.sh
185
#extra_bins /usr/bin/lftp
186
#disk_timeout 30
187
#extra_modules gfs2
188
#options modulename options
189
#default shell
190
#debug_mem_level 0
191
#force_rebuild 1
192
#sshkey /root/.ssh/kdump_id_rsa
9 - 193
#fence_kdump_args -p 7410 -f auto -c 0 -i 10
194
#fence_kdump_nodes node1 node2