Resolving a near full disk partition in SSIM

book

Article ID: 157999

calendar_today

Updated On:

Products

Security Information Manager

Issue/Introduction

Your disk/partition is at 80+ % full and you don't want it to fill up

Resolution


Here is an _example_ of how to do the procedure.  Note the files and or locations may be different.

[check what file systems are different than / ]


[[email protected] logs]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              20G   16G  3.6G  82% /
tmpfs                 1.9G  4.0K  1.9G   1% /dev/shm
/dev/sda1              97M   32M   61M  34% /boot
/dev/sda9              12G  2.4G  8.9G  22% /dbsesa
/dev/sda10             50G  976M   49G   2% /eventarchive
/dev/sda11             13G  201M   13G   2% /eventdata

[check what is the biggest offender in terms of taking space]


[[email protected] ~]# du -sh /*
8.7M    /bin
26M     /boot
2.7G    /dblog
2.3G    /dbsesa
184K    /dev
45M     /etc
937M    /eventarchive
168M    /eventdata
160K    /home
15M     /initramfs-2.6.32-279.1.1.el6.x86_64.img
15M     /initramfs-2.6.32-279.1.1.el6.x86_64.img.b4dmp
138M    /lib
24M     /lib64
16K     /lost+found
4.0K    /media
4.0K    /mnt
11G    /opt       <----- here is the biggest on /
du: cannot access `/proc/23494/task/23494/fd/4': No such file or directory
du: cannot access `/proc/23494/task/23494/fdinfo/4': No such file or directory
du: cannot access `/proc/23494/fd/4': No such file or directory
du: cannot access `/proc/23494/fdinfo/4': No such file or directory
0       /proc
60K     /root
34M     /sbin
4.0K    /selinux
4.0K    /srv
0       /sys
636K    /tmp
1.1G    /usr
834M    /var

[As /opt is the biggest offender on the / partition, go there and repeat the process ]


[[email protected] ~]# cd /opt/
[[email protected] opt]# du -sh *
352M    ibm
1.1G    IBM
0       IBMIHS
0       jdk
361M    pubscribe
8.3G    Symantec  <----- here is the biggest
 
[ continuing to dive into the file system to find the biggest files ]


[[email protected] opt]# cd Symantec/

[[email protected] Symantec]# du -sh *
1.4G    dim
4.0K    els
12K     Licenses
2.6M    LiveUpdate
6.2G    sesa  <----- here is the biggest
700M    simserver
996K    Tools
3.4M    updates

[ continuing to dive into the file system to find the biggest files ]


[[email protected] Symantec]# cd sesa/
[[email protected] sesa]# du -sh *
20K     2.5
185M    Agent
176K    bin
849M    eventservice
4.0K    FailsafeDataStoreCache.xml
4.0K    FailsafeDirectoryCache.xml
156M    httpd
0       jdk
8.0K    keydb
2.4M    lib
4.2G    logs  <----- here is the biggest
808M    servletengine
96K     SESAapp.ico
224K    SesaInstall.log
8.0K    SESAManagerConnectionConfig.xml
4.0K    ses_common.xml
4.0K    Tools
8.0K    var
1.9M    vmg0-ssim48-s1

[ continuing to dive into the filesystem to find the biggest files ]


[[email protected] sesa]# cd logs/
[[email protected] logs]# du -sh *
4.0G    huge_test_file  <<----  Here is the file(s) to remove
1.7M    eventservice.log
11M     eventservice.log.1
11M     eventservice.log.10
11M     eventservice.log.2
11M     eventservice.log.3
11M     eventservice.log.4
11M     eventservice.log.5
11M     eventservice.log.6
11M     eventservice.log.7
11M     eventservice.log.8
11M     eventservice.log.9
11M     manager.log
26M     manager.log.1
26M     manager.log.2
26M     manager.log.3
26M     manager.log.4
26M     manager.log.5
26M     manager.log.6