Linux system Suspension

Source: Internet
Author: User
Linux system suspension-general Linux technology-Linux programming and kernel information. The following is a detailed description. 1. kernel CRASH information collection:
# Rpm-ivh lkcdutils-4.2-193.68.rpm
# Insserv-v/etc/init. d/boot. lkcd, start = 3, 5
# The following lines in the file/etc/rc. d/boot. swap:
Echo "Activating remaining swap-devices in/etc/fstab ..."
Add the following line before:
/Sbin/lkcd save
Delete the line "/sbin/rc. d/boot. lkcd save" in/etc/rc. d/boot. lkcd.
# Cat/etc/sysconfig/dump
DUMP_ACTIVE = "1"
DUMPDEV = "/dev/cciss/c0d0p1" # Use the swap Zone
DUMPDIR = "/var/log/dump"
DUMP_LEVEL = "4"
DUMP_COMPRESS = "2"
DUMP_FLAGS = "0x80000000"
DUMP_SAVE = "1"
PANIC_TIMEOUT = "5"
BOUNDS_LIMIT = 3
KEXEC_IMAGE =/boot/vmlinuz

# Cat/etc/sysconfig/sysctl
........
ENABLE_SYSRQ = "yes"
Restart the machine. If you do not want to restart the machine, run the following two commands:
#/Sbin/lkcd config
# Echo 1>/proc/sys/kernel/sysrq
# Cat/proc/interrupts check whether the NMI count has changed (more than 100 times per second). If yes, NMI_watchdog is enabled. Otherwise, add nmi_watchdog = 1 to/boot/grub/menu. lst and restart the machine.
# Ls-d/proc/sys/kernel/dump/-- if the kernel does not exist, the kernel does not support lkcd.
2. test:
#/Sbin/lkcd dump
Or:
# Echo d>/proc/sysrq-trigger
Or
Uninstall unnecessary file systems. Go to the console and issue the following command:
Alt-SysRq-u -- all file systems are mounted in read-only mode
Alt-SysRq-c -- crash Kernel
#/Sbin/lkcd save -- test the content on the dump Device
3. verify the validity:
# Cd/var/log/dump/x --- enter the directory of the nth dump
#/Sbin/lcrash-n x
> Ps --- display the dump Process
> Trace
> Q

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.