When a fatal operating system occurred, the operating system will write some of the contents of physical memory to crash dump device. After writing process is done, the system reboot, contents of crash dump device will be saved to crash dump file. The crash dump file can be saved for future analysis to determine the cause of fatal error. You can use tips below to configure crash dump file.
- View current dump configuration. Crash dump file created will be saved on /var/crash/hostnameroot@solaris-sunray # dumpadmDump content: kernel pagesDump device: /dev/dsk/c0d0s1 (swap)Savecore directory: /var/crash/solaris-sunraySavecore enabled: yes
- You can change dump device to a dedicated slice, not a swap slice. Dedicated device is required because we want to test generate a crash dump file.root@solaris-sunray # dumpadmDump content: kernel pagesDump device: /dev/dsk/c0d0s5 (dedicated)Savecore directory: /var/crash/solaris-sunraySavecore enabled: yes
- Generate crash dump.root@solaris-sunray # syncroot@solaris-sunray # savecore -L
- See crash dump file generatedroot@solaris-sunray # ls /var/crash/solaris-sunray/bounds unix.0 vmcore.0
- Return to original dump configuration.root@solaris-sunray # dumpadm -d /dev/dsk/c0d0s1root@solaris-sunray # dumpadmDump content: kernel pagesDump device: /dev/dsk/c0d0s1 (swap)Savecore directory: /var/crash/solaris-sunraySavecore enabled: yes
Will there be a difference in the core file generated during a crash, if the dump device is a dedicated one instead of swap. Or is it required just for testing a core file generation.
ReplyDelete