Linux system, sometimes need to re-mount var partition to free up space, and the theoretical explanation many people do not understand, the following small series through an example to introduce you to Linux Remount the var partition method so that everyone can understand.
sometimes you find such a situation, var partition using the du and df seen occupancy is inconsistent, under normal circumstances, due to delete some files, but the file also led to occupy space program Not released. Sometimes, if you know which program is occupied, you can directly release the program directly after restarting the program; sometimes, you need to re-install the var partition to completely release the space.
See which programs are using var partitions
# lsof |
Grep /var
auditd 1182 root 5w REG 252,1 3288401 2885177 /var/log/audit/audit.log
rsyslogd 1198 root 1w REG 252,1 1507 2885223 /var/log/Messages
rsyslogd 1198 root 2w REG 252,1 105277 2885155 /var/log/cron
rsyslogd 1198 root 4w REG 252,1 4310 2885224 /var/log/secure
The first column lists which program is occupying the file
The common programs are as follows: pcscd, crond, syslog, auditd
The uninstall var partition script is as follows:
#! /bin/bash
ServerList=“pcscd crond syslog auditd”
Disk=$(df -h|
Grep “/var” |
Awk ‘{print $1}& rsquo;)
for server in $ServerList
do
service $server stop
done
umount /var
for server in $ServerList
do
service $server start
done
mount $disk /var
The above is the introduction of Linux re-mounting var partitions. Through this example, you can learn how to mount var partitions on Linux systems.
Using the xargs command on a Linux system can solve a lot of problems, especially t
in Linux Zsh and bash are shell scripts that can run in Linux. The default is bash. To use Zsh, you
Amazon AWS mainly provides IT infrastructure services to enterprises, namely cloud
In Linux system operation, using MyEclipse to start Tomcat suddenly becomes very sl
Linux SecureCRT Tips for Uploading and Downloading Files
Linux Mint Cinnamon uses vino-server to configure desktop sharing. Step
What should I do if Ncurses shows Chinese garbled under Linux?
What should I do if I install a graphics card driver error on Ubuntu 13.10?
How to generate reports using Linux using the Sosreport command
Tips for removing the player from the Ubuntu sound menu
What should I do if the CentOS 6.5 network in VMware is not connected?
CentOS 7 tips for resetting the root password
Summary of the usage of the Linux command less command
How to install JITwatch in Linux system?
How to avoid WinQ/Win8.1 installation key
How to set up Win7 dynamic desktop wallpaper
Registry removes Windows 7 shortcut arrow
PPT landscaping master sidebar does not show solutions
Win8.1 Update is easily overlooked details
Meeting season: The world in the eyes of the giants
Windows8 operating system security upgrade
Recycle bin to play hide and seek How to find him out?
How to remove the blue bottom of the win7 computer desktop icon