📄 savecore.8
字号:
.\" SCCSID: @(#)savecore.8 8.1 9/11/90.TH savecore 8.SH Namesavecore \- save a core dump of the operating system.SH Syntax.B /etc/savecore[ \fIoptions\fR ].I dirname[.I system][.I corename].SH Description.NXR "savecore command".NXR "core dump" "saving"The .PN savecore commandis meant to be called near the end of the .PN /etc/rc.local file. The .PN savecorecommand saves the core dump of the system (assuming one was made) andwrites a reboot message in the shutdown log..PPThe .PN savecorecommand checks the core dump to be certain it corresponds with thecurrent running ULTRIX. If it does, it saves the core image in the file\fIdirname\f(CW/vmcore.\fIn\fRand saves the namelist in the file \fIdirname\f(CW/vmunix.\fIn\fR.The trailing \fI.n\fR in the pathnames is replaced by a number whichincrements each time.PN savecoreis run in that directory..PPAfter saving the core and namelist images, .PN savecorewill save the error logger buffer into a predetermined file. The errorlogger buffer contains information about why the crash occurred. After .PN savecorecompletes, the .PN elcsd daemon will extract the error logger file andtranslate its contents into a form familiar to the .MS uerf 8program..PPBefore .PN savecore writes out a core image, it reads a number from the file\fIdirname\f(CW/minfree\fR.If there are fewer free blocks on the filesystemthat contains.I dirnamethan the number obtained from the .PN minfreefile, a core dump is not done.If the.PN minfreefile does not exist, savecore always writes out the corefile (assuming that a core dump was taken)..PPThe .PN savecore commandalso writes a reboot message in the shut down log.If the system crashedas a result of a panic,.PN savecorealso records the panic string in the shut down log..PPFor partial crash dumps,.PN savecorecreates a sparse core image file in\fIdirname\f(CW/vmcore.\fIn\fR.If this sparse core image file iscopied or moved to another location, the file expands to its true sizewhich can take too much file system space. Hence, to copy or movesparse core image files, you must use the.PN ddcommand. The.PN ddcommand has a conversion option to create sparse output files..SH Options.IP \-c 5Clears the core dump. This option is useful when the coredump is corrupted in a way that will not allow.PN savecoreto save it safely. Use the .PN \-coption with caution, because once it clears the core dump, the coredump cannot be retrieved..IP "\-d \fIdumpdev dumplo\fP"Specifies the dump device and the dump offset when running.PN savecoreon a system image other than the currently runningsystem image. The .PN savecore program assumes that the running system image is.PN /vmunixand it reads the dump device and dump device offset are different in the system image that crashed, the .PN \-doption provides the correct dump device and dump device offset..IP \-e Saves only the error logger buffer into a file. Ifused, core or namelist images are not saved..IP "\-f \fIcorename\fR"Takes the i.I corefilename as the file from which to extract the the crash dump datainstead of the default dump device. This option is used only fordiskless workstations..PPIf the core dump was from a system other than \f(CW/vmunix\fR, the nameof that system must be supplied as.IR system .The.PN savecoreprogram assumes that the running image is.PN /vmunix ..PPAfter successful completion, the core dump is cleared. Also, a messageis written in the file .PN /usr/adm/shutdownlogwhich tells whether the dump succeeded or failed..SH Files.TP 20.PN /usr/adm/shutdownlog Shut down log.TP .PN /vmunix Current running ULTRIX system.SH See Alsodd(1), uerf(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -