Trigger Dump on PowerLinux

This page has not been liked. Updated 4/8/13 7:33 PM by jerberstarkTags: None

Dump Triggering methods on PowerLinux systems

This page talks about the different methods you can use to trigger a dump on PowerLinux systems.

 

AltSysRq C

On PowerPC boxes Alt``Sys``Rq C can be used to initiate Kdump if a directly attached console is available. In order to use the Sysrq method for dump triggering /proc/sys/kernel/sysrq needs to be enabled, which can be done as follows:

# echo 1 > /proc/sys/kernel/sysrq

Kernel OOPs

If we want to generate a dump every time the Kernel OOPses, we can achieve this by setting the 'Panic On OOPs' option as follows:

# echo 1 > /proc/sys/kernel/panic_on_oops

 

Methods to Trigger a kernel dump during system hang

Using HMC

The Hardware Management Console (HMC) available on Power machines allows partitions to be reset remotely. This is specially useful in hang situations where the system is not accepting any keyboard inputs.



Once you have the HMC configured, the following steps will enable you to trigger kdump via a soft reset:



On Power4

Using GUI

  • In the right pane, right click on the partition you wish to dump.
  • Select "Operating System->Reset".
  • Select "Soft Reset".
  • Select "Yes".

Using HMC command line:

# reset_partition -m <machine> -p <partition> -t soft



On Power5

Using GUI

  • In the right pane, right click on the partition you wish to dump.
  • Select "Restart Partition".
  • Select "Dump".
  • Select "OK".

Using HMC command line:

# chsysstate -m <managed system name> -n <lpar name> -o dumprestart -r lpar



On Power6/7

Using GUI

  • In the right pane, right click on the partition you wish to dump.
  • Select "Operations->Restart".
  • Select "Dump".
  • Select "OK".

Using HMC command line:

# chsysstate -m <managed system name> -n <lpar name> -o dumprestart -r lpar

NOTE: If the system is in XMON when the dump is invoked, type 'X' (Capital alphabet X) to exit debugger and take the dump.

 

Using ASMI (Advanced System Management Interface)

The Advanced System Management Interface (ASMI) available on Power machines allows partitions to be reset remotely. This is specially useful in hang situations where the system is not accepting any keyboard inputs. Please note that this interface could be used on systems which are not connected to HMC.

  • Login to Advanced System Management (ASM) console
  • Select "System Service Aids"->"Partition Dump" in the left panel.
  • Click on the "Partition Dump" button in the right-side panel.

NOTE: If you see following message on the console, then press the "Partition Dump" button again:



Activate soft-reset to stop other cpu(s)

 

Blade Center (PowerPC only)

To initiate a dump operation, go to Power/Restart option under "Blade Tasks" in the Blade Management Console. Select the corresponding blade for which you want

to initate the dump and then click "Restart blade with NMI". This issues a system reset.



Using AMM (IBM Blade Centre Advanced Management Module)

  • Select "Blade Tasks">Power/Restart option
  • Select the corresponding blade for which you want to initate the dump (Click [] checkbox).
  • Select "Issue NMI to blade" in a popup list under "Available Actions"
  • Click "Perform action"

NOTE: If the system is in XMON when the dump is invoked, type 'X' (Capital alphabet X) twice to exit debugger and take the dump.