Monday, December 8, 2008

Fix a Full / Filesystems

Use the Following steps:

1. Use the who command to read the contents of the /etc/security/failedlogin file:
# who /etc/security/failedlogin
The condition of TTYs respawning too rapidly can create failed login entries.
To clear the file after reading or saving the output, execute the following
command:
# cp /dev/null /etc/security/failedlogin

2. Check for very large files that might be removed using the find command. For
example, to find all files in the root (/) directory larger than 1 MB, use the
following command:
# find / -xdev -size +2048 -ls |sort -r +6

Before removing any files, use the command fuser to ensure a file is not
currently in use by a user process:
fuser filename

No comments: