[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

SOLVED Re: /var still counts /var/cache



On Mon, Jan 27, 2003 at 01:23:32PM -0800, Charlie Reiman wrote:
> It probably does. Unmount /var/cache, then cd /var/cache. You'll find all
> your old stuff is probably still there. You can them probably do:
> 
> cd /var
> mv cache cache.old
> mkdir cache
> mount /var/cache

Yup. But you I also had to delete the cache.old directory. I'd tarred all
of /var before I started so I wasn't too worried about things going
missing.

debian:/var# rm -Rf cache.old
debian:/var# umount /var/cache
debian:/var# cd /var/cache/
debian:/var/cache# ll
total 2.0K
drwxr-xr-x    2 root     root         1.0K Jan 27 16:09 .
drwxr-xr-x   15 root     root         1.0K Jan 27 16:38 ..
debian:/var/cache# mount /var/cache
debian:/var/cache# ll
total 2.0K
drwxr-xr-x    2 root     root         1.0K Jan 27 16:09 .
drwxr-xr-x   15 root     root         1.0K Jan 27 16:38 ..
debian:/var/cache# cd

debian:~# cd /var/cache
debian:/var/cache# ll
total 45K
drwxr-xr-x    9 root     root         4.0K Jan 27 15:29 .
drwxr-xr-x   15 root     root         1.0K Jan 27 16:38 ..
drwxr-xr-x    3 root     root         4.0K Jan 27 15:29 analog
drwxr-xr-x    2 root     root         4.0K Jan 27 15:29 apache
drwxr-xr-x    3 root     root         4.0K Jan 27 15:46 apt
drwxr-xr-x    2 root     root         4.0K Jan 27 15:29 debconf
drwxr-xr-x    5 root     root         4.0K Jan 27 15:29 fonts
drwx------    2 root     root          16K Jan 27 14:42 lost+found
drwxr-sr-x   15 man      root         4.0K Jan 27 15:29 man
debian:/var/cache# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda2               474474     28446    421529   7% /
/dev/hda3              4806936   2120004   2442744  47% /home
/dev/hda5              2403420   1359416    921912  60% /usr
/dev/hda6               474443    108362    341584  25% /var
/dev/hda7              2885780     46500   2692692   2% /usr/local
/dev/hda9                46636        45     44183   1% /tmp
/dev/hda10             2403344    340500   1940752  15% /var/cache

/var is now down to 25% and I can pick up mail again!

> This will mount the new /var/cache without destroying the old one. If
> everything works to your satisfaction: rm -rf /var/cache.old. That should
> free up the space.

Thank you thank you thank you. :)

-- 
Emma Jane Hogbin
[[ 416 417 2868 ][ www.xtrinsic.com ]]



Reply to: