File System Management for AIX

Source: Internet
Author: User

1. Space management

Monitor the growth of file systems

Document to control continuous growth

Manage space use of file systems

Controlling user disk Use

Clean up file system fragmentation

Although the system can dynamically increase the file system, it is not automatic. The system administrator can check the status and usage of the file system through the monitoring tools. If the system does not have enough space, the system sends a message to the user "out of room". For example, you can use command DF to check file system usage.

2. Display disk space

The DF command displays information such as total file system space and available space

# DF

– I displays the number of I nodes that have been used, along with the I node usage rate.

–k indicates that the file system space shown is computed as a block of 1024 byte size.

–m indicates that the file system space shown is computed in blocks of M.

–g indicates that the file system space shown is computed in blocks of G.

3, to control the growth of the document

/var/adm/wtmp

/var/spool/*/*

$HOME/smit.log

$HOME/smit.script

$HOME/websm.log

$HOME/websm.script

/etc/security/failedlogin

/var/adm/sulog

The growth of the document should be regularly monitored and cleared.

/var/adm/wtmp,/etc/security/failedlogin,/var/adm/sulog, these files are the information that describes the user's login, which is reserved in the system.

The/var/spool directory saves some information about the messages that the printer files produce. Users can also clear this information by using the following command:

Stopsrc-s Qdaemon

rm/var/spool/lpd/qdir/*

rm/var/spool/lpd/stat/*

rm/var/spool/qdaemon/*

Startsrc-s Qdaemon

4. Skulker Tools

The Skulker command cleans up the file system by deleting unwanted or obsolete files.

The files to be deleted include

Files in/tmp directory

A.out file

Core file

Ed.hup file

Users can change the Skulker shell script file according to actual requirements

Skulker is usually defined in the crontab file of root, and the cron process activates every day

Use the/usr/sbin/skulker program to purge files. The following are some of the deleted files defined in the Skulker file, and the user can change the Skulker shell script file based on actual requirements.

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.