|
|
A ``system crash'' is the system going down without unmounting filesystems and doing other cleanup operations. This is also called an ``abnormal shutdown.'' Three types of system crashes occur:
Note that a system that has NFS-mounted files from a system that is down may behave as if it is hung; in that case, rebooting the other system or, if possible, unmounting the filesystems from your system will usually solve the problem.
When the system is shut down normally, the shutdown(ADM) program stops all daemons, kills the active processes, unmounts any mounted filesystems, runs the sync(ADM) command, and tells init(M) to bring the system down to the appropriate state (either single-user or ``safe to power off''), or to reboot.
If the system goes down before this shutdown procedure completes, filesystems may be corrupted, resulting in lost data. Some data may be lost because the buffer cache was not flushed to disk. The operating system flushes the buffers to disk fairly regularly, so the amount of data lost due to an abnormal system shutdown should be minimal. However, filesystem corruption is a common problem. If the root filesystem is corrupted, the system may not function properly.
When the system crashes for any reason, record the relevant data in the system log book and then reboot the system.