# Renseignement Kdump, kexec

**URL:** <https://www.debian-fr.org/t/renseignement-kdump-kexec/60379>\
**Category:** Pause Café\
**Created:** [Février 21, 2016, 7:29 UTC](https://www.debian-fr.org/t/renseignement-kdump-kexec/60379 "2016-02-21T19:29:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jb1](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@jb1](https://www.debian-fr.org/u/jb1)\
**Post date:** [Février 21, 2016, 7:29 UTC](https://www.debian-fr.org/t/renseignement-kdump-kexec/60379/1 "2016-02-21T19:29:20Z")

</div>

bonjour,

```auto
root@alpha30:~# kdump-config test
USE_KDUMP: 1
KDUMP_SYSCTL: kernel.panic_on_oops=1
KDUMP_COREDIR: /var/crash
crashkernel addr: 0x10000000
kdump kernel addr: relocatable
kdump kernel:
   /boot/vmlinuz-3.12.0-rc7-20131113
kdump initrd: 
  /boot/initrd.img-3.12.0-rc7-20131113
debug kernel: 
  /usr/lib/debug/boot/vmlinux-3.12-rc7-amd64
kexec command to be used:
  /sbin/kexec -p --command-line="BOOT_IMAGE=/boot/vmlinuz-3.12.0-rc7-20131113 root=UUID=56a19ca5-5635-40d4-953e-99023ec97583 ro /usr/lib/debug/boot/vmlinux-3.12-rc7-amd64 quiet irqpoll maxcpus=1 nousb" --initrd=/boot/initrd.img-3.12.0-rc7-20131113 /boot/vmlinuz-3.12.0-rc7-20131113
root@alpha30:~# man kexec
root@alpha30:~# 
```

kexec fait référence a :  
maxcpus=1,  
on fait référence à l’architecture matérielle de la machine un CPU,  
on ne parle plus des cores!

nousb!?!?

le man de kexec ne me renseigne pas ou j’ai mal lu!  
le texte de Terry Loftin n’y fait pas référence également  
[manpages.ubuntu.com/manpages/pre … fig.8.html](http://manpages.ubuntu.com/manpages/precise/man8/kdump-config.8.html)

bon c’est jeudi veille du petit Nicolas  
qui peut éclairer ma lanterne?  
A+  
JB1  
 ![:119](https://www.debian-fr.org/uploads/default/original/1X/0287f377b0e103e172422ffbbe8c639fd3e12c9e.gif "vertige")

---

<div class="post-metadata">

**Author:** ![etxeberrizahar](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/e/43a26b/32.png) [@etxeberrizahar](https://www.debian-fr.org/u/etxeberrizahar)\
**Post date:** [Février 21, 2016, 7:29 UTC](https://www.debian-fr.org/t/renseignement-kdump-kexec/60379/2 "2016-02-21T19:29:36Z")

</div>

–command-line=“BOOT\_IMAGE=/boot/vmlinuz-3.12.0-rc7-20131113 root=UUID=56a19ca5-5635-40d4-953e-99023ec97583 ro /usr/lib/debug/boot/vmlinux-3.12-rc7-amd64 quiet irqpoll maxcpus=1 nousb”

D’où sortent ces paramètres ? Tu les as copiés sans en comprendre l’effet ou ils se sont inscrits sans ton intervention ?

$ man kexec

[code]Insert the command-line parameters that must be passed to the new kernel into command-line-options. Passing the exact contents of /proc/cmdline into command-line-options is the safest way to ensure that correct values are passed to the rebooting kernel.

…

–reuse-cmdline  
Use the command line from the running system. When a panic kernel is loaded, it strips the crashkernel parameter automatically. The BOOT\_IMAGE parameter is also stripped.[/code]

À moins d’user de BOOT\_IMAGE avec des arguments de [mono]–command-line[/mono] spécifiques, les paramètres passés au kernel sont repris des paramètres standards du noyau (voir [mono]$ cat /proc/cmdline[/mono] ).  
Ces paramètres sont les mêmes que ceux que tu passerais à un noyau linux commun.

kernel-parameters.txt, Documentation sources linux :

```auto

```

`	maxcpus=	[SMP] Maximum number of processors that	an SMP kernel
			should make use of. maxcpus=n : n >= 0 limits the
			kernel to using 'n' processors. n=0 is a special case,
			it is equivalent to "nosmp", which also disables
			the IO APIC.`

---

<div class="post-metadata">

**Author:** ![jb1](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@jb1](https://www.debian-fr.org/u/jb1)\
**Post date:** [Février 21, 2016, 7:30 UTC](https://www.debian-fr.org/t/renseignement-kdump-kexec/60379/3 "2016-02-21T19:30:11Z")

</div>

bonjour,  
j’y vois un peu plus clair,  
c’est valeurs de kexec ne sont pas directement de moi mais empruntées par kdump au système Debian  
avec un paramètrage par «&nbsp;défaut&nbsp;»

merci pour l’info:

kernel-parameters.txt, Documentation sources linux  
que je ne connaissais pas  
je vais me renseigner au monde en tique pour un ouvrage papier  
A+  
JB1  
 ![:041](https://www.debian-fr.org/uploads/default/original/1X/bfe857c9119752799c3eac55ca37a50312c51282.gif "applaudit")

---

<div class="post-metadata">

**Author:** ![etxeberrizahar](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/e/43a26b/32.png) [@etxeberrizahar](https://www.debian-fr.org/u/etxeberrizahar)\
**Post date:** [Février 21, 2016, 7:35 UTC](https://www.debian-fr.org/t/renseignement-kdump-kexec/60379/4 "2016-02-21T19:35:49Z")

</div>

Tu t’adonnes à la compilation de noyau. Tu as donc localement accès au fichier kernel-parameters.txt dans le dossier Documentation des sources linux décompressées.

Exemple adresse : ~/linux-3.12/Documentation/kernel-parameters.txt  
En extrait, les premières lignes du fichier

[code]  
Kernel Parameters  
~~~~~~~~~~~~~~~~~

The following is a consolidated list of the kernel parameters as implemented  
(mostly) by the \_\_setup() macro and sorted into English Dictionary order  
(defined as ignoring all punctuation and sorting digits before letters in a  
case insensitive manner), and with descriptions where known.

Module parameters for loadable modules are specified only as the  
parameter name with optional ‘=’ and value as appropriate, such as:

```
modprobe usbcore blinkenlights=1

```

Module parameters for modules that are built into the kernel image  
are specified on the kernel command line with the module name plus  
’.’ plus parameter name, with ‘=’ and value if appropriate, such as:

```
usbcore.blinkenlights=1

```

Hyphens (dashes) and underscores are equivalent in parameter names, so  
log\_buf\_len=1M print-fatal-signals=1  
can also be entered as  
log-buf-len=1M print\_fatal\_signals=1

This document may not be entirely up to date and comprehensive. The command  
"modinfo -p ${modulename}" shows a current list of all parameters of a loadable  
module. Loadable modules, after being loaded into the running kernel, also  
reveal their parameters in /sys/module/${modulename}/parameters/. Some of these  
parameters may be changed at runtime by the command  
"echo -n ${value} \> /sys/module/${modulename}/parameters/${parm}".[/code]

Cette doc se trouve aussi facilement sur la toile, sous les sabots d’un cheval.  
Recherche “kernel-parameters.txt”, tu devrais trouver nombre de réponses.  
En ligne, la source [kernel.org](http://kernel.org)  
[kernel.org/doc/Documentatio … meters.txt](https://www.kernel.org/doc/Documentation/kernel-parameters.txt)
