Subversion Repositories configs

Rev

Rev 9 | Go to most recent revision | Details | 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
#
110
# blacklist <module|directory>
111
#			- Prevents modules from being loaded in the initframfs,
112
#			  either directly during auto-created insmod calls or as
113
#			  a dependency of another module load. A specific module
114
#			  or a directory can be specified. In the latter case,
115
#			  all modules found below the specified directory will
116
#			  be excluded. This directive can be specified multiple
117
#			  times or as a space separated list. Module name should
118
#			  be specified without ".ko" suffix.
119
#
120
# sshkey <path>
121
#			- Specifies the path of the ssh identity file you want
122
#			  to use when doing ssh dump. It must be a private key,
123
#			  the default value is /root/.ssh/kdump_id_rsa. When
124
#			  progagating public key, the key is assumed to be
125
#			  identity_file.pub which by default is
126
#			  /root/.ssh/kdump_id_rsa.pub.
127
#
128
# default <reboot | halt | poweroff | shell | mount_root_run_init>
129
#			- Action to preform in case dumping to intended target
130
#			  fails. If no default action is specified, "reboot"
131
#			  is assumed default.
132
#
133
#			  reboot: If the default action is reboot simply reboot
134
#				  the system and loose the core that you are
135
#				  trying to retrieve.
136
#			  halt:   If the default action is halt, then simply
137
#				  halt the system after attempting to capture
138
#				  a vmcore, regardless of success or failure.
139
#			  poweroff: The system will be powered down
140
#			  shell:  If the default action is shell, then drop to
141
#				  an hush session inside the initramfs from
142
#				  where you can try to record the core manually.
143
#				  Exiting this shell reboots the system.
144
#	     mount_root_run_init: Mount root filesystem and run init. Kdump
145
#			  	    initscript will try to save dump to root
146
#			  	    filesystem in /var/crash dir. This will
147
#			  	    likely require a lot more memory to
148
#			  	    be reserved for kdump kernel.
149
#
150
# debug_mem_level <0-3>
151
#                       - Turns on debug/verbose output of kdump scripts
152
#                         regarding free/used memory at various points of
153
#                         execution. Higher level means more debugging output.
154
#                         0 - no output
155
#                         1 - partial /proc/meminfo
156
#                         2 - /proc/meminfo
157
#                         3 - /proc/meminfo + /proc/slabinfo
158
#
159
# force_rebuild <0 | 1>
160
#			- By default, kdump initrd only will be rebuilt when
161
#			  necessary. Specify 1 here to force rebuilding kdump
162
#			  initrd every time when kdump service starts.
163
 
164
#raw /dev/sda5
165
#ext4 /dev/sda3
166
#ext4 LABEL=/boot
167
#ext4 UUID=03138356-5e61-4ab3-b58e-27507ac41937
168
#net my.server.com:/export/tmp
169
#net user@my.server.com
170
path /var/crash
171
core_collector makedumpfile -c --message-level 1 -d 31
172
#core_collector scp
173
#core_collector cp --sparse=always
174
#extra_bins /bin/cp
175
#link_delay 60
176
#kdump_post /var/crash/scripts/kdump-post.sh
177
#extra_bins /usr/bin/lftp
178
#disk_timeout 30
179
#extra_modules gfs2
180
#options modulename options
181
#default shell
182
#debug_mem_level 0
183
#force_rebuild 1
184
#sshkey /root/.ssh/kdump_id_rsa