If you run out of space on a disk drive, there are several ways to remedy the problem. You can automatically track and remove unwanted files, restrict users from certain directories, or mount space from another disk drive.
You must have root user, system group, or administrative group authority to execute these tasks.
Use the skulker command to clean up file systems by removing unwanted files by typing:
The skulker command is used to periodically purge obsolete or unneeded files from file systems. Candidate files include files in the /tmp directory, files older than a specified age, a.out files, core files, or ed.hup files.
Normally, the skulker command is run daily, often as part of an accounting procedure run by the cron command during off-peak hours. You must have root user authority to run this command. For more information about using the skulker command in a cron process, see Fixing Disk Overflows .
For information on typical cron entries, see Setting Up an Accounting System .
Another way to free up disk space and possibly to keep it free is to restrict and monitor disk usage.
chmod 655 rootdir
This sets read and write permissions for the owner (root) and sets read-only permissions for the group and others.
0 2 * * 4 /usr/sbin/acct/dodisk
The dodisk command initiates disk-usage accounting. This command is usually run as part of an accounting procedure run by the cron command during off-peak hours. See Setting Up an Accounting System for more information on typical cron entries.
Another way to get more space on a disk drive is to mount space from another drive. There are two ways to mount space from one disk drive to another:
mount -n nodeA -vnfs /usr/spool /usr/myspool
For more information about mounting file systems, see Mounting or Unmounting a File System .