Saturday, June 2, 2012

Not able to search logs in STRM?


If you are wondering why you are not able to search the logs in STRM & your dashboard is not loading, the reason could be your disk space on /store is full. This is because of some queries generating large files.

You need to cleanup those files under /store/ariel/persistent_data/ariel.ariel_proxy_server/normal/cursors this is the directory where all the queries are stored in Binary format


To check the current disk space for /Store partition


Check for Disk Space on "/Store" partition

[root@strm_console]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              20G  8.2G   11G  45% /
/dev/sda6             3.0G  2.6G  309M  90% /recovery
/dev/sda3             9.7G  539M  8.7G   6% /var/log
/dev/sda1             107M   19M   83M  19% /boot
tmpfs                 3.9G     0  3.9G   0% /dev/shm
/dev/drbd0            1.3T  1.2T  102G  99% /store
/dev/sda5              17G  175M   16G   2% /store/tmp

Change the directory to "/store/ariel/persistent_data/ariel.ariel_proxy_server/normal/" cursors and list the files by executing the command as mentioned below.


Check for Files that are in GB

[root@strm_console]# ls -lSh | grep G
-rw-r--r-- 1 root root 752G Jul 19 07:14   4e18b125-8320-4021-bad7-3ffc0628aff6
-rw-r--r-- 1 root root 188G Jul 19 03:00   9cb615cd-231b-4a6b-9439-a0c23c0ad080
-rw-r--r-- 1 root root 76.8G Jul 19 06:56  afe138dc-194f-429c-81fa-5759f8b1d9eb



Check for Files that are in MB

[root@strm_console]# ls -lSh | grep M
 -rw-r--r-- 1 root root 834M Jul 17 23:26   7b1c59ea-e026-40e7-b889-7ef0486e7233
 -rw-r--r-- 1 root root 249M Jul 19 09:33   1bcdee97-0cfa-4d00-b1c6-1dfb5c89c3a0



To Deleting a file execute the rm command:

[root@strm_console]# rm -f "file_name"

Replace the "file_name" with the actual file name

[root@strm_console]# rm -f 9cb615cd-231b-4a6b-9439-a0c23c0ad080


Check for Disk Space on "/Store" partition

[root@strm_console]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              20G  8.2G   11G  45% /
/dev/sda6             3.0G  2.6G  309M  90% /recovery
/dev/sda3             9.7G  539M  8.7G   6% /var/log
/dev/sda1             107M   19M   83M  19% /boot
tmpfs                 3.9G     0  3.9G   0% /dev/shm
/dev/drbd0            1.3T  198G  1.1T  16% /store
/dev/sda5              17G  175M   16G   2% /store/tmp




Leave your comment below

No comments:

Post a Comment