On a Solaris 7 system, I found there wasn't sufficient space in
/var to allow me to install software.
# gunzip libidn-1.14-sol7-sparc-local.gz
# pkgadd -d ./libidn-1.14-sol7-sparc-local
The following packages are available:
1 SMClibidn libidn
(sparc) 1.14
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Processing package instance <SMClibidn> from </tmp/libidn-1.14-sol7-sparc-local>
libidn
(sparc) 1.14
Simon Josefsson et al
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
20 package pathnames are already properly installed.
## Verifying disk space requirements.
WARNING:
The /var filesystem has 0 free blocks. The current installation requires 152
blocks, which includes a required 150 block buffer for open deleted files. 152
more blocks are needed.
Do you want to continue with the installation of <SMClibidn> [y,n,?] n
Installation of <SMClibidn> was terminated due to user request.
No changes were made to the system.When I checked the contents of /var/log, I found the
following:
# ls -l total 139882 -rw------- 1 root sys 26576205 Aug 12 15:11 authlog -rw------- 1 root other 14635403 Aug 12 15:41 maillog -rw-r--r-- 1 root root 6605320 Aug 12 15:44 named_querylog -rw-r--r-- 1 root root 5538180 Jul 11 06:23 named_querylog.0 -rw-r--r-- 1 root root 3651 Jun 15 16:58 named_querylog.1 -rw-r--r-- 1 root other 794523 Jun 15 15:39 named_querylog.2.gz -rw------- 1 root other 4106078 Jun 24 18:04 poplog -rw------- 1 root other 13249096 Aug 12 14:50 sshd.log -rwxrwxrwx 1 root other 240 Jul 27 2000 sysidconfig.log
I moved authlog, maillog, and sshd.log
to a a directory under /home, recreated the files in
/var/log with touch, set the permissions
to 600, and changed the group to what it had been
previously on authlog.
# touch authlog.log # touch maillog.log # touch sshd.log # chmod 600 authlog # chmod 600 maillog # chmod 600 sshdlog # chgrp sys authlog # ls -l total 33402 -rw------- 1 root sys 0 Aug 12 15:52 authlog -rw------- 1 root other 0 Aug 12 15:49 maillog -rw-r--r-- 1 root root 6610244 Aug 12 15:54 named_querylog -rw-r--r-- 1 root root 5538180 Jul 11 06:23 named_querylog.0 -rw-r--r-- 1 root root 3651 Jun 15 16:58 named_querylog.1 -rw-r--r-- 1 root other 794523 Jun 15 15:39 named_querylog.2.gz -rw------- 1 root other 4106078 Jun 24 18:04 poplog -rw------- 1 root other 0 Aug 12 15:55 sshd.log -rwxrwxrwx 1 root other 240 Jul 27 2000 sysidconfig.log
I then restarted the syslog daemon so it would use the new files.
# /etc/init.d/syslog stop # /etc/init.d/syslog start syslog service starting.
When I then checked the free space for /var, 94% of
the capacity was used, whereas it had been 100% previously.
# df -k Filesystem kbytes used avail capacity Mounted on /proc 0 0 0 0% /proc /dev/dsk/c0t0d0s0 2052750 1646775 344393 83% / fd 0 0 0 0% /dev/fd /dev/dsk/c0t0d0s3 1015542 893738 60872 94% /var /dev/dsk/c0t0d0s4 5058110 4968663 38866 100% /home swap 269872 6728 263144 3% /tmp
References:
-
Moving Sendmail's Maillog
File
Date: August 10, 2005
MoonPoint Support
