Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Grafana und influxdb umziehen?

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Grafana und influxdb umziehen?

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

      @semmy Mit der Aussage kann dir hier keiner helfen.

      Du musst schon komplett zeigen was du da machst.

      S 1 Reply Last reply Reply Quote 0
      • S
        Semmy @wendy2702 last edited by

        @wendy2702 Habe mich im ersten Post nicht richtig ausgedrückt.
        Ich habe einen pi4, auf dem iobroker läuft und einen pi3, auf dem ich influx und grafana installiert habe. Funktioniert soweit. Ich möchte aber jetzt den pi3 entfernen und alles auf den pi4 laufen lassen. Deshalb müssen die Daten vom pi3 irgendwie auf den pi4 kommen.

        Viele Grüße
        Semmy

        wendy2702 ? 2 Replies Last reply Reply Quote 0
        • wendy2702
          wendy2702 @Semmy last edited by

          @semmy Sicher das du das alles auf den PI 4 packen willst?

          Aber egal, fehlt immer noch das Zeigen von dem was genau du da machst.

          Also Befehle und die Antworten.

          S 1 Reply Last reply Reply Quote 0
          • S
            Semmy @wendy2702 last edited by

            @wendy2702 Das steht im terminal

            pi@Grafana:~ $ sudo influxd backup -portable /opt/data
            2023/02/05 14:09:36 backing up metastore to /opt/data/meta.00
            2023/02/05 14:09:36 Download shard 0 failed dial tcp [::1]:8088: connect: connec                                                                              tion refused.  Waiting 2s and retrying (0)...
            2023/02/05 14:09:38 Download shard 0 failed dial tcp [::1]:8088: connect: connec                                                                              tion refused.  Waiting 2s and retrying (1)...
            2023/02/05 14:09:40 Download shard 0 failed dial tcp [::1]:8088: connect: connection refused.  Waiting 2s and retrying (2)...
            2023/02/05 14:09:42 Download shard 0 failed dial tcp [::1]:8088: connect: connection refused.  Waiting 2s and retrying (3)...
            2023/02/05 14:09:44 Download shard 0 failed dial tcp [::1]:8088: connect: connection refused.  Waiting 2s and retrying (4)...
            
            
            wendy2702 1 Reply Last reply Reply Quote 0
            • wendy2702
              wendy2702 @Semmy last edited by

              @semmy läuft dein Influx aktuell?

              S 1 Reply Last reply Reply Quote 0
              • S
                Semmy @wendy2702 last edited by

                @wendy2702 Influx ist gestopt

                pi@Grafana:~ $ sudo service influxdb stop
                pi@Grafana:~ $ sudo influxd backup -portable /opt/data
                2023/02/05 14:16:13 backing up metastore to /opt/data/meta.00
                2023/02/05 14:16:13 Download shard 0 failed dial tcp [::1]:8088: connect: connection refused.  Waiting 2s and retrying (0)...
                2023/02/05 14:16:15 Download shard 0 failed dial tcp [::1]:8088: connect: connection refused.  Waiting 2s and retrying (1)...
                2023/02/05 14:16:17 Download shard 0 failed dial tcp [::1]:8088: connect: connection refused.  Waiting 2s and retrying (2)...
                2023/02/05 14:16:19 Download shard 0 failed dial tcp [::1]:8088: connect: connection refused.  Waiting 2s and retrying (3)...
                
                
                wendy2702 1 Reply Last reply Reply Quote 0
                • wendy2702
                  wendy2702 @Semmy last edited by

                  @semmy Dann starte mal wieder. Soweit ich in Erinnerung habe gehen die Influx tools nur wenn influx läuft.

                  S 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @Semmy last edited by A Former User

                    @semmy sagte in Grafana und influxdb umziehen?:

                    @wendy2702 Habe mich im ersten Post nicht richtig ausgedrückt.
                    Ich habe einen pi4, auf dem iobroker läuft und einen pi3, auf dem ich influx und grafana installiert habe. Funktioniert soweit. Ich möchte aber jetzt den pi3 entfernen und alles auf den pi4 laufen lassen. Deshalb müssen die Daten vom pi3 irgendwie auf den pi4 kommen.

                    Viele Grüße
                    Semmy

                    Moin,

                    ja, das war ja mein Grund, warum ich gesagt habe, dass Du einfach nur die SD-Karte umstecken must oder Dir ein Klon der SD-Karte anfertigen solltest, dann den 3. PI stoppen und den 4er PI starten und wenn auf der SD-Karte aus dem 3. PI kein iobroker ist dann installieren und das Backup vom 4er PI einspielen.

                    Über die Fehler die dann passieren, kann man sich dann immer noch kümmern.

                    VG
                    Bernd

                    @wendy2702 Influx ist gestopt

                    Und wie soll dann der Backup laufen?

                    1 Reply Last reply Reply Quote 0
                    • S
                      Semmy @wendy2702 last edited by

                      @wendy2702 sagte in Grafana und influxdb umziehen?:

                      @semmy Dann starte mal wieder. Soweit ich in Erinnerung habe gehen die Influx tools nur wenn influx läuft.

                      Kommt die gleiche Meldung.

                      wendy2702 1 Reply Last reply Reply Quote 0
                      • wendy2702
                        wendy2702 @Semmy last edited by

                        @semmy Dann starte den PI mal neu, stelle sicher das Influx läuft und teste nochmal.

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          Semmy @wendy2702 last edited by

                          @wendy2702 Keine Veränderung

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            Semmy @Semmy last edited by

                            @semmy Habe es mal so gemacht:

                            pi@Grafana:~ $ sudo influxd backup -portable   -host 192.168.20.73:8088   /opt/data
                            2023/02/05 14:35:33 backing up metastore to /opt/data/meta.00
                            2023/02/05 14:35:33 No database, retention policy or shard ID given. Full meta store backed up.
                            2023/02/05 14:35:33 Backing up all databases in portable format
                            2023/02/05 14:35:33 backing up db=
                            2023/02/05 14:35:33 backing up db=_internal rp=monitor shard=1 to /opt/data/_internal.monitor.00001.00 since 0001-01-01T00:00:00Z
                            2023/02/05 14:35:33 backing up db=_internal rp=monitor shard=3 to /opt/data/_internal.monitor.00003.00 since 0001-01-01T00:00:00Z
                            2023/02/05 14:35:34 backing up db=_internal rp=monitor shard=4 to /opt/data/_internal.monitor.00004.00 since 0001-01-01T00:00:00Z
                            2023/02/05 14:35:34 backing up db=_internal rp=monitor shard=5 to /opt/data/_internal.monitor.00005.00 since 0001-01-01T00:00:00Z
                            2023/02/05 14:35:34 backing up db=iobroker rp=autogen shard=2 to /opt/data/iobroker.autogen.00002.00 since 0001-01-01T00:00:00Z
                            2023/02/05 14:35:35 backup complete:
                            2023/02/05 14:35:35     /opt/data/20230205T143533Z.meta
                            2023/02/05 14:35:35     /opt/data/20230205T143533Z.s1.tar.gz
                            2023/02/05 14:35:35     /opt/data/20230205T143533Z.s3.tar.gz
                            2023/02/05 14:35:35     /opt/data/20230205T143533Z.s4.tar.gz
                            2023/02/05 14:35:35     /opt/data/20230205T143533Z.s5.tar.gz
                            2023/02/05 14:35:35     /opt/data/20230205T143533Z.s2.tar.gz
                            2023/02/05 14:35:35     /opt/data/20230205T143533Z.manifest
                            pi@Grafana:~ $
                            
                            

                            Backup wurde erstellt, wie bekomme ich dieses jetzt auf den pi4?

                            wendy2702 1 Reply Last reply Reply Quote 0
                            • wendy2702
                              wendy2702 @Semmy last edited by

                              @semmy runter kopieren, rauf kopieren, restore

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                Semmy @wendy2702 last edited by

                                @wendy2702 Wie kann man das runterkopieren?

                                wendy2702 1 Reply Last reply Reply Quote 0
                                • wendy2702
                                  wendy2702 @Semmy last edited by

                                  @semmy FileZilla zum Beispiel oder WinSCP oder per command line

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    Semmy @wendy2702 last edited by

                                    @wendy2702 Versuche es mit WinSCP, kann aber das Verzeichnis /opt/data nicht öffnen, kommt immer die Meldung permission denied

                                    ? 1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User @Semmy last edited by

                                      @semmy sagte in Grafana und influxdb umziehen?:

                                      @wendy2702 Versuche es mit WinSCP, kann aber das Verzeichnis /opt/data nicht öffnen, kommt immer die Meldung permission denied

                                      Moin,

                                      wem gehört das Verzeichnis?

                                      ls -la /opt
                                      

                                      VG
                                      Bernd

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        Semmy @Guest last edited by

                                        @dp20eic

                                        pi@Grafana:~ $ ls -la /opt
                                        total 20
                                        drwxr-xr-x  5 root root 4096 Feb  5 14:40  .
                                        drwxr-xr-x 18 root root 4096 Sep 22 04:06  ..
                                        drwxr--r--  2 root root 4096 Feb  5 14:35  data
                                        drwx------  2 root root 4096 Feb  5 13:44 'data^V'
                                        drwx------  2 root root 4096 Feb  5 14:40  sicherung
                                        pi@Grafana:~ $
                                        
                                        
                                        ? 1 Reply Last reply Reply Quote 0
                                        • ?
                                          A Former User @Semmy last edited by A Former User

                                          @semmy

                                          Moin,

                                          das Verzeichnis gehört root da musst Du dich mit root über WinSCP anmelden oder die Rechte des Ordners ändern.

                                          # sudo chmod -R 755 /opt/data
                                          

                                          VG
                                          Bernd

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            Semmy @Guest last edited by

                                            @dp20eic Ok, ich habe die Daten jetzt auf den PC. Beim pi4 gibt es das Verzeichnis /opt/data noch nicht. Wie kann man das anlegen mit den nötigen Schreibrechten?

                                            ? 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            767
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            46
                                            4295
                                            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