Ad Widget

Collapse

Full database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gumis_148
    Member
    • Jan 2019
    • 52

    #1

    Full database

    I have a full mysql database. How can I solve it? Can I delete old files? Do I need to extend the partition?

    Click image for larger version

Name:	zabbix_mysql.PNG
Views:	736
Size:	90.9 KB
ID:	418745
    Attached Files
  • gumis_148
    Member
    • Jan 2019
    • 52

    #2
    Nobody knows? Can I delete these files?

    Comment

    • Zdenek_OMNISENSUIT
      Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Nov 2020
      • 55

      #3
      Hello.

      Can you add more space to /dev/sdc1?


      -------------------------
      omnisensuit.com

      Comment

      • gumis_148
        Member
        • Jan 2019
        • 52

        #4
        Originally posted by Zdenek_OMNISENSUIT
        Hello.

        Can you add more space to /dev/sdc1?


        -------------------------
        omnisensuit.com
        Yes, I had no choice.

        Comment

        • Zdenek_OMNISENSUIT
          Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Nov 2020
          • 55

          #5
          Hello.

          Now try think about your templates - how often and which metrics you are collecting and how long you store this data in history and trends.
          Too often checks and too long period for history will make your db much bigger.
          (mainly be carefoul about network/storages etc)


          -------------------------
          omnisensuit.com

          Comment

          • LenR
            Senior Member
            • Sep 2009
            • 1005

            #6
            mysql doesn't free space very well, are you partitioned? Do tables need optimized? Are you innodb file per table?

            Comment

            • Zdenek_OMNISENSUIT
              Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Nov 2020
              • 55

              #7
              Hello

              Yes, if you want to clean up and release space in MySQL/MariaDB best way is exp/imp (dump).
              So, you can change setup for item check freq, history time etc, wait some time to db will delete data internaly with housekeeper.
              Than stop app/db - export/import data and you will be ok.
              Else change db postgres+Timescale or use partitioning etc.
              But if your db is smaller than 100GB it will be no need.


              -------------------------
              omnisensuit.com

              Comment

              Working...