Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Festplatte voll ? Wie Speicher freigeben ?

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Festplatte voll ? Wie Speicher freigeben ?

    This topic has been deleted. Only users with topic management privileges can see it.
    • Schmakus
      Schmakus Developer @Guest last edited by Schmakus

      @dp20eic

      /usr und /optist ziemlich groß.
      /optda liegt ja auch ioB. Ich konnte aber noch nicht ermitteln, was genau dort so groß ist. Die Backups sind net. Die Logs auch nicht.

      Was hast im /homegesäubert?

      --- / --------------------------------------------------------------------------
          5,7 GiB [##########] /usr
          4,6 GiB [#######   ] /opt
          4,2 GiB [#######   ] /var
          3,3 GiB [#####     ] /home                                                  
        292,3 MiB [          ] /boot
         90,2 MiB [          ] /root
         11,1 MiB [          ] /etc
          1,3 MiB [          ] /run
         88,0 KiB [          ] /tmp
      e  16,0 KiB [          ] /lost+found
          8,0 KiB [          ] /media
      e   4,0 KiB [          ] /srv
      e   4,0 KiB [          ] /mnt
      e   4,0 KiB [          ] /.cache
      .   0,0   B [          ] /proc
          0,0   B [          ] /sys
          0,0   B [          ] /dev
      @   0,0   B [          ]  initrd.img.old
      @   0,0   B [          ]  initrd.img
      @   0,0   B [          ]  vmlinuz.old
      @   0,0   B [          ]  vmlinuz
      
      crunchip ? 2 Replies Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active @Schmakus last edited by

        @schmakus sagte in Festplatte voll ? Wie Speicher freigeben ?:

        konnte aber noch nicht ermitteln, was genau

        Dann musst du in die jeweilige Ebene

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

          @schmakus sagte in Festplatte voll ? Wie Speicher freigeben ?:

          @dp20eic
          /usr und /optist ziemlich groß.
          /optda liegt ja auch ioB. Ich konnte aber noch nicht ermitteln, was genau dort so groß ist. Die Backups sind net. Die Logs auch nicht.

          Moin,

          bei /usr da kannst Du nichts machen, da liegt alles, was Du installiert hast, wie Programme /usr/bin oder die Libraries /usr/lib und so anderer Kram, da bloß nichts anfassen!
          Unter /opt, ja daliegt auch der ioBroker manchmal aber auch andere Software, die man installiert hat. Wie @crunchip schon geschrieben hat, kann man, wenn ncdu fertig ist und Dir das Ergebnis anzeigt, mit den Cursortasten zwischen den einzelnen Verzeichnissen hin und her wechseln, siehe

          ncdu 1.15.1 ~ Use the arrow keys to navigate, press ? for help
          

          @schmakus sagte in Festplatte voll ? Wie Speicher freigeben ?:

          Was hast im /homegesäubert?

          Das sind Dinge, die ich hier nicht schreibe, denn da kann man auch mal schnell was kaputt machen, wenn man nicht weiß, was man da macht.

          Also erst einmal schauen was da so unter /opt liegt und Speicher braucht.
          Eine VM mit 10 GB, da kommt es auch darauf an, welches OS Du da installiert hast, einige Distros sind etwas fetter als andere, dann sind da schon mal locker 8 GB nur fürs Betriebssystem auf der Platte belegt.

          Also schau erst einmal in die Verzeichnisse /opt, /var und /home was sich da so alles an fetten Dingen versteckt, dann fangen wir da an aufzuräumen.

          VG
          Bernd

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

            Noch so als schlaue Randbemerkung:

            Nicht einfach so irgendwas aus

            4,6 GiB [#######   ] /opt
            4,2 GiB [#######   ] /var
            3,3 GiB [#####     ] /home                 
            

            löschen. Das geht allenfalls in /home, Daten in /opt oder /var sollten 'ordentlich' eingedampft werden. Das journal in /var/ z. B. mit dem 'Staubsauger'.

            Schmakus 1 Reply Last reply Reply Quote 0
            • Schmakus
              Schmakus Developer @Thomas Braun last edited by

              Hier mal ne Übersicht der großen Sachen:

              --- /usr/lib -------------------------------------------------------------------
                                       /..
                  1,8 GiB [##########] /modules                                               
                  1,1 GiB [######    ] /x86_64-linux-gnu
                288,9 MiB [#         ] /libreoffice
                215,6 MiB [#         ] /firefox-esr
              
              --- /var -----------------------------------------------------------------------
                                       /..
                  3,2 GiB [##########] /log                                                   
                704,3 MiB [##        ] /cache
              
              --- /var/log/journal -----------------------------------------------------------
                                       /..
                  3,0 GiB [##########] /d42f7fb7c0134c239a49631175eaef44                      
              
              
              --- /var/cache/apt/archives ----------------------------------------------------
                                       /..                                                    
                 57,3 MiB [##########]  firefox-esr_102.9.0esr-1~deb11u1_amd64.deb
                 53,4 MiB [######### ]  firefox-esr_78.15.0esr-1~deb10u1_amd64.deb
                 35,1 MiB [######    ]  libreoffice-common_1%3a6.1.5-3+deb10u7_all.deb
                 31,1 MiB [#####     ]  libreoffice-core_1%3a6.1.5-3+deb10u7_amd64.deb
                 30,1 MiB [#####     ]  libpython2.7-dev_2.7.16-2+deb10u1_amd64.deb
                 25,9 MiB [####      ]  nodejs_16.19.1-deb-1nodesource1_amd64.deb
                 24,2 MiB [####      ]  nodejs_14.19.0-deb-1nodesource1_amd64.deb
                 17,2 MiB [###       ]  nodejs_12.22.6-deb-1nodesource1_amd64.deb
                 17,2 MiB [###       ]  nodejs_12.22.7-deb-1nodesource1_amd64.deb
                 15,3 MiB [##        ]  libwebkit2gtk-4.0-37_2.38.5-1~deb11u1_amd64.deb
                 13,4 MiB [##        ]  libwebkit2gtk-4.0-37_2.34.1-1~deb10u1_amd64.deb
                  8,8 MiB [#         ]  libicu-dev_63.1-6+deb10u1_amd64.deb
                  8,2 MiB [#         ]  libreoffice-writer_1%3a6.1.5-3+deb10u7_amd64.deb
                  7,0 MiB [#         ]  libreoffice-calc_1%3a6.1.5-3+deb10u7_amd64.deb
                  7,0 MiB [#         ]  evolution-common_3.38.3-1+deb11u1_all.deb
              
              --- /home/iobroker/.npm/_cacache -----------------------------------------------
                                       /..
                  2,9 GiB [##########] /content-v2                                            
                 94,7 MiB [          ] /index-v5
              e  12,0 KiB [          ] /tmp
              
              --- /opt/iobroker/node_modules -------------------------------------------------
                                       /..
                472,7 MiB [##########] /iobroker.vis-2-beta                                   
                165,7 MiB [###       ] /canvas
              

              vis-2 schluckt auch ordentlich bei den Files

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

                @schmakus sagte in Festplatte voll ? Wie Speicher freigeben ?:
                Ich würde wohl den
                /.npm/_cacache
                und
                /cache/apt/archives
                eindampfen.

                sudo -H -u iobroker npm cache clean --force
                

                und

                sudo apt-get clean
                

                Wobei ich mich auch frage, was mit openoffice und evolution auf einem Server getan wird.

                Schmakus 1 Reply Last reply Reply Quote 0
                • Schmakus
                  Schmakus Developer @Thomas Braun last edited by Schmakus

                  @thomas-braun sagte in Festplatte voll ? Wie Speicher freigeben ?:

                  sudo -H -u iobroker npm cache clean –force

                  der Befehl wirft mir nen error. (Debian Bullseye)

                  sudo -H -u iobroker npm cache clean –force
                  npm ERR! arg Argument starts with non-ascii dash, this is probably invalid: –force
                  npm WARN Not Found: –force 
                  
                  Thomas Braun DJMarc75 2 Replies Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @Schmakus last edited by

                    @schmakus

                    Mein Fehler, das muss --force lauten. Argumente immer mit zwei -, Optionen mit einem -

                    DJMarc75 1 Reply Last reply Reply Quote 0
                    • DJMarc75
                      DJMarc75 @Schmakus last edited by

                      @schmakus original

                      --force
                      

                      Deine Version:

                      –force
                      
                      1 Reply Last reply Reply Quote 0
                      • DJMarc75
                        DJMarc75 @Thomas Braun last edited by

                        @thomas-braun sagte in Festplatte voll ? Wie Speicher freigeben ?:

                        Mein Fehler, das muss --force lauten.

                        Ah, da war ich dann wohl grad in der Bearbeitungsmatrix 😀

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

                          @schmakus sagte in Festplatte voll ? Wie Speicher freigeben ?:

                          --- /var/log/journal -----------------------------------------------------------
                          /..
                          3,0 GiB [##########] /d42f7fb7c0134c239a49631175eaef44

                          Moin,

                          zu den anderen Verzeichnissen hast Du ja schon das nötige Rüstzeug bekommen.

                          Fürs journal, da kannst Du noch folgendes machen, damit dampfst Du das Journal auf eine Stunde ein.

                          sudo journalctl --flush --rotate --vacuum-time=1h
                          

                          Aufschlüsslung der einzelnen Argumente:

                          --flush 
                             Asks the journal daemon to flush any log data stored in /run/log/journal/ into /var/log/journal/, if persistent storage is enabled. This call does not return until the operation is complete. Note that this call is idempotent: the data is only flushed from /run/log/journal/ into /var/log/journal/ once during system runtime (but see --relinquish-var below), and this command exits cleanly without executing any operation if this has already happened. This command effectively guarantees that all data is flushed to /var/log/journal/ at the time it returns.
                          
                          --rotate
                             Asks the journal daemon to rotate journal files. This call does not return until the rotation operation is complete. Journal file rotation has the effect that all currently active journal files are marked as archived and renamed, so that they are never written to in future. New (empty) journal files are then created in their place. This operation may be combined with --vacuum-size=, --vacuum-time= and --vacuum-file= into a single command, see above. 
                          
                          --vacuum-size=, --vacuum-time=, --vacuum-files=
                             Removes the oldest archived journal files until the disk space they use falls below the specified size (specified with the usual "K", "M", "G" and "T" suffixes), or all archived journal files contain no data older than the specified timespan (specified with the usual "s", "m", "h", "days", "months", "weeks" and "years" suffixes), or no more than the specified number of separate journal files remain. Note that running --vacuum-size= has only an indirect effect on the output shown by --disk-usage, as the latter includes active journal files, while the vacuuming operation only operates on archived journal files. Similarly, --vacuum-files= might not actually reduce the number of journal files to below the specified number, as it will not remove active journal files.
                          

                          VG
                          Bernd

                          P.S.: Dann wurde Dir ja schon von @Thomas-Braun, die berechtigte Frage gestellt, was hat der ganze Desktopkram auf einem Server zu suchen, das war auch meine Frage, was Du da für eine Distribution in die VM installiert hast?

                          57,3 MiB [##########]  firefox-esr_102.9.0esr-1~deb11u1_amd64.deb
                            53,4 MiB [######### ]  firefox-esr_78.15.0esr-1~deb10u1_amd64.deb
                            35,1 MiB [######    ]  libreoffice-common_1%3a6.1.5-3+deb10u7_all.deb
                            31,1 MiB [#####     ]  libreoffice-core_1%3a6.1.5-3+deb10u7_amd64.deb
                            15,3 MiB [##        ]  libwebkit2gtk-4.0-37_2.38.5-1~deb11u1_amd64.deb
                            13,4 MiB [##        ]  libwebkit2gtk-4.0-37_2.34.1-1~deb10u1_amd64.deb
                              8,2 MiB [#         ]  libreoffice-writer_1%3a6.1.5-3+deb10u7_amd64.deb
                              7,0 MiB [#         ]  libreoffice-calc_1%3a6.1.5-3+deb10u7_amd64.deb
                              7,0 MiB [#         ]  evolution-common_3.38.3-1+deb11u1_all.deb
                          
                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate
                          FAQ Cloud / IOT
                          HowTo: Node.js-Update
                          HowTo: Backup/Restore
                          Downloads
                          BLOG

                          827
                          Online

                          31.9k
                          Users

                          80.1k
                          Topics

                          1.3m
                          Posts

                          8
                          23
                          2193
                          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