# savecore -L
savecore: dedicated dump device required
# dumpadm
Dump content: kernel pages
Dump device: /dev/md/dsk/d20 (swap)
Savecore directory: /var/crash/SAPTEST
Savecore enabled: yes
Save compressed: off
# metadetach d20 d22
d20: submirror d22 is detached
# dumpadm -d /dev/md/dsk/d22
Dump content: kernel pages
Dump device: /dev/md/dsk/d22 (dedicated)
Savecore directory: /var/crash/SAPTEST
Savecore enabled: yes
Save compressed: off
# savecore -L
dumping to /dev/md/dsk/d22, offset 65536, content: kernel
0:14 100% done
100% done: 136808 pages dumped, dump succeeded
savecore: System dump time: Wed Sep 26 17:09:28 2012
savecore: saving system crash dump in /var/crash/SAPTEST/{unix,vmcore}.0
Constructing namelist /var/crash/SAPTEST/unix.0
Constructing corefile /var/crash/SAPTEST/vmcore.0
1:00 100% done: 136808 of 136808 pages saved
# cd /var/crash/SAPTEST/
# ls
bounds unix.0 vmcore.
# file *
bounds: ascii text
unix.0: ELF 64-bit MSB executable SPARCV9 Version 1, UltraSPARC1 Extensions Required, statically linked, not stripped, no debugging information available
vmcore.0: SunOS 5.10 Generic_147440-15 64-bit SPARC live dump from 'SAPTEST'
there should be 2 file's for each crash dump how to see that
root@test:/var/crash# savecore -L
dumping to /dev/zvol/dsk/rpool/dump, offset 65536, content: kernel
0:20 100% done
100% done: 244956 pages dumped, dump succeeded
savecore: System dump time: Thu Aug 15 21:25:12 2013
savecore: Saving compressed system crash dump in /var/crash/vmdump.0
savecore: Decompress the crash dump with
'savecore -vf /var/crash/vmdump.0'
#cd /var/crash
ls
bounds vmdump.0
# savecore -vf vmdump.0
savecore: System dump time: Thu Aug 15 21:25:12 2013
savecore: saving system crash dump in /var/crash/{unix,vmcore}.0
Constructing namelist /var/crash/unix.0
Constructing corefile /var/crash/vmcore.0
0:32 100% done: 244956 of 244956 pages saved
7876 (3%) zero pages were not written
0:32 dump decompress is done
# ls
bounds unix.0 vmcore.0 vmdump.0
# savecore -dv /var/crash/test (online generation)
System dump time: Wed Nov 14 14:43:25 2012
Constructing namelist /var/crash/test/unix.2
Constructing corefile /var/crash/test/vmcore.2
100% done: 131566 of 131566 pages saved
# ls -lrth
total 6957282
-rw-r--r-- 1 root root 1.4M Jun 14 2011 unix.0
-rw-r--r-- 1 root root 1.1G Jun 14 2011 vmcore.0
-rw-r--r-- 1 root root 249K Jun 14 2011 act.0
-rw------- 1 root root 1.4M Nov 14 17:48 unix.1
-rw------- 1 root root 1.1G Nov 14 20:18 vmcore.1
-rw------- 1 root root 153M Nov 14 20:39 vmcore.1.tar.gz
-rw------- 1 root root 1.4M Nov 15 05:42 unix.2
-rw------- 1 root root 1.0G Nov 15 05:43 vmcore.2
-rw-r--r-- 1 root root 2 Nov 15 05:43 bounds
savecore: dedicated dump device required
# dumpadm
Dump content: kernel pages
Dump device: /dev/md/dsk/d20 (swap)
Savecore directory: /var/crash/SAPTEST
Savecore enabled: yes
Save compressed: off
# metadetach d20 d22
d20: submirror d22 is detached
# dumpadm -d /dev/md/dsk/d22
Dump content: kernel pages
Dump device: /dev/md/dsk/d22 (dedicated)
Savecore directory: /var/crash/SAPTEST
Savecore enabled: yes
Save compressed: off
# savecore -L
dumping to /dev/md/dsk/d22, offset 65536, content: kernel
0:14 100% done
100% done: 136808 pages dumped, dump succeeded
savecore: System dump time: Wed Sep 26 17:09:28 2012
savecore: saving system crash dump in /var/crash/SAPTEST/{unix,vmcore}.0
Constructing namelist /var/crash/SAPTEST/unix.0
Constructing corefile /var/crash/SAPTEST/vmcore.0
1:00 100% done: 136808 of 136808 pages saved
# cd /var/crash/SAPTEST/
# ls
bounds unix.0 vmcore.
# file *
bounds: ascii text
unix.0: ELF 64-bit MSB executable SPARCV9 Version 1, UltraSPARC1 Extensions Required, statically linked, not stripped, no debugging information available
vmcore.0: SunOS 5.10 Generic_147440-15 64-bit SPARC live dump from 'SAPTEST'
there should be 2 file's for each crash dump how to see that
root@test:/var/crash# savecore -L
dumping to /dev/zvol/dsk/rpool/dump, offset 65536, content: kernel
0:20 100% done
100% done: 244956 pages dumped, dump succeeded
savecore: System dump time: Thu Aug 15 21:25:12 2013
savecore: Saving compressed system crash dump in /var/crash/vmdump.0
savecore: Decompress the crash dump with
'savecore -vf /var/crash/vmdump.0'
#cd /var/crash
ls
bounds vmdump.0
# savecore -vf vmdump.0
savecore: System dump time: Thu Aug 15 21:25:12 2013
savecore: saving system crash dump in /var/crash/{unix,vmcore}.0
Constructing namelist /var/crash/unix.0
Constructing corefile /var/crash/vmcore.0
0:32 100% done: 244956 of 244956 pages saved
7876 (3%) zero pages were not written
0:32 dump decompress is done
# ls
bounds unix.0 vmcore.0 vmdump.0
# savecore -dv /var/crash/test (online generation)
System dump time: Wed Nov 14 14:43:25 2012
Constructing namelist /var/crash/test/unix.2
Constructing corefile /var/crash/test/vmcore.2
100% done: 131566 of 131566 pages saved
# ls -lrth
total 6957282
-rw-r--r-- 1 root root 1.4M Jun 14 2011 unix.0
-rw-r--r-- 1 root root 1.1G Jun 14 2011 vmcore.0
-rw-r--r-- 1 root root 249K Jun 14 2011 act.0
-rw------- 1 root root 1.4M Nov 14 17:48 unix.1
-rw------- 1 root root 1.1G Nov 14 20:18 vmcore.1
-rw------- 1 root root 153M Nov 14 20:39 vmcore.1.tar.gz
-rw------- 1 root root 1.4M Nov 15 05:42 unix.2
-rw------- 1 root root 1.0G Nov 15 05:43 vmcore.2
-rw-r--r-- 1 root root 2 Nov 15 05:43 bounds
No comments:
Post a Comment