Failure of sudden loss of application software in linux

Source: Internet
Author: User
Fault description of the sudden loss of application software in linux: a small system found that the application software was deleted in the morning and the system could not run normally. the related personnel found that the OS version was RHEL61, after logging on to the host, we found that devsdb1 mounted two file systems at the same time. Note that tmp was also mounted. [fault description of the sudden loss of application software in linux: a small system found that the application software was deleted in the morning, the system fails to run normally. all relevant personnel have found the cause. the OS version is RHEL6 1. when you log on to the host, you find that two file systems are mounted at the same time in/dev/sdb1. Note that/tmp is also mounted to [plain] [root @ localhost ~]. # Df-h file system capacity used available % mount point/dev/mapper/VolGroup-lv_root 14G 6.8G 6.0G 54%/tmpfs 4.0G 176 K 4.0G 1%/dev/shm /dev/sda1 485 M 51 M 409 M 11%/boot/dev/sdb1 40G 8.5G 29G 23%/spmwls/dev/sdb1 40G 8.5G 29G 23%/tmp 2, the operating system will delete the files in the/tmp directory every day. it should be the files that were deleted 10 days ago by default, therefore, the middleware software installed by spmwls is deleted by the system [plain] [root @ localhost cron. daily] # pwd/etc/cron. daily [root @ localhost cron. daily] # cat/etc/cron. daily/tmpwatch #! /Bin/sh flags =-umc/usr/sbin/tmpwatch "$ flags"-x/tmp /. x11-unix-x/tmp /. XIM-unix \-x/tmp /. font-unix-x/tmp /. ICE-unix-x/tmp /. test-unix \-X'/tmp/hsperfdata _ * '10d/tmp/usr/sbin/tmpwatch "$ flags" 30d/var/tmp for d in/var/{cache /man, catman}/{cat ?, X11R6/cat ?, Local/cat ?}; Do if [-d "$ d"]; then/usr/sbin/tmpwatch "$ flags"-f 30d "$ d" fi done 3, check the cron execution log [plain] Oct 10 03:11:03 localhost run-parts (/etc/cron. daily) [62997]: starting tmpwatch Oct 10 03:11:04 localhost run-parts (/etc/cron. daily) [63215]: finished tmpwatch Logs of failed file deletion/Etc/cron. daily/tmpwatch: error: failed to rmdir/tmp/weblogic1036/user_projects/domains/cmb/lib: Device or resource busy 4, note: the running principle of cron in RHEL 6 RHEL6 has changed the running of cron daily. through the man command, you can get the specific contents of cron execution in the directory a and/var/spool/cron. the files under this directory are the same as those processed by the crontab-l command B and/etc/cron. d directory file c,/etc/anacrontab file content, this tmpwatch is executed through this file, this file will run [plain] [root @ localhost lib] # cat/etc/anacrontab #/etc/anacrontab: configuration file for anacron # See anacron (8) at three o'clock) and anacrontab (5) for details. SHELL =/bin/sh PATH =/sbin:/bin:/usr/sbin: /usr/bin MAILTO = root # the maximal random delay added to the base delay of the jobs RANDOM_DELAY = 45 # the jobs will be started during the following hours only START_HOURS_RANGE = 3-22 # period in days delay in minutes job-identifier command 1 5 cron. daily nice run-parts/etc/cron. daily 7 25 cron. weekly nice run-parts/etc/cron. weekly @ monthly 45 cron. monthly nice run-parts/etc/cron. monthly man cron Cron searches/var/spool/cron for crontab files which are named after accounts in/etc/passwd; The founded crontabs are loaded into memory. cron also searches for/etc/anacrontab and the files in the/etc/cron. d directory,
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.