Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. Influx DB Daten löschen? Wie? Kein zugriff auf den ioBroker

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Influx DB Daten löschen? Wie? Kein zugriff auf den ioBroker

    This topic has been deleted. Only users with topic management privileges can see it.
    • DJMarc75
      DJMarc75 last edited by

      vll kann @Marc-Berg da etwas zu sagen ?!

      Thomas Braun 1 Reply Last reply Reply Quote 1
      • Thomas Braun
        Thomas Braun Most Active @DJMarc75 last edited by

        @djmarc75

        Ich hatte eben nach dem Nick von ihm gesucht. Ich wusste da war jemand mit Datenbank-Fachwissen...

        1 Reply Last reply Reply Quote 1
        • H
          holla16 @Homoran last edited by

          @homoran
          in der ncdu bin ich doch. Wenn ich die aufrufe kommt das

          --- / ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------   30.2 MiB [  0.1%] /boot                                                                                                                                                                                                                      11.5 KiB [  0.0%] /dev
              2.3 MiB [  0.0%] /etc
            421.9 MiB [  0.7%] /home
          e  16.0 KiB [  0.0%] /lost+found
          e   4.0 KiB [  0.0%] /media
          e   4.0 KiB [  0.0%] /mnt
              1.3 GiB [  2.2%] /opt
          . 245.2 KiB [  0.0%] /proc
             21.0 KiB [  0.0%] /root
              8.1 MiB [  0.0%] /run
          e   4.0 KiB [  0.0%] /srv
             45.7 MiB [  0.1%] /sys
             24.0 KiB [  0.0%] /tmp
              1.4 GiB [  2.4%] /usr
             54.7 GiB [ 94.5%] /var
          @   7.0   B [  0.0%]  bin
          @   7.0   B [  0.0%]  lib
          @   8.0   B [  0.0%]  sbin
          
          

          Wenn ich dann in den Ordner mit den 54,7gb gehe kommen mehrere Unterordner. Die Inhalte der Unterordner haben eine geringe Datengröße. Der Inhalt des größten Ordners mit den meisten Daten (>50gb) sieht dann so aus:

          ncdu 1.15.1 ~ Use the arrow keys to navigate, press ? for help                                                                                                                                                                               --- /var/lib/influxdb/engine/data/ea8b2dc8c77648a5/autogen ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------                     /..
            114.4 MiB [  0.2%] /1
            371.8 MiB [  0.7%] /10
              1.1 GiB [  2.1%] /101                                                                                                                                                                                                                        1.2 GiB [  2.3%] /103
              1.2 GiB [  2.4%] /105
              1.2 GiB [  2.4%] /107
              1.3 GiB [  2.6%] /109
              1.1 GiB [  2.3%] /111
            242.6 MiB [  0.5%] /113
            413.0 MiB [  0.8%] /12
            451.9 MiB [  0.9%] /14
            492.4 MiB [  1.0%] /16
            537.8 MiB [  1.0%] /18
            588.6 MiB [  1.1%] /21
            640.5 MiB [  1.2%] /23
            691.1 MiB [  1.3%] /25
            742.8 MiB [  1.4%] /27
            794.5 MiB [  1.5%] /29
            846.0 MiB [  1.6%] /31
            897.3 MiB [  1.7%] /33
            948.1 MiB [  1.8%] /35
            861.1 MiB [  1.7%] /37
            606.0 MiB [  1.2%] /39
            265.2 MiB [  0.5%] /4
            657.4 MiB [  1.3%] /41
            708.8 MiB [  1.4%] /43
            759.9 MiB [  1.5%] /45
            811.1 MiB [  1.6%] /47
            862.6 MiB [  1.7%] /49
            913.7 MiB [  1.8%] /51
            706.9 MiB [  1.4%] /53
            750.8 MiB [  1.5%] /55
            801.5 MiB [  1.6%] /57
            852.2 MiB [  1.7%] /59
            299.9 MiB [  0.6%] /6
            903.5 MiB [  1.8%] /61
            955.4 MiB [  1.9%] /63
              1.0 GiB [  2.0%] /65
              1.0 GiB [  2.1%] /67
              1.1 GiB [  2.2%] /69
              1.1 GiB [  2.3%] /71
              1.2 GiB [  2.4%] /73
              1.2 GiB [  2.5%] /75
              1.3 GiB [  2.6%] /77
              1.3 GiB [  2.7%] /79
            335.7 MiB [  0.7%] /8
              1.4 GiB [  2.8%] /81
              1.4 GiB [  2.9%] /83
              1.5 GiB [  3.0%] /85
              1.5 GiB [  3.1%] /87
              1.6 GiB [  3.2%] /89
              1.6 GiB [  3.3%] /91
              1.2 GiB [  2.4%] /93
              1.0 GiB [  2.0%] /95
              1.0 GiB [  2.0%] /97
              1.2 GiB [  2.4%] /99
          
          

          In einem weiteren Unterbeispielordner ist dann je eine große Datei drin

          ncdu 1.15.1 ~ Use the arrow keys to navigate, press ? for help                                                                                                                                                                               --- /var/lib/influxdb/engine/data/ea8b2dc8c77648a5/autogen/103 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------                     /..
            654.0 KiB [  0.1%] /index
              1.2 GiB [ 99.9%]  000000094-000000002.tsm                                                                                                                                                                                                    6.0 KiB [  0.0%]  fields.idx
          
          Homoran 1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @holla16 last edited by

            @holla16 sagte in Keine Lan Verbundung zum Raspi / per SSH aber möglich:

            Wenn ich die aufrufe kommt das

            das müsste mit den dicksten Verzeichnissen beginnen

            H 2 Replies Last reply Reply Quote 0
            • H
              holla16 @Homoran last edited by

              @homoran
              ne dachte ichz auch. Das dickste Verzeichnis ist weiter unten mit 54,7gb

              Homoran 1 Reply Last reply Reply Quote 0
              • H
                holla16 @Homoran last edited by

                @homoran
                Hab es noch mal neu aufgerufen da kommt das

                ncdu 1.15.1 ~ Use the arrow keys to navigate, press ? for help                                                                                                                                                                               --- / ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------   
                   54.7 GiB [##########] /var
                    1.5 GiB [          ] /usr
                    1.4 GiB [          ] /opt
                  440.7 MiB [          ] /home
                   30.5 MiB [          ] /boot
                    9.1 MiB [          ] /run
                    3.9 MiB [          ] /etc
                   32.0 KiB [          ] /root
                   24.0 KiB [          ] /tmp
                e  16.0 KiB [          ] /lost+found
                e   4.0 KiB [          ] /srv
                e   4.0 KiB [          ] /mnt
                e   4.0 KiB [          ] /media
                    0.0   B [          ] /sys
                .   0.0   B [          ] /proc
                    0.0   B [          ] /dev
                @   0.0   B [          ]  sbin
                @   0.0   B [          ]  lib
                @   0.0   B [          ]  bin  
                
                Homoran 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @holla16 last edited by

                  @holla16 sagte in Keine Lan Verbundung zum Raspi / per SSH aber möglich:

                  @homoran
                  ne dachte ichz auch. Das dickste Verzeichnis ist weiter unten mit 54,7gb

                  dann nutzt das nichts
                  sollte sortiert sein

                  1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @holla16 last edited by

                    @holla16 sagte in Keine Lan Verbundung zum Raspi / per SSH aber möglich:

                    da kommt das

                    geht doch!

                    mach mal /opt/iobroker auf

                    ausser @Thomas-Braun kann dir was aus /var empfehlen

                    Thomas Braun H 2 Replies Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Homoran last edited by

                      @homoran

                      Die journals in /var sind ja schon verkleinert.

                      Hier sollte der influx-Datenberg angepackt werden.

                      1 Reply Last reply Reply Quote 0
                      • H
                        holla16 @Homoran last edited by

                        @homoran
                        sorry aber wie geht /opt/iobroker?

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @holla16 last edited by

                          @holla16 sagte in Influx DB Daten löschen? Wie? Kein zugriff auf den ioBroker:

                          @homoran
                          sorry aber wie geht /opt/iobroker?

                          2 runter 1 rechts

                          H 1 Reply Last reply Reply Quote 0
                          • H
                            holla16 @Homoran last edited by

                            @homoran
                            OK dann kommt das

                            ncdu 1.15.1 ~ Use the arrow keys to navigate, press ? for help                    
                                1.0 GiB [##########] /node_modules
                              362.7 MiB [###       ] /iobroker-data
                               41.6 MiB [          ] /log
                               26.4 MiB [          ] /backups
                                1.0 MiB [          ]  package-lock.json
                                4.0 KiB [          ]  package.json
                                4.0 KiB [          ]  INSTALLER_INFO.txt
                                4.0 KiB [          ]  .npmrc
                            @   0.0   B [          ]  iob
                                0.0   B [          ]  iobroker
                                0.0   B [          ]  diag.sh
                            
                            
                            Marc Berg 1 Reply Last reply Reply Quote 0
                            • Marc Berg
                              Marc Berg Most Active @holla16 last edited by Marc Berg

                              @holla16

                              Wenn du nicht mehr alle InfluxDB-Daten benötigst, könntest du die Vorhaltezeit verkürzen. Hast du InfluxDB 1.x oder 2.x? Wie heißt deine Datenbank/Bucket?

                              EDIT: aber auch hierfür benötigt man ein Minimum an freiem Speicherplatz

                              H 1 Reply Last reply Reply Quote 0
                              • H
                                holla16 @Marc Berg last edited by

                                @marc-berg
                                ich glaube 1.X aber um die Vorhaltezeit zu verkürzen muss ich ja in die Instanz. Da komme ich aktuell nicht rein.

                                Marc Berg 1 Reply Last reply Reply Quote 0
                                • Marc Berg
                                  Marc Berg Most Active @holla16 last edited by

                                  @holla16 sagte in Influx DB Daten löschen? Wie? Kein zugriff auf den ioBroker:

                                  @marc-berg
                                  ich glaube 1.X aber um die Vorhaltezeit zu verkürzen muss ich ja in die Instanz. Da komme ich aktuell nicht rein.

                                  das geht auch auf der Kommandozeile. Wenn du 1.x hast, starte

                                  influx
                                  

                                  Wenn du da drin bist

                                  USE <DATEBANKNAME>
                                  SHOW RETENTION POLICIES
                                  

                                  Und dann sehen wir weiter.

                                  H 1 Reply Last reply Reply Quote 1
                                  • H
                                    holla16 @Marc Berg last edited by holla16

                                    @marc-berg
                                    wenn ich influx eingebe kommt das

                                    pi@raspberrypi:~ $ influx
                                    NAME:
                                       influx - Influx Client
                                    
                                    USAGE:
                                       influx [command]
                                    
                                    HINT: If you are looking for the InfluxQL shell from 1.x, run "influx v1 shell"
                                    
                                    COMMANDS:
                                       version              Print the influx CLI version
                                       write                Write points to InfluxDB
                                       bucket               Bucket management commands
                                       completion           Generates completion scripts
                                       query                Execute a Flux query
                                       config               Config management commands
                                       org, organization    Organization management commands
                                       delete               Delete points from InfluxDB
                                       user                 User management commands
                                       task                 Task management commands
                                       telegrafs            List Telegraf configuration(s). Subcommands manage Telegraf configurations.
                                       dashboards           List Dashboard(s).
                                       export               Export existing resources as a template
                                       secret               Secret management commands
                                       v1                   InfluxDB v1 management commands
                                       auth, authorization  Authorization management commands
                                       apply                Apply a template to manage resources
                                       stacks               List stack(s) and associated templates. Subcommands manage stacks.
                                       template             Summarize the provided template
                                       bucket-schema        Bucket schema management commands
                                       scripts              Scripts management commands
                                       ping                 Check the InfluxDB /health endpoint
                                       setup                Setup instance with initial user, org, bucket
                                       backup               Backup database
                                       restore              Restores a backup directory to InfluxDB
                                       remote               Remote connection management commands
                                       replication          Replication stream management commands
                                       server-config        Display server config
                                       help, h              Shows a list of commands or help for one command
                                    

                                    was muss ich als Name eingeben?

                                    Marc Berg 1 Reply Last reply Reply Quote 0
                                    • Marc Berg
                                      Marc Berg Most Active @holla16 last edited by Marc Berg

                                      @holla16 sagte in Influx DB Daten löschen? Wie? Kein zugriff auf den ioBroker:

                                      wenn ich influx eingebe kommt das

                                      Dann ist es keine 1.x, sondern 2.x

                                      Kommst Du auf die Weboberfläche der DB?

                                      http://<IP des RASPI>:8086
                                      
                                      H 1 Reply Last reply Reply Quote 0
                                      • H
                                        holla16 @Marc Berg last edited by

                                        @marc-berg
                                        ne auf die Weboberfläche geht mit der Ip und dem Port nicht.

                                        Marc Berg 1 Reply Last reply Reply Quote 0
                                        • Marc Berg
                                          Marc Berg Most Active @holla16 last edited by

                                          @holla16 sagte in Influx DB Daten löschen? Wie? Kein zugriff auf den ioBroker:

                                          ne auf die Weboberfläche geht mit der Ip und dem Port nicht.

                                          Hast du die DB noch gestoppt?

                                          @thomas-braun sagte in Influx DB Daten löschen? Wie? Kein zugriff auf den ioBroker:

                                          sudo systemctl stop influxd*

                                          dann wieder starten.

                                          sudo systemctl start influxd*
                                          
                                          H 1 Reply Last reply Reply Quote 0
                                          • H
                                            holla16 @Marc Berg last edited by

                                            @marc-berg
                                            ist ausgeführt:

                                            pi@raspberrypi:~ $ sudo systemctl start influxd*
                                            Warning: systemctl start called with a glob pattern.
                                            Hint: unit globs expand to loaded units, so start will usually have no effect.
                                                  Passing --all will also load units which are pulled in by other units.
                                                  See systemctl(1) for more details.
                                            Job for influxdb.service failed because the control process exited with error code.
                                            See "systemctl status influxdb.service" and "journalctl -xe" for details.
                                            pi@raspberrypi:~ $
                                            

                                            auf die Weboberfläche komme ich aber noch nicht

                                            Marc Berg 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            821
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            9
                                            126
                                            6800
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo