Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. Off Topic
    4. Problems using influxDB on an external SSD

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Problems using influxDB on an external SSD

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @Mathias2803 last edited by Thomas Braun

      @mathias2803 sagte in Problems using influxDB on an external SSD:

      1.) dass das System hochfährt, die Platte erst nach dem Start von influxDB verbunden wird und sie deshalb an einer anderen Stelle etwas schreibt.

      Die Reihenfolge wie Dienste gestartet werden kann man in systemd sehr genau definieren. Das mounten der Dateisysteme (per fstab) geschieht allerdings recht früh, das wird vermutlich nicht ursächlich sein.

      M 1 Reply Last reply Reply Quote 0
      • M
        Mathias2803 @Thomas Braun last edited by

        @thomas-braun
        Und wie stelle ich die Zugriffsrechte richtig ein?

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

          @mathias2803

          Schau in die man-page:

          https://linux.die.net/man/8/mount

          Da stehen alle Optionen für die einzelnen Dateisysteme drin.

          M 1 Reply Last reply Reply Quote 0
          • M
            Mathias2803 @Thomas Braun last edited by

            @thomas-braun

            Ist es ausreichend, wenn ich an meinen mount Befehl "users" anhänge?

            "UUID="49441976-e29b-4acc-a8ee-71f4eb91255c" /mnt/mySSD ext4 nofail,rw,users 0 2"

            Oder wie stelle ich ein, dass jeder volle Zugriffsrechte auf die Platte hat?

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

              @mathias2803 sagte in Problems using influxDB on an external SSD:

              Ist es ausreichend, wenn ich an meinen mount Befehl "users" anhänge?

              Nein, lt. man page beschreibt das nur, dass jeder user das Dateisystem mounten darf.
              Die Rechte ergeben sich aus den Rechten des mount-Punktes.

              Man kann nach dem mounten z. B. so in der Art die Rechte vergeben:

              sudo chown -R UserNameOfSudo:users /media/data 
              sudo chmod -R g+rw /media/data
              
              M 1 Reply Last reply Reply Quote 0
              • M
                Mathias2803 @Thomas Braun last edited by

                @thomas-braun said in Problems using influxDB on an external SSD:

                sudo chown -R UserNameOfSudo:users /media/data sudo chmod -R g+rw /media/data

                Aber das kann ich dann nicht in "/etc/fstab" reinschreiben. Ich müsste es in einen Chronjob nach dem Start? Oder wie lege ich das fest? Ist das dann nicht wieder zu spät, also erst nachdem schon influxDB gestartet ist?

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

                  @mathias2803 sagte in Problems using influxDB on an external SSD:

                  /media/data

                  Wie sehen die Rechte an /media/data aus, wenn das Dateisystem nicht gemounted ist?

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    Mathias2803 @Thomas Braun last edited by

                    @thomas-braun
                    Hast du mir nen Befehl, mit dem ich dir das rausfinden kann? Sorry. Bin nicht so fit mit Unix.

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

                      @mathias2803

                      ls -la /media/mySSD
                      
                      M 1 Reply Last reply Reply Quote 0
                      • M
                        Mathias2803 @Thomas Braun last edited by

                        @thomas-braun

                        pi@ioBroker:~ $ ls -la /mnt/mySSD
                        insgesamt 628
                        drwxr-xr-x 5 root root   4096 Okt  1  2021 .
                        drwxrwxrwx 3 root root   4096 Sep 23  2021 ..
                        drwxrwxrwx 2 root root 614400 Apr 12 02:00 Influx-BackUp
                        drwxrwxrwx 5 root root   4096 Okt  1  2021 InfluxDB
                        drwx------ 2 root root  16384 Sep 28  2021 lost+found
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Mathias2803 last edited by

                          @mathias2803

                          Und das Dateisystem ist nicht gemounted?
                          Dann muss der Mountpunkt leer sein.

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            Mathias2803 @Thomas Braun last edited by

                            @thomas-braun
                            Wie meinst du, dass das Dateisystem nicht gemountet ist??
                            An was siehst du das?

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

                              @mathias2803 sagte in Problems using influxDB on an external SSD:

                              An was siehst du das?

                              eben nicht, das war Bedingung:

                              @thomas-braun sagte in Problems using influxDB on an external SSD:

                              Wie sehen die Rechte an /media/data aus, wenn das Dateisystem nicht gemounted ist?

                              deswegen die Nachfrage

                              M 2 Replies Last reply Reply Quote 0
                              • M
                                Mathias2803 @Homoran last edited by

                                @homoran

                                Das Verzeichnis media/data gibt es gar nicht. Woher kommt das und warum?

                                pi@ioBroker:~ $ sudo ls -la /media/data
                                ls: Zugriff auf '/media/data' nicht möglich: Datei oder Verzeichnis nicht gefunden
                                
                                1 Reply Last reply Reply Quote 0
                                • M
                                  Mathias2803 @Homoran last edited by

                                  @homoran

                                  In der influxdb.conf taucht auch keine "media/data" auf sondern nur folgende Einstellungen:

                                  [meta]
                                    dir = "/mnt/mySSD/InfluxDB/meta"
                                  [data]
                                    dir = "/mnt/mySSD/InfluxDB/data"
                                    wal-dir = "/mnt/mySSD/InfluxDB/wal"
                                    series-id-set-cache-size = 100
                                  [http]
                                    enabled = true
                                    bind-address = ":8086"
                                    auth-enabled = false
                                    log-enabled = true
                                    write-tracing = false
                                    pprof-enabled = false
                                    https-enabled = false
                                    https-certificate = "/etc/ssl/influxdb.pem"
                                  

                                  Alles andere sind nur Kommentare.

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

                                    @mathias2803

                                    Sorry, das mit /media/data war aus meinem Beispiel, dein Mountpunkt lautet ja /mnt/mySSD

                                    Was steht denn jetzt in der /etc/fstab drin?

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      Mathias2803 @Thomas Braun last edited by

                                      @thomas-braun

                                      sudo nano /etc/fstab:

                                      proc            /proc           proc    defaults          0       0
                                      PARTUUID=f0881a94-01  /boot           vfat    defaults          0       2
                                      PARTUUID=f0881a94-02  /               ext4    defaults,noatime  0       1
                                      # a swapfile is not a swap partition, no line here
                                      #   use  dphys-swapfile swap[on|off]  for that
                                      UUID="49441976-e29b-4acc-a8ee-71f4eb91255c" /mnt/mySSD ext4 nofail,rw 0 2
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Mathias2803 last edited by

                                        @mathias2803
                                        Da fehlt die Option 'defaults'.

                                        Muss also mindestens so aussehen:

                                        UUID="49441976-e29b-4acc-a8ee-71f4eb91255c" /mnt/mySSD ext4 defaults 0 2
                                        

                                        nofail würde ich nicht setzen und rw ist schon in defaults drin.

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          Mathias2803 @Thomas Braun last edited by

                                          @thomas-braun

                                          Falls ich "nofail" nicht habe, würde das System doch beim Hochfahren hängen bleiben, wenn etwas mit der Platte nicht in Ordnung ist, oder?

                                          Was beeinflusst das "defaults"?

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

                                            @mathias2803

                                            nofail
                                            Do not report errors for this device if it does not exist.
                                            
                                            defaults
                                            Use default options: rw, suid, dev, exec, auto, nouser, async, and relatime.
                                            
                                            M 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            507
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            48
                                            4079
                                            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