The disk was nearly full, couldn't identify unwanted files to remove from disk

Keywords: Apache Solr - Google Cloud Platform - How to - Other
Description:
The disk was nearly full I have deleted some of the unwanted files, however, still, lots of unwanted files are there. but I couldn’t identify those files, please some help me to resolve this issue
Thanks, Heaps

Hi @surenmuthusamy,

Let’s get some more information from the installation directory. These commands will return the number of files inside the different folders as well as the size of each of them

cd /opt/bitnami
sudo find . -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n
sudo du -h -d 1

Thanks

1 Like

Thanks for your help
please find following result after run this code
1 bncert
1 bnsupport-regex.ini
1 changelog.txt
1 ctlscript.sh
1 img
1 manager-linux-x64.run
1 properties.ini
1 README.txt
1 use_wordpress
2 letsencrypt
6 sqlite
6 stats
10 config
15 var
24 scripts
47 bnsupport
108 varnish
110 licenses
476 mysql
704 php
4679 common
4705 apache2
16831 apps
surensamy@fastcleaning-vm:/opt/bitnami$ sudo du -h -d 1
96K ./var
328M ./licenses
8.0K ./img
28M ./bnsupport
161M ./apache2
24M ./bncert
3.6M ./varnish
1.5G ./mysql
68K ./config
3.0M ./stats
3.4M ./sqlite
80M ./php
141M ./common
120K ./scripts
34M ./letsencrypt
8.6G ./apps
11G .

Hi @surenmuthusamy,

As you can see, the apps directory has 8.6G, it seems the application there is storing a lot of data. You can change directories to the apps folder and run the command again so you find where most of the data is stored. You can continue with the process till you find the information you are looking for

cd directory with more data
sudo du -h -d 1
1 Like
  1 bncert
  1 bnsupport-regex.ini
  1 changelog.txt
  1 ctlscript.sh
  1 img
  1 manager-linux-x64.run
  1 properties.ini
  1 README.txt
  1 use_wordpress
  2 letsencrypt
  6 sqlite
  6 stats
 10 config
 15 var
 24 scripts
 47 bnsupport
108 varnish
110 licenses
476 mysql
704 php

4679 common
4714 apache2
16844 apps
surensamy@fastcleaning-vm:/opt/bitnami$ sudo du -h -d 1
96K ./var
328M ./licenses
8.0K ./img
28M ./bnsupport
162M ./apache2
24M ./bncert
3.6M ./varnish
1.6G ./mysql
68K ./config
3.0M ./stats
3.4M ./sqlite
80M ./php
141M ./common
120K ./scripts
34M ./letsencrypt
3.6G ./apps
5.9G .

Job well done, Thanks Jota

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.