crash dump

hi ,

i have machine that is crashed
how i can enable core dump file & how can i find it ? :confused:

If the OS crashed, have a look at the dumpadm command. If an application crashed, coreadm will allow you to configure where to store the core files.

as jiliagre says, take a look at dumpadm. this will show you where your dump device and your savecore directory are.

if your system has crashed, your dumps are most likely in /var/crash/`uname -n` . in there you should see two files such as unix.0 and vmcore.0. if you have a service contract with sun, these files along with an explorer file are usually tar'd and zipped up to sun for analysis.

also, you can force a dump with savecore -L . however, you will need a dedicated dump device (not swap) to do this. the easiest way around this is create a file the same size as your swap and change the dump device path to point to this file. run savecore -L and you get your dump. however, it will NOT show any relevant information to why your system has crash as all of memory has been purged when the system reset.

Can also use "sync" at the ok> prompt to simulate a coredump

thnx every doby