Dump restart a virtual machine
Starting 2.1.0 release, PowerVC supports restarting a virtual machine by generating core dump file(s). The VM restart with core dump is useful when you want to restart a VM that has crashed. Restarting with dump option creates a kernel dump file on the VM. This file contains the memory, register values, and the call stack of an application at the time of crash.
The VM restart with dump is enabled on all supported guest operating systems.
- Prerequisites
-
HMC version must be V10.1.1020 and higher.
PowerVC version must be 2.1.0 and higher.
NovaLink version 2.1.0 or higher
- Before restarting a VM using dump
-
Before attempting a dump restart, it is recommended to increase the process limits because the default process limits might lead to
OutOfMemoryErrorwhich leads to truncated core dumps. The truncated core dumps are generally unusable.Complete these steps to set theulimittounlimited.- Run ulimit -c to check if
ulimitis enabled. - If the
ulimitis0
, run ulimit -c unlimited to enableulimit.
- Run ulimit -c to check if
Configuring dump
This section elaborates details on configuring VM dump on RHEL, SLES, and Ubuntu.
- On RHEL and SLES
-
- Check whether the
kdumpandfadumpare properly configured on the LPAR by cloning the following RAS tool that helps with the setup.git clone https://github.com/linux-ras/ServiceReport - Install the program.
cd ServiceReport make build make install - Once the installation is done, print the status of all
plug-ins.
servicereport - Repair the incorrect configuration after the
validation.
servicereport -rNote: Complete these additional steps if the guest OS is SLES SP4 or higher.- Add
crashkernel=2Gagainst GRUB_CMDLINE_LINUX option. - Update the grub.
grub2-mkconfig -o /boot/grub/grub.cfg
- Add
- Check whether the
- On Ubuntu
-
- Install kernel crash dump utility.
sudo apt install linux-crashdump - During configuration of
kexec-tools, selectyes
to enablekexec-toolsfor all restarts and enablekdump-tools. - View the status of
kdump.kdump-config show
- Install kernel crash dump utility.
- For AIX after dump restart, run sysdumpdev -L for core dump details.
- For Ubuntu, SLES, RHEL, the file can be found at /var/crash.
- For IBMi guests, the dump manager on IBMi server has a record generated for the virtual machine after dump restart operation is complete.
Restarting a VM with dump
On the PowerVC GUI, navigate to . Select a virtual machine and then click Restart. On the Restart VM page, select Dump and then click Restart.