Merge lp:~louis/serverguide/remote-kdump-update into lp:serverguide/trunk

Proposed by Louis Bouchard
Status: Merged
Approved by: Doug Smythies
Approved revision: 282
Merged at revision: 282
Proposed branch: lp:~louis/serverguide/remote-kdump-update
Merge into: lp:serverguide/trunk
Diff against target: 169 lines (+137/-9)
1 file modified
serverguide/C/installation.xml (+137/-9)
To merge this branch: bzr merge lp:~louis/serverguide/remote-kdump-update
Reviewer Review Type Date Requested Status
Doug Smythies Approve
Review via email: mp+291252@code.launchpad.net

Description of the change

Added configuration details for the remote kernel crash dump functionality now included in Xenial

To post a comment you must log in.
Revision history for this message
Doug Smythies (dsmythies) wrote :

I get the following warnings while compiling the PDF:

[INFO] FOUserAgent - Rendered page #17.
[WARN] FOUserAgent - Glyph "┌" (0x250c, SF010000) not available in font "Courier".
[WARN] FOUserAgent - Glyph "─" (0x2500, SF100000) not available in font "Courier".
[WARN] FOUserAgent - Glyph "┤" (0x2524, SF090000) not available in font "Courier".
[WARN] FOUserAgent - Glyph "├" (0x251c, SF080000) not available in font "Courier".
[WARN] FOUserAgent - Glyph "┐" (0x2510, SF030000) not available in font "Courier".
[WARN] FOUserAgent - Glyph "│" (0x2502, SF110000) not available in font "Courier".
[WARN] FOUserAgent - Glyph "└" (0x2514, SF020000) not available in font "Courier".
[WARN] FOUserAgent - Glyph "┘" (0x2518, SF040000) not available in font "Courier".
[INFO] FOUserAgent - Rendered page #18.

And when I check for non-ascii characters in the master English source, I get a bunch of hits (including one that snuck in there with Serge's MP).

See also:
https://wiki.ubuntu.com/DocumentationTeam/SystemDocumentation/Repository/Members-Serverguide#ASCII_Policy

review: Needs Fixing
Revision history for this message
Simon Quigley (tsimonq2) wrote :

Lines 16-26 of the diff are the culprit, and in the LXD guide, Stephane Graber's name is the culprit of that warning. It's a really simple fix, and I have a fix that you could do the following with:

============================================================

bzr merge lp:~tsimonq2/serverguide/fix-remote-kdump-update

bzr commit -m "Merged Simon's fix"

bzr push lp:~louis-bouchard/serverguide/remote-kdump-update

============================================================

Link to my fix: https://code.launchpad.net/~tsimonq2/serverguide/fix-remote-kdump-update

Revision history for this message
Doug Smythies (dsmythies) wrote :

Simon, thanks. Yes, I knew what the problem was, just didn't have time to fix it myself.

Revision history for this message
Doug Smythies (dsmythies) wrote :

O.K. I did the same edits as Simon proposed and will push this into trunk.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'serverguide/C/installation.xml'
2--- serverguide/C/installation.xml 2016-04-07 00:08:38 +0000
3+++ serverguide/C/installation.xml 2016-04-07 13:43:00 +0000
4@@ -1402,21 +1402,131 @@
5 <command>sudo apt install linux-crashdump</command>
6 </screen>
7
8- </sect2>
9+
10+ <note>
11+ <para>Starting with 16.04, the kernel crash dump mechanism is enabled by default. During the installation, you will be prompted with the following dialog. Unless chosen otherwise, the kdump mechanism will be enabled.
12+ </para>
13+ </note>
14+
15+ <screen>
16+ ┌────────────────────────┤ Configuring kdump-tools ├────────────────────────┐
17+ │ │
18+ │ If you choose this option, the kdump-tools mechanism will be enabled. A │
19+ │ reboot is still required in order to enable the crashkernel kernel │
20+ │ parameter. │
21+ │ │
22+ │ Should kdump-tools be enabled by default? │
23+ │ │
24+ │ <emphasis role="bold">&lt;Yes&gt;</emphasis> &lt;No&gt; │
25+ │ │
26+ └───────────────────────────────────────────────────────────────────────────┘
27+ </screen>
28+ <para>
29+ If you ever need to manually enable the functionality, you can use the <command>dpkg-reconfigure kdump-tools</command> command and answer Yes to the question. You can also edit <filename>/etc/default/kdump-tools</filename> by including the following line:
30+<programlisting>
31+USE_KDUMP=1
32+</programlisting>
33+ </para>
34+
35+ <para>
36+ If a reboot has not been done since installation of the linux-crashdump package, a reboot will be required in order to activate the crashkernel= boot parameter. Upon reboot, kdump-tools will be enabled and active.
37+ </para>
38+ <para>
39+ If you enable kdump-tools after a reboot, you will only need to issue the <command>kdump-config load</command> command to activate the kdump mechanism.
40+ </para>
41+ </sect2>
42 <sect2 id="kernel-dump-configuration" status="review">
43 <title>Configuration</title>
44
45 <para>
46- Edit <filename>/etc/default/kdump-tools</filename> by including the following line:
47-<programlisting>
48-USE_KDUMP=1
49-</programlisting>
50+ In addition to local dump, it is now possible to use the remote dump functionality to send the kernel crash dump to a remote server, using either the <emphasis>SSH</emphasis> or <emphasis>NFS</emphasis> protocols.
51 </para>
52-
53+ <sect3 id="local-dump" status="review">
54+ <title>Local Kernel Crash Dumps</title>
55+ <para>
56+ Local dumps are configured automatically and will remain in use unless a remote protocol is chosen. Many configuration options exist and are thoroughly documented in the <filename>/etc/default/kdump-tools</filename> file.
57+ </para>
58+ </sect3>
59+
60+ <sect3 id="ssh-dump" status="review">
61+ <title>Remote Kernel Crash Dumps using the SSH protocol</title>
62+ <para>
63+ To enable remote dumps using the <emphasis>SSH</emphasis> protocol, the <filename>/etc/default/kdump-tools</filename> must be modified in the following manner :</para>
64+ <programlisting>
65+# ---------------------------------------------------------------------------
66+# Remote dump facilities:
67+# SSH - username and hostname of the remote server that will receive the dump
68+# and dmesg files.
69+# SSH_KEY - Full path of the ssh private key to be used to login to the remote
70+# server. use kdump-config propagate to send the public key to the
71+# remote server
72+# HOSTTAG - Select if hostname of IP address will be used as a prefix to the
73+# timestamped directory when sending files to the remote server.
74+# 'ip' is the default.
75+<emphasis role="bold">SSH="ubuntu@kdump-netcrash"</emphasis>
76+ </programlisting>
77+ <para>The only mandatory variable to define is SSH. It must contain the username and hostname of the remote server using the format {username}@{remote server}.</para>
78+
79+ <para>SSH_KEY may be used to provide an existing private key to be used. Otherwise, the <command>kdump-config propagate</command> command will create a new keypair. The HOSTTAG variable may be used to use the hostname of the system as a prefix to the remote directory to be created instead of the IP address. </para>
80+
81+ <para>The following example shows how <command>kdump-config propagate</command> is used to create and propagate a new keypair to the remote server :
82+ <screen>
83+<command>sudo kdump-config propagate</command>
84+Need to generate a new ssh key...
85+The authenticity of host 'kdump-netcrash (192.168.1.74)' can't be established.
86+ECDSA key fingerprint is SHA256:iMp+5Y28qhbd+tevFCWrEXykDd4dI3yN4OVlu3CBBQ4.
87+Are you sure you want to continue connecting (yes/no)? yes
88+ubuntu@kdump-netcrash's password:
89+propagated ssh key /root/.ssh/kdump_id_rsa to server ubuntu@kdump-netcrash
90+ </screen>
91+ The password of the account used on the remote server will be required in order to successfully send the public key to the server</para>
92+ <para>
93+ The <command>kdump-config show</command> command can be used to confirm that kdump is correctly configured to use the SSH protocol :
94+ <screen>
95+<command>kdump-config show</command>
96+DUMP_MODE: kdump
97+USE_KDUMP: 1
98+KDUMP_SYSCTL: kernel.panic_on_oops=1
99+KDUMP_COREDIR: /var/crash
100+crashkernel addr: 0x2c000000
101+ /var/lib/kdump/vmlinuz: symbolic link to /boot/vmlinuz-4.4.0-10-generic
102+kdump initrd:
103+ /var/lib/kdump/initrd.img: symbolic link to /var/lib/kdump/initrd.img-4.4.0-10-generic
104+<emphasis role="bold">SSH: ubuntu@kdump-netcrash
105+SSH_KEY: /root/.ssh/kdump_id_rsa
106+HOSTTAG: ip
107+current state: ready to kdump</emphasis>
108+ </screen></para>
109+ </sect3>
110+
111+ <sect3 id="nfs-dump" status="review">
112+ <title>Remote Kernel Crash Dumps using the NFS protocol</title>
113 <para>
114- A reboot is then needed.
115- </para>
116-
117+ To enable remote dumps using the <emphasis>NFS</emphasis> protocol, the <filename>/etc/default/kdump-tools</filename> must be modified in the following manner :</para>
118+ <programlisting>
119+# NFS - Hostname and mount point of the NFS server configured to receive
120+# the crash dump. The syntax must be {HOSTNAME}:{MOUNTPOINT}
121+# (e.g. remote:/var/crash)
122+#
123+<emphasis role="bold">NFS="kdump-netcrash:/var/crash"</emphasis>
124+ </programlisting>
125+ <para>As with the SSH protocol, the HOSTTAG variable can be used to replace the IP address by the hostname as the prefix of the remote directory.</para>
126+ <para>The <command>kdump-config show</command> command can be used to confirm that kdump is correctly configured to use the NFS protocol :
127+ <screen>
128+<command>kdump-config show</command>
129+DUMP_MODE: kdump
130+USE_KDUMP: 1
131+KDUMP_SYSCTL: kernel.panic_on_oops=1
132+KDUMP_COREDIR: /var/crash
133+crashkernel addr: 0x2c000000
134+ /var/lib/kdump/vmlinuz: symbolic link to /boot/vmlinuz-4.4.0-10-generic
135+kdump initrd:
136+ /var/lib/kdump/initrd.img: symbolic link to /var/lib/kdump/initrd.img-4.4.0-10-generic
137+<emphasis role="bold">NFS: kdump-netcrash:/var/crash
138+HOSTTAG: hostname
139+current state: ready to kdump</emphasis>
140+ </screen></para>
141+ </sect3>
142 </sect2>
143
144 <sect2 id="verification" status="review">
145@@ -1471,6 +1581,24 @@
146 </computeroutput>
147 </screen>
148
149+ <para>
150+ Finally, as seen previously, the <command>kdump-config show</command> command displays the current status of the kdump-tools configuration :
151+ <screen>
152+ <command>kdump-config show
153+</command>DUMP_MODE: kdump
154+USE_KDUMP: 1
155+KDUMP_SYSCTL: kernel.panic_on_oops=1
156+KDUMP_COREDIR: /var/crash
157+crashkernel addr: 0x2c000000
158+ /var/lib/kdump/vmlinuz: symbolic link to /boot/vmlinuz-4.4.0-10-generic
159+kdump initrd:
160+ /var/lib/kdump/initrd.img: symbolic link to /var/lib/kdump/initrd.img-4.4.0-10-generic
161+current state: ready to kdump
162+
163+kexec command:
164+ /sbin/kexec -p --command-line="BOOT_IMAGE=/vmlinuz-4.4.0-10-generic root=/dev/mapper/VividS--vg-root ro debug break=init console=ttyS0,115200 irqpoll maxcpus=1 nousb systemd.unit=kdump-tools.service" --initrd=/var/lib/kdump/initrd.img /var/lib/kdump/vmlinuz
165+ </screen>
166+ </para>
167 </sect2>
168
169 <sect2 id="kdump-testing" status="review">

Subscribers

People subscribed via source and target branches