setting the savecore directory with dumpadm
"Christopher (home)" <[email protected]> Sat, 7 Jul 2012 18:12:54 -0500
| Newsgroups | gmane.os.solaris.managers |
|---|---|
| Message-ID | <[email protected]> |
I have a new Solaris 10 system using ZFS. I have mounted a dedicated
drive for the sole purpose of being the crash dump repository.
I built this server, rudun-epiccache102, from a snapshot I took on
rutu-epiccache107.
because of the values in dumpadm, the system creates
the /var/crash/rutu-epiccache107 directory on startup rather than using
the /var/crash/rudun-epiccache102 directory I have created and mounted.
------------------8<------------------------
root on rudun-epiccache102# ls -lFa /var/crash
total 13
drwxr-xr-x 4 root root 4 Jul 6 11:32 ./
drwxr-xr-x 46 root sys 46 Jun 14 15:13 ../
drwx------ 4 root root 512 Jul 5 16:57 rudun-epiccache102/
drwx------ 2 root root 2 Jul 6 11:32 rutu-epiccache107/
root on rudun-epiccache102#
---------------------8<---------------------
I definitely want dumpadm to use the /var/crash/rudu-epiccache102 directory:
--------------------8<-----------------------
root on rudun-epiccache102# df -h /var/crash/rutu-epiccache107
Filesystem size used avail capacity Mounted on
epicpool/ROOT/June_2012/var 274G 1.3G 255G 1% /var
root on rudun-epiccache102# df -h /var/crash/rudun-epiccache102
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s0 138G 140M 136G 1%
/var/crash/rudun-epiccache102
-------------------------8<---------------------------
The values currently returned by dumpadm:
-------------------------8<----------------------------
root on rudun-epiccache102# dumpadm
Dump content: kernel pages
Dump device: /dev/dsk/c1t0d0s1 (swap)
Savecore directory: /var/crash/rutu-epiccache107
Savecore enabled: yes
Save compressed: on
-----------------------8<------------------------------
but when I try to change the savecore directory I get the strangest
error...
------------------------------8<---------------------------
root on rudun-epiccache102# dumpadm -d /var/crash/rudun-epiccache102
dumpadm: cannot use /var/crash/rudun-epiccache102 as dump device: Block
device required
---------------------------8<-----------------------------
What do I need to do to use /var/crash/rudun-epiccache102 as my savecore
directory?
Christopher L. Barnard
-------------------
comment your code as if the maintainer is a homicidal maniac who knows where
you live.