Print this page
NEX-9586 remove nodename from the default savecore directory path
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/dumpadm.1m
          +++ new/usr/src/man/man1m/dumpadm.1m
   1    1  '\" te
   2    2  .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
   3      -.\" Copyright 2015 Nexenta Systems, Inc.  All Rights Reserved.
        3 +.\" Copyright 2017 Nexenta Systems, Inc.  All Rights Reserved.
   4    4  .\" Copyright (c) 2013 by Delphix. All rights reserved.
   5    5  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   6    6  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   7    7  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   8      -.TH DUMPADM 1M "Apr 09, 2015"
        8 +.TH DUMPADM 1M "Feb 13, 2017"
   9    9  .SH NAME
  10   10  dumpadm \- configure operating system crash dump
  11   11  .SH SYNOPSIS
  12   12  .LP
  13   13  .nf
  14   14  \fB/usr/sbin/dumpadm\fR [\fB-enuy\fR] [\fB-c\fR \fIcontent-type\fR] [\fB-d\fR \fIdump-device\fR]
  15   15       [\fB-m\fR \fImin\fRk | \fImin\fRm | \fImin\fR%] [\fB-s\fR \fIsavecore-dir\fR]
  16   16       [\fB-r\fR \fIroot-dir\fR] [\fB-z\fR on | off]
  17   17  .fi
  18   18  
  19   19  .SH DESCRIPTION
  20      -.sp
  21   20  .LP
  22   21  The \fBdumpadm\fR program is an administrative command that manages the
  23   22  configuration of the operating system crash dump facility. A crash dump is a
  24   23  disk copy of the physical memory of the computer at the time of a fatal system
  25   24  error. When a fatal operating system error occurs, a message describing the
  26   25  error is printed to the console. The operating system then generates a crash
  27   26  dump by writing the contents of physical memory to a predetermined dump device,
  28   27  which is typically a local disk partition. The dump device can be configured by
  29   28  way of \fBdumpadm\fR. Once the crash dump has been written to the dump device,
  30   29  the system will reboot.
↓ open down ↓ 27 lines elided ↑ open up ↑
  58   57  are used for swap and dump areas. For further information about setting up a
  59   58  dump area with ZFS,  see the \fIZFS Administration Guide\fR. To view the
  60   59  current dump  configuration, use the \fBdumpadm\fR command with no arguments:
  61   60  .sp
  62   61  .in +2
  63   62  .nf
  64   63  example# \fBdumpadm\fR
  65   64  
  66   65        Dump content: kernel pages
  67   66         Dump device: /dev/dsk/c0t0d0s1 (swap)
  68      -Savecore directory: /var/crash/saturn
       67 +Savecore directory: /var/crash
  69   68    Savecore enabled: yes
  70   69     Save compressed: on
  71   70  .fi
  72   71  .in -2
  73   72  .sp
  74   73  
  75   74  .sp
  76   75  .LP
  77   76  When no options are specified, \fBdumpadm\fR prints the current crash dump
  78   77  configuration. The example shows the set of default values: the dump content is
  79   78  set to kernel memory pages only, the dump device is a swap disk partition, the
  80   79  directory for \fBsavecore\fR files is set to
  81      -\fB/var/crash/\fR\fIhostname\fR\fB,\fR \fBsavecore\fR is set to run
       80 +\fB/var/crash\fR, \fBsavecore\fR is set to run
  82   81  automatically on reboot, and compression is turned on.
  83   82  .sp
  84   83  .LP
  85   84  When one or more options are specified, \fBdumpadm\fR verifies that your
  86   85  changes are valid, and if so, reconfigures the crash dump parameters and
  87   86  displays the resulting configuration. You must be \fBroot\fR to view or change
  88   87  dump parameters.
  89   88  .SH OPTIONS
  90      -.sp
  91   89  .LP
  92   90  The following options are supported:
  93   91  .sp
  94   92  .ne 2
  95   93  .na
  96   94  \fB\fB-c\fR \fIcontent-type\fR\fR
  97   95  .ad
  98   96  .sp .6
  99   97  .RS 4n
 100   98  Modify the dump configuration so that the crash dump consists of the specified
↓ open down ↓ 178 lines elided ↑ open up ↑
 279  277  .na
 280  278  \fB\fB-s\fR \fIsavecore-dir\fR\fR
 281  279  .ad
 282  280  .sp .6
 283  281  .RS 4n
 284  282  Modify the dump configuration to use the specified directory to save files
 285  283  written by \fBsavecore\fR. The directory should be an absolute path and exist
 286  284  on the system. If upon reboot the directory does not exist, it will be created
 287  285  prior to the execution of \fBsavecore\fR. See the \fBNOTES\fR section below for
 288  286  a discussion of security issues relating to access to the savecore directory.
 289      -The default savecore directory is \fB/var/crash/\fIhostname\fR\fR where
 290      -\fIhostname\fR is the output of the \fB-n\fR option to the \fBuname\fR(1)
 291      -command.
      287 +The default savecore directory is \fB/var/crash\fR.
 292  288  .RE
 293  289  
 294  290  .sp
 295  291  .ne 2
 296  292  .na
 297  293  \fB\fB-u\fR\fR
 298  294  .ad
 299  295  .sp .6
 300  296  .RS 4n
 301  297  Forcibly update the kernel dump configuration based on the contents of
↓ open down ↓ 34 lines elided ↑ open up ↑
 336  332  .LP
 337  333  The following command reconfigures the dump device to a dedicated dump device:
 338  334  
 339  335  .sp
 340  336  .in +2
 341  337  .nf
 342  338  example# dumpadm -d /dev/dsk/c0t2d0s2
 343  339  
 344  340             Dump content: kernel pages
 345  341              Dump device: /dev/dsk/c0t2d0s2 (dedicated)
 346      -     Savecore directory: /var/crash/saturn
      342 +     Savecore directory: /var/crash
 347  343         Savecore enabled: yes
 348  344          Save compressed: on
 349  345  .fi
 350  346  .in -2
 351  347  .sp
 352  348  
 353  349  .SH EXIT STATUS
 354      -.sp
 355  350  .LP
 356  351  The following exit values are returned:
 357  352  .sp
 358  353  .ne 2
 359  354  .na
 360  355  \fB\fB0\fR\fR
 361  356  .ad
 362  357  .sp .6
 363  358  .RS 4n
 364  359  Dump configuration is valid and the specified modifications, if any, were made
↓ open down ↓ 14 lines elided ↑ open up ↑
 379  374  .ne 2
 380  375  .na
 381  376  \fB\fB2\fR\fR
 382  377  .ad
 383  378  .sp .6
 384  379  .RS 4n
 385  380  Invalid command line options were specified.
 386  381  .RE
 387  382  
 388  383  .SH FILES
 389      -.sp
 390  384  .ne 2
 391  385  .na
 392  386  \fB\fB/dev/dump\fR\fR
 393  387  .ad
 394  388  .sp .6
 395  389  .RS 4n
 396  390  Dump device.
 397  391  .RE
 398  392  
 399  393  .sp
↓ open down ↓ 12 lines elided ↑ open up ↑
 412  406  .na
 413  407  \fB\fIsavecore-directory\fR\fB/minfree\fR\fR
 414  408  .ad
 415  409  .sp .6
 416  410  .RS 4n
 417  411  Contains minimum amount of free space for \fIsavecore-directory\fR. See
 418  412  \fBsavecore\fR(1M).
 419  413  .RE
 420  414  
 421  415  .SH SEE ALSO
 422      -.sp
 423  416  .LP
 424  417  \fBsvcs\fR(1), \fBuname\fR(1), \fBsavecore\fR(1M), \fBsvcadm\fR(1M),
 425  418  \fBswap\fR(1M), \fBattributes\fR(5), \fBsmf\fR(5)
 426  419  .SH NOTES
 427      -.sp
 428  420  .LP
 429  421  The system crash dump service is managed by the service management facility,
 430  422  \fBsmf\fR(5), under the service identifier:
 431  423  .sp
 432  424  .in +2
 433  425  .nf
 434  426  svc:/system/dumpadm:default
 435  427  .fi
 436  428  .in -2
 437  429  .sp
 438  430  
 439  431  .sp
 440  432  .LP
 441  433  Administrative actions on this service, such as enabling, disabling, or
 442  434  requesting restart, can be performed using \fBsvcadm\fR(1M). The service's
 443  435  status can be queried using the \fBsvcs\fR(1) command.
 444  436  .SS "Dump Device Selection"
 445      -.sp
 446  437  .LP
 447  438  When the special \fBswap\fR token is specified as the argument to \fBdumpadm\fR
 448  439  \fB-d\fR the utility will attempt to configure the most appropriate swap device
 449  440  as the dump device. \fBdumpadm\fR configures the largest swap block device as
 450  441  the dump device; if no block devices are available for swap, the largest swap
 451  442  entry is configured as the dump device. If no swap entries are present, or none
 452  443  can be configured as the dump device, a warning message will be displayed.
 453  444  While local and remote swap files can be configured as the dump device, this is
 454  445  not recommended.
 455  446  .SS "Dump Device/Swap Device Interaction (UFS File Systems Only)"
 456      -.sp
 457  447  .LP
 458  448  In the event that the dump device is also a swap device, and the swap device is
 459  449  deleted by the administrator using the \fBswap\fR \fB-d\fR command, the
 460  450  \fBswap\fR command will automatically invoke \fBdumpadm\fR \fB-d\fR \fBswap\fR
 461  451  in order to attempt to configure another appropriate swap device as the dump
 462  452  device. If no swap devices remain or none can be configured as the dump device,
 463  453  the crash dump will be disabled and a warning message will be displayed.
 464  454  Similarly, if the crash dump is disabled and the administrator adds a new swap
 465  455  device using the \fBswap\fR \fB-a\fR command, \fBdumpadm\fR \fB-d\fR \fBswap\fR
 466  456  will be invoked to re-enable the crash dump using the new swap device.
 467  457  .sp
 468  458  .LP
 469  459  Once \fBdumpadm\fR \fB-d\fR \fBswap\fR has been issued, the new dump device is
 470  460  stored in the configuration file for subsequent reboots. If a larger or more
 471  461  appropriate swap device is added by the administrator, the dump device is not
 472  462  changed; the administrator must re-execute \fBdumpadm\fR \fB-d\fR \fBswap\fR to
 473  463  reselect the most appropriate device fom the new list of swap devices.
 474  464  .SS "Minimum Free Space"
 475      -.sp
 476  465  .LP
 477  466  If the \fBdumpadm\fR \fB-m\fR option is used to create a \fBminfree\fR file
 478  467  based on a percentage of the total size of the file system containing the
 479  468  savecore directory, this value is not automatically recomputed if the file
 480  469  system subsequently changes size.  In this case, the administrator must
 481  470  re-execute \fBdumpadm\fR \fB-m\fR to recompute the \fBminfree\fR value. If no
 482  471  such file exists in the savecore directory, \fBsavecore\fR will default to a
 483  472  free space threshold of one megabyte. If no free space threshold is desired, a
 484  473  minfree file containing size 0 can be created.
 485  474  .SS "Security Issues"
 486      -.sp
 487  475  .LP
 488  476  If, upon reboot, the specified savecore directory is not present, it will be
 489  477  created prior to the execution of \fBsavecore\fR with permissions 0700 (read,
 490  478  write, execute by owner only) and owner \fBroot\fR. It is recommended that
 491  479  alternate savecore directories also be created with similar permissions, as the
 492  480  operating system crash dump files themselves may contain secure information.
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX