Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rootvg is full

Status
Not open for further replies.

rpatel19

Technical User
Jul 28, 2000
3
0
0
US
I am new to AIX and my rootvg is full 100%. Please help.
 
If root (/) Is Full

Check the /etc/security/failedlogin file.
Use the following command to read the contents of the file.

who /etc/security/failedlogin

The condition of tty's respawning too rapidly will create failed login entries.
To clear the file after reading or saving the output, execute the following
command:

cp /dev/null /etc/security/failedlogin

Check the /dev directory.
If a device name is mis-typed, as in "rmto" instead of "rmt0",
a file will be created in /dev called "rmto". The command will normally
proceed until the entire root file system is filled before failing
(/dev is part of the / file system). Look for entries that are
not devices (that do not have a major or minor number).

Execute the following:

cd /dev
ls -l |pg
Whereas a file size on an ordinary file would normally be seen,
a device file will have two numbers separated by a comma.
Example
crw-rw-rw- 1 root system 12, 0 Oct 25 10:19 rmt0

If the output looks like the following, the file should be removed.
Example
crw-rw-rw- 1 root system 9375473 Oct 25 10:19 rmto

NOTE: The /dev directory has some valid file names. Look for a file
that has a large size (larger than 500 bytes).
NOTE: If system auditing is running, the /audit directory (default)
may rapidly fill up and require attention.

Check for very large files.
Large files can be located with the find command. For example,
to find all files in the root (/) directory
larger than 1 MB, type the following command:

find / -xdev -size +2048 -ls |sort -r +6

This will find all files greater than 1 MB and sort them in reverse
order with the largest files first.

NOTE: When checking the root directory, entries from the /dev directory
that have major and minor numbers instead of file sizes will be
interspersed with "real" files and can be ignored.

Other useful find command flags may be helpful, such as the -newer flag.
For versions of AIX prior to 4.3, use InfoExplorer to learn
more about such flags.

NOTE: Before removing any files, the user should check to see if the
file is currently in use by an active user
process. Execute the following command:
fuser <filename>
<filename> is the file name that is being checked by the active user
process. If a file is &quot;open&quot; at the time of removal it is only removed
from the directory listing. The blocks allocated to that file are
not freed until the process holding the file open is killed

Look for core files find / -name core -print
these can be removed.

---------------------
If you have a few free pps you might consider increasing root and finding
what is filling it up after you add hte pps. I have seen systems crash and files in /etc get overwritten when root is 100% full.

Good Luck
 
Let's clarify:

Is &quot;root&quot; full, or &quot;rootvg&quot; full ? The original post said &quot;rootvg&quot; was full. This would imply no more free partitions to allocate on physical disks.

Please post the output of &quot;lsvg rootvg&quot;.

Given the poster was &quot;new to AIX&quot; - confusion possible.

Bill.
 

du -x / | sort -n -r | head -10

`du -a` will calculate file sizes from *all*
mounted file systems.

Regards,
joe
 
Thanks Bill you are right..... I missed that and since he is a new user...you
may be right on the money
 
rpatel19::
what is the output of
errpt | head

????
 
Yes it is /root not rootvg. Thanks all for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top