Print this page
NEX-9338 improve the layout of the crash directory
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Steve Peng <steve.peng@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/savecore.1m.man.txt
          +++ new/usr/src/man/man1m/savecore.1m.man.txt
↓ open down ↓ 10 lines elided ↑ open up ↑
  11   11  
  12   12  DESCRIPTION
  13   13         The savecore utility saves a crash dump of the kernel (assuming that
  14   14         one was made) and writes a reboot message in the shutdown log. By
  15   15         default, it is invoked by the dumpadm service each time the system
  16   16         boots.
  17   17  
  18   18  
  19   19         Depending on the dumpadm(1M) configuration savecore saves either the
  20   20         compressed or uncompressed crash dump. The compressed crash dump is
  21      -       saved in the file directory/vmdump.n.  savecore saves the uncompressed
  22      -       crash dump data in the file directory/vmcore.n and the kernel's
  23      -       namelist in directory/unix.n. The trailing n in the pathnames is
  24      -       replaced by a number which grows every time savecore is run in that
  25      -       directory.
       21 +       saved in the file directory/data/uuid/vmdump.n, where uuid is the OS
       22 +       instance UUID of the image that crashed.  savecore saves the
       23 +       uncompressed crash dump data in the file directory/data/uuid/vmcore.n
       24 +       and the kernel's namelist in directory/data/uuid/unix.n. The trailing n
       25 +       in the pathnames is replaced by a number which grows every time
       26 +       savecore is run in that directory.
  26   27  
  27   28  
  28   29         Before writing out a crash dump, savecore reads a number from the file
  29   30         directory/minfree. This is the minimum number of kilobytes that must
  30   31         remain free on the file system containing directory. If after saving
  31   32         the crash dump the file system containing directory would have less
  32   33         free space the number of kilobytes specified in minfree, the crash dump
  33   34         is not saved. if the minfree file does not exist, savecore assumes a
  34   35         minfree value of 1 megabyte.
  35   36  
↓ open down ↓ 40 lines elided ↑ open up ↑
  76   77         -v
  77   78                        Verbose. Enables verbose error messages from savecore.
  78   79  
  79   80  
  80   81  OPERANDS
  81   82         The following operands are supported:
  82   83  
  83   84         directory
  84   85                      Save the crash dump files to the specified directory. If
  85   86                      directory is not specified, savecore saves the crash dump
  86      -                    files to the default savecore directory, configured by
  87      -                    dumpadm(1M).
       87 +                    to the default savecore directory, configured by
       88 +                    dumpadm(1M), and files are stored under distinct
       89 +                    directory/data/uuid folder.
  88   90  
  89   91  
  90   92  FILES
  91      -       directory/vmdump.n
       93 +       directory/data/uuid/vmdump.n
  92   94  
  93   95  
  94   96  
  95      -       directory/vmcore.n
       97 +       directory/data/uuid/vmcore.n
  96   98  
  97   99  
  98  100  
  99      -       directory/unix.n
      101 +       directory/data/uuid/unix.n
 100  102  
 101  103  
 102  104  
 103  105         directory/bounds
 104  106  
 105  107  
 106  108  
 107  109         directory/minfree
 108  110  
 109  111  
↓ open down ↓ 19 lines elided ↑ open up ↑
 129  131         requesting restart, can be performed using svcadm(1M). The service's
 130  132         status can be queried using the svcs(1) command.
 131  133  
 132  134  
 133  135         If the dump device is also being used as a swap device, you must run
 134  136         savecore very soon after booting, before the swap space containing the
 135  137         crash dump is overwritten by programs currently running.
 136  138  
 137  139  
 138  140  
 139      -                               January 30, 2013                   SAVECORE(1M)
      141 +                                January 8, 2017                   SAVECORE(1M)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX