Welcome to Pandora FMS Community › Forums › Community support › /dev/sda2 disk space
-
/dev/sda2 disk space
Posted by fonta on March 22, 2013 at 13:44Hi, i have a little problem with my /dev/sda2 disk space, its always grow up and i don’t know ho to free some space…
pandora402:/home/admin # df -h
Filesystem      Size Used Avail Use% Mounted on
rootfs        58G 50G 5.2G 91% /
devtmpfs      1003M 100K 1003M 1% /dev
tmpfs        1006M 4.0K 1006M 1% /dev/shm
/dev/sda2Â Â Â Â Â Â Â 58GÂ 50GÂ 5.2GÂ 91% /
/dev/sda3Â Â Â Â Â Â Â 20GÂ 173MÂ 19GÂ 1% /homeHow can i resolve this problem?
Thanksfonta replied 11 years, 8 months ago 2 Members · 14 Replies -
14 Replies
-
::
Hello
Have you configured to run every day pandora_db.pl tool?
Regards
-
::
hi mario, i’m using the vm image and that script already exists on it!
i try to run the script but the result is always the same…pandora402:/etc/cron.daily # df -h
Filesystem      Size Used Avail Use% Mounted on
rootfs        58G 50G 5.2G 91% /
devtmpfs      1003M 100K 1003M 1% /dev
tmpfs        1006M 4.0K 1006M 1% /dev/shm
/dev/sda2Â Â Â Â Â Â Â 58GÂ 50GÂ 5.2GÂ 91% /
/dev/sda3Â Â Â Â Â Â Â 20GÂ 173MÂ 19GÂ 1% /home -
::
Check your Setup – Performance configuration and decreases the days if you don’t need so much information.
Then run pandora_db.pl, and check if decreases the size.
If you need a lot of information i recommend you a history database in other PC. (http://www.openideas.info/wiki/index.php?title=Pandora:Documentation_en:Console_Setup#History_database)
Regards
-
-
::
Hello
Have you checked the pandora_console/attachment size?
http://openideas.info/wiki/index.php?title=Pandora:Documentation_en:Console_Setup.
You can delete this temporaly files if this folder has very large size
Regards
-
::
Hi Mario, i’d deleted all the files in that directory but free space not increase…
admin@pandora402:~> df -h
Filesystem      Size Used Avail Use% Mounted on
rootfs        58G 51G 4.4G 92% /
devtmpfs      1003M 100K 1003M 1% /dev
tmpfs        1006M 4.0K 1006M 1% /dev/shm
/dev/sda2Â Â Â Â Â Â Â 58GÂ 51GÂ 4.4GÂ 92% /
/dev/sda3Â Â Â Â Â Â Â 20GÂ 173MÂ 19GÂ 1% /home -
-
-
::
Hi
What is the space occupied by the pandora database?
You can see it with this query:
SELECT table_schema “Data Base Name”, sum( data_length + index_length ) / 1024 / 1024 “Data Base Size in MB”
FROM information_schema.TABLES GROUP BY table_schema ;Are you using this server to another function?
Regards
-
-
-
::
Bingo!!
there are a lot of mysql-bin.0000xxx files..
…
-rw-rw—- 1 mysql mysql 1.1G Jul 31Â 2012 mysql-bin.000011
-rw-rw—- 1 mysql mysql 1.1G Aug 8 2012 mysql-bin.000012
-rw-rw—- 1 mysql mysql 1.1G Aug 16Â 2012 mysql-bin.000013
-rw-rw—- 1 mysql mysql 1.1G Aug 23Â 2012 mysql-bin.000014
-rw-rw—- 1 mysql mysql 1.1G Aug 30Â 2012 mysql-bin.000015
-rw-rw—- 1 mysql mysql 21M Aug 30 2012 mysql-bin.000016
-rw-rw—- 1 mysql mysql 151M Aug 31Â 2012 mysql-bin.000017
-rw-rw—- 1 mysql mysql 1.1G Sep 6 2012 mysql-bin.000018
-rw-rw—- 1 mysql mysql 341M Sep 8 2012 mysql-bin.000019
-rw-rw—- 1 mysql mysql 121M Sep 9 2012 mysql-bin.000020
-rw-rw—- 1 mysql mysql 137M Sep 10Â 2012 mysql-bin.000021
-rw-rw—- 1 mysql mysql 1.6K Sep 10Â 2012 mysql-bin.000022
-rw-rw—- 1 mysql mysql 5.1K Sep 10Â 2012 mysql-bin.000023
-rw-rw—- 1 mysql mysql 15M Sep 10 2012 mysql-bin.000024
-rw-rw—- 1 mysql mysql 1.1G Sep 16Â 2012 mysql-bin.000025
-rw-rw—- 1 mysql mysql 1.1G Sep 22Â 2012 mysql-bin.000026
…pandora402:/var/lib/mysql # du -h
4.0KÂ Â ./test
988KÂ Â ./mysql
1000KÂ ./pandora
49GÂ Â .Can i delete it all??
-
-
::
ok, you have solved my problem, thank a lot!!
pandora402:/var/lib/mysql # df -h
Filesystem      Size Used Avail Use% Mounted on
rootfs        58G 4.8G 50G 9% /
devtmpfs      1003M 100K 1003M 1% /dev
tmpfs        1006M 4.0K 1006M 1% /dev/shm
/dev/sda2Â Â Â Â Â Â Â 58GÂ 4.8GÂ 50GÂ 9% /
/dev/sda3Â Â Â Â Â Â Â 20GÂ 173MÂ 19GÂ 1% /home