Linux crashdump


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Linux crashdump
# 1  
Old 06-20-2008
Linux crashdump

Hi there,

Anyone there who has a procedure on how to crash a linux a system? We need to do some testing on our machines. And one of the test would be to crash the os. Appreciate you help. Thanks.



Best regards,
Sodapop
# 2  
Old 06-20-2008
What exactly you mean with "crash the OS" - how, which part of the system has to be crashed ? What is the OS ? What is the purpose, the final aim ? To see how the system will behave in extra ordinary situations ?
# 3  
Old 06-21-2008
Quote:
Originally Posted by sysgate
What exactly you mean with "crash the OS" - how, which part of the system has to be crashed ? What is the OS ? What is the purpose, the final aim ? To see how the system will behave in extra ordinary situations ?
Thanks for the reply. Smilie

The OS is Linux. Distro is RedHat. Purpose of the crash is to see if analyze the errors that will come out after. The aim is to have the server pass an operational acceptance test. What we intend to do is simulate a kernel panic and see if the server will boot after the panic. Thanks again.
# 4  
Old 06-23-2008
Again, this sounds like a high level requirement - if I have the design document and acceptance criteria, then I can write test case / plan. This task, however, will require coding skills against kernel, where I'm not good at, and I'm afraid I can't help, but in our forums there are lots of people who can help, I believe. So, if you post a particular requirement, someone else might be able to help. At first glance, I'd think of "fork bomb" search the Google for it.
# 5  
Old 07-08-2008
Hi,

You may try the below two commands to crash the OS. I hope they will work.

sysctl -w kernel.sysrq=1
echo c > /proc/sysrq-trigger

Regards,
A.
# 6  
Old 07-15-2008
Write a dumb kernel module, something like the following should kill it:

Code:
MODULE_LICENSE("GPL");
MODULE_AUTHOR("blah");
MODULE_DESCRIPTION("kernel killer");

static int __init killer_init(void)
{
	void *ptr = NULL;
	printk("time to die %d\n", (int)ptr);
} 
module_init(killer_init);

Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Simple sed command not working; could be a Mac/Linux vs. PC/Linux issue

Hello, I am on a Mac and trying to clean up some monthly files with a very simple SED: sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt (from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file) then output to output.txt Even when I try... (2 Replies)
Discussion started by: verbatim
2 Replies

2. Solaris

crashdump recovery help

Hi all, how i recovery the files when system is crash? (using crashdump concept) regards Krishna (1 Reply)
Discussion started by: murthy76
1 Replies
Login or Register to Ask a Question