How can I tell which files are consuming more space in AIX?
How can I tell which files are consuming more space in AIX?
find /var -xdev -ls|sort +6rn|head -20 The command check all the directory and sub-directory of /var and find out the highly space consuming files and display it. You can find out the file size on the 6th column and the files are list out in reverse order which means highly space consuming files are list out in first.
How do you troubleshoot a file system is full?
Your comment on this answer: Check filesystem usage. Check for deleted files which are getting accessed. If actual usage of /var is less than showing in “df -h” command then there must be issue with open log files which are deleted but still accessed by Process. Check for deleted files which are getting accessed.
How do I know if my filesystem is corrupted?
The Linux fsck command can be used to check and repair a corrupted filesystem under some situations….Example: Using Fsck to Check and Repair a Filesystem
- Change to single user mode.
- List the mount points on your system.
- Unmount all filesystems from /etc/fstab .
- Find the logical volumes.
How do I check disk space on AIX?
Hi, #bootinfo -s hdiskX–> gives the size of the given disk. If you need the size of all the disks, check for the disks which are all available. It gives the sizes of all the disks.
What does the du command do?
The du command is a standard Linux/Unix command that allows a user to gain disk usage information quickly. It is best applied to specific directories and allows many variations for customizing the output to meet your needs. As with most commands, the user can take advantage of many options or flags.
What is inode in AIX?
An inode is a data structure in UNIX operating systems that contains important information pertaining to files within a file system. When a file system is created in UNIX, a set amount of inodes is created, as well. Usually, about 1 percent of the total file system disk space is allocated to the inode table.
How do you debug disk space issues?
If you find yourself constantly having disk space issues, the solution is to set up periodic deletion/rotation of old log files, alerts when the disk space reaches a particular threshold or to increase the disk size if your processes require a lot of disk space e.g Kafka, MySQL and other databases.
How do I repair filesystem in rescue mode?
Repair Root File System
- Enter the boot menu and choose Advanced Options.
- Select the Recovery mode and then “fsck”.
- When prompted to remount the root file system choose “Yes”.
- Once done, resume the normal boot.
What is Iused in AIX?
Iused means Inodes space used. Each file in Unix-like systems has an associated data structure called Inode which stores the information about the file (sometimes called file metadata).
How do you check inode utilization in AIX?
A quick way to examine an inode in AIX is by using the istat command. With this command, you can find the inumber of the specific file as well as other inode items like permissions; file type; UID; GID; number of links (not symbolic links); file size; and time stamps for last updated, last modified, and last accessed.