Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. How clear old collected DCI Data??

How clear old collected DCI Data??

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 10.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    R
    radw
    wrote on last edited by
    #1

    Hello, how can I clear collected DCI Data for free db and hd space??. I tried deleting DCIs ( and even entire nodes with their DCIs ), but hd space dont decrease.

    Regards.

    1 Reply Last reply
    0
    • T
      T
      Tursiops
      wrote on last edited by
      #2

      That will depend on the database you use, but usually the actual disk space usage won't decrease.
      Even if something is deleted from the database, the database file size itself will generally remain the same.

      For Postgres, a VACUUM FULL will do what you are looking for, but it will lock tables while processing them.
      For MySQL you may have to dump the data and re-import. It's been a while.

      1 Reply Last reply
      0
      • R
        R
        radw
        wrote on last edited by
        #3

        Hello, my db is mysql, and yes, I found out that the disk space didnt decrease when I purged all the db in my first NetXMS installation.

        For its, in my new NetXMS installation, I was careful of configure the DCI data storage only for DCIs, not for entire tables. However , I still have the doubt why the disk space dont decrease.

        Regards.

        1 Reply Last reply
        0
        • T
          T
          Tursiops
          wrote on last edited by
          #4

          Hi,

          Just found a previous post regarding MySQL database size and shrinking the file size:
          https://www.netxms.org/forum/general-support/mysql-db-fast-grow-how-to-free-space/

          It includes a link that may help. Another link that may be helpful:
          http://www.thegeekstuff.com/2016/02/mysql-innodb-file-per-table/

          This is not a NetXMS specific issue, it is simply how the database software itself (in your case MySQL, presumably using InnoDB) operates.

          Hope the links help.

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups