Hello!
I am trying to invoke a crash dump on a running Solaris system so I can view the crash log
I'm running:
SunOS my_box 5.10 Generic_138888-02 sun4u sparc SUNW,Sun-Fire-V240
Here's some output to give a better look of my problem
# savecore -L
savecore: dedicated dump device required
# dumpadm
Dump content: kernel pages
Dump device: /dev/dsk/c0t0d0s1 (swap)
Savecore directory: /var/crash/my_box Savecore enabled: yes
I only have 1 disk at the momment, but I heard there was ways to work around this?
I tried following the following URL but that does not work for me (I get the error below)
# dumpadm -c kernel -d /export/home/swap
dumpadm: cannot use /export/home/swap as dump device: Block device required
#3284: How to capture a live system core dump without having a dedicated
I don't know much about zfs, but I read I could mount a zfs block device
# mkfile 4096m /swap-file
# zpool create mypool /swap-file
# zfs create -V 2048m mypool/block
# dumpadm -c kernel -d /dev/zvol/dsk/mypool/block
dump is not supported on device '/dev/zvol/dsk/mypool/block': vdev type 'file' is not supported
Any pointers?
---------- Post updated at 04:59 PM ---------- Previous update was at 04:34 PM ----------
Just got it working!
I just needed to use S2 instead of S1
does anyone know why this works?
# dumpadm -c kernel -d /dev/dsk/c0t0d0s2
Dump content: kernel pages
Dump device: /dev/dsk/c0t0d0s2 (dedicated)
Savecore directory: /var/crash/my_box Savecore enabled: yes
# savecore -L
dumping to /dev/dsk/c0t0d0s2, offset 65536, content: kernel
100% done: 64312 pages dumped, compression ratio 3.48, dump succeeded
System dump time: Sun Apr 19 16:55:53 2009
Constructing namelist /var/crash/my_box/unix.0
Constructing corefile /var/crash/my_box/vmcore.0
100% done: 64312 of 64312 pages saved
---------- Post updated at 05:16 PM ---------- Previous update was at 04:59 PM ----------
Maybe this should be added to another thread, but I thought this was related!
Well now that I have the crash dump, I want to view it!!
I know I can use the mdb command, but I was trying to go through that man page and I was getting lost!
Is there an alternative? Can anyone give me some simple dcmds so I can do SOMETHING wih the crash dumps?
Any advice is greatly appreciated!