Renseignement Kdump, kexec

bonjour,

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

bon c’est jeudi veille du petit Nicolas
qui peut éclairer ma lanterne?
A+
JB1
:119

–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 :

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.

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 “défaut”

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

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
kernel.org/doc/Documentatio … meters.txt