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

RE: [cobalt-users] getting low on memory message each morning at 4:00am



> When I did  du -h -s /* I get the following:
> 4.0M    /bin
> 2.3M    /boot
> 84k     /dev
> 7.6M    /etc
> 2.0k    /gmon.out
> 
> When I did du -h -s /usr/* I get the following:
> 9.8M    /usr/X11R6
> 2.0k    /usr/adm
> 9.6M    /usr/admserv
> 61M     /usr/bin
> 98k     /usr/cgi-bin
> 44k     /usr/cgiwrap
> 309k    /usr/cmu
> 404k    /usr/dict
> 63M     /usr/doc
> 1.0k    /usr/etc
> 781k    /usr/games
> 2.0k    /usr/httpd
> 11M     /usr/i386-glibc20-linux
> 5.4M    /usr/i486-linux-libc5
> 11M     /usr/include
> 5.8M    /usr/info
> 30M     /usr/jre1.2
> 1.2M    /usr/knox
> 217M    /usr/lib
> 714k    /usr/libexec
> 32M     /usr/local
> 13M     /usr/man
> 0       /usr/openv
> 3.0k    /usr/sausalito
> 30M     /usr/sbin
> 61M     /usr/share
> 6.0k    /usr/src
> 0       /usr/tmp
> 
You want to move over the bigger directories, cause those will free up more space.
So, to move over /usr/doc (which is 61Mbytes)

1. Create a directory in home called usr
mkdir /home/usr

2. Move the contant over, and create the symbolic link, all in one command:
mv /usr/doc /home/usr; ln -s /home/usr/doc /usr/doc

3. Make sure we did it right - do a directory listing
ls -l /usr
You should see /usr/doc ---> /home/usr/doc in the list someplace

4. Check what diskspace is free
df

Hopefully, the / partition will show something less than 85%

Vidar