Print this page
10654 savecore(1M) should be able to work on read-only dump devices
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: John Levon <john.levon@joyent.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Gergő Doma <domag02@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.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
   1    1  SAVECORE(1M)                 Maintenance Commands                 SAVECORE(1M)
   2    2  
   3    3  
   4    4  
   5    5  NAME
   6    6         savecore - save a crash dump of the operating system
   7    7  
   8    8  SYNOPSIS
   9      -       /usr/bin/savecore [-Lvd] [-f dumpfile] [directory]
        9 +       /usr/bin/savecore [-L | -r] [-vd] [-f dumpfile] [directory]
  10   10  
  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
↓ open down ↓ 46 lines elided ↑ open up ↑
  66   66                        crash dumps can only be performed if you have configured
  67   67                        your system to have a dedicated dump device using
  68   68                        dumpadm(1M).
  69   69  
  70   70                        savecore -L does not suspend the system, so the contents
  71   71                        of memory continue to change while the dump is saved.
  72   72                        This means that live crash dumps are not fully self-
  73   73                        consistent.
  74   74  
  75   75  
       76 +       -r
       77 +                      Open the dump device or file as read-only, and don't
       78 +                      update the dump header or do anything else that might
       79 +                      modify the crash dump. This option can be used to
       80 +                      recover a crash dump from a read-only device. This flag
       81 +                      cannot be used in conjunction with -L.
       82 +
       83 +
  76   84         -v
  77   85                        Verbose. Enables verbose error messages from savecore.
  78   86  
  79   87  
  80   88  OPERANDS
  81   89         The following operands are supported:
  82   90  
  83   91         directory
  84   92                      Save the crash dump files to the specified directory. If
  85   93                      directory is not specified, savecore saves the crash dump
↓ open down ↓ 43 lines elided ↑ open up ↑
 129  137         requesting restart, can be performed using svcadm(1M). The service's
 130  138         status can be queried using the svcs(1) command.
 131  139  
 132  140  
 133  141         If the dump device is also being used as a swap device, you must run
 134  142         savecore very soon after booting, before the swap space containing the
 135  143         crash dump is overwritten by programs currently running.
 136  144  
 137  145  
 138  146  
 139      -                               January 30, 2013                   SAVECORE(1M)
      147 +                               February 22, 2019                  SAVECORE(1M)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX