Opensolaris Troubleshooting: The Unofficial Tourist Guide
Opensolaris Troubleshooting: The Unofficial Tourist Guide
Troubleshooting
The Unofficial Tourist Guide
Peter Harvey
Solaris RPE
1
Introduction
To misquote LP Hartly
“Diagnosing problems on unfamiliar operating systems is a
foreign country: they do things differently there.”
• What this talk is:
> Getting started troubleshooting on OpenSolaris
> Sharing tools and techniques used inside Sun
> About thinking
• What this talk is not:
> Crash dump analysis
> Performance tuning
> A DTrace tutorial
Copyright 2007 Sun Microsystems, Inc. All rights reserved. 2
Overview
• Principle of observability
• Be prepared Theory
• Problem types
• OpenSolaris/UNIX tools
• Using OpenSolaris source Practice
• Example
• Core dumps
> pstack(1), use libumem(3LIB) if in the memory allocator
• Exits without error
> truss -t \!all -T exitCopyright 2007 Sun Microsystems, Inc. All rights reserved. 10
Special note on hangs
• First aid principles apply – Check level of response!
• People
> “Annie, can you hear me Annie?”
> “Annie, open your eyes!”
> Gentle shake of shoulders, “Annie!?”
• Systems
> Responds to ping? Remote login?
> Console access?
> Stop-A (SPARC), F1-A (x86), Console break, percussive
maintenance :-)
> <fp/X
mdb: failed to read data from target: no mapping for address
0xffbdda78:
> $m
BASE LIMIT SIZE NAME
10000 1c000 c000 /usr/sbin/rpcbind
2c000 2e000 2000 /usr/sbin/rpcbind
2e000 b2000 84000 [ heap ]
...
ff3f6000 ff3f8000 2000 /lib/ld.so.1
ffbfc000 ffc00000 4000 [ stack ]
>
[email protected]
http://blogs.sun.com/peteh
39