Announcement

Collapse
No announcement yet.

Cannot backup, not enough free space on drive

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cannot backup, not enough free space on drive

    I noticed my son's Zee S2 hasn't been backing up. While looking through other threads I found a similar issue, however, their problem is different. Running a df -h I get

    Filesystem Size Used Avail Use% Mounted on
    /dev/root 6.9G 6.6G 0 100% /
    devtmpfs 458M 0 458M 0% /dev
    tmpfs 462M 16K 462M 1% /dev/shm
    tmpfs 462M 6.2M 456M 2% /run
    tmpfs 5.0M 4.0K 5.0M 1% /run/lock
    tmpfs 462M 0 462M 0% /sys/fs/cgroup
    tmpfs 462M 172K 462M 1% /var/log
    tmpfs 462M 0 462M 0% /tmp
    /dev/mmcblk0p6 60M 21M 39M 36% /boot​

    Pretty sure the first line might be related.... 😉
    The question is how do I fix it. Rebooting does not do the trick.


    Date/time=10/20/2022 4:30:37 PM EDT
    Version=HS4 ZEE S2/PI Edition 4.2.16.0 (Linux)
    MONO Version=Mono JIT compiler version 5.18.1.0 (tarball Fri Mar 15 21:12:47 UTC 2019)

    License=Registered
    Confguration File=/usr/local/HomeSeer/Data/HomeSeerData.json
    Uptime=0 Days 0 Hours 13 Minutes 23 Seconds
    Lan IP=192.168.2.25 (HomeTrollerZeeS2V5)
    Device Count=53
    Event Count=6
    Plugins Enabled=EnvisaLink:,HS MyQ:,Z-Wave:
    Modules/Threads=70 Modules, 49 Threads
    Available Threads=398
    HomeSeer Memory Used=76 Mbytes
    Plugins Installed=EnvisaLink 3.0.0.40,HS MyQ 4.0.7.0,Z-Wave 3.0.10.0
    Disk Size=14.87GB​

    #2
    The short answer is that you need a 32G SD card instead of a 16G.

    That said, you might be able to remove some of the older backups that live in /usr/local/HomeSeer/html/backups
    HS4Pro Running on a Raspberry Pi4
    67 Z-Wave Nodes, 111 Events, 422 Devices
    Z-Wave, UPB, WiFi
    Plugins: EasyTrigger, weatherXML, OMNI, Z-Wave, Tuya, Device History
    HSTouch Clients: 3 Android, 1 Joggler

    Comment


      #3
      So 2 new questions... 😏
      1. How do I delete the backups
      2. How do I upgrade the SD card and reinstall? I thought I saw that in the upgrade for HS3 to HS4 but I don't see it in the upgrade KB.

      Thanks!

      Comment


        #4
        so I SSH'ed in and looked. there are only 9 files using 490 K. And that wouldn't solve my full /dev/root problem. I think that's the problem I need to fix

        Comment


          #5
          Looks you have an 8GB capacity card, small by today's standards.

          The du (disk usage) command can be used to determine where large files are hiding. Likely suspects are the HomeSeer folder and possibly the system logs folder.

          Code:
          du -s /usr/local/HomeSeer
          du -s /var/log
          The value returned is in Kbytes.

          Once you identify a large folder, you can burrow down and determine the large subfolders. For example, for the HomeSeer folder
          Code:
          cd /usr/local/HomeSeer
          du
          12960   ./Logs
          4       ./temp
          1332    ./Data/HomeSeerData.json
          28      ./Data/PHLocation2
          80      ./Data/Energy
          156     ./Data/Z-Wave/DeviceSettings
          344     ./Data/Z-Wave
          4       ./Data/Backup
          440     ./Data/mcsMQTT
          296     ./Data/skWare/DeviceHistory
          300     ./Data/skWare
          2544    ./Data
          256     ./scripts
          16      ./data/mcsMQTT
          20      ./data
          4       ./Wave
          276     ./PollyCache
          37208   ./Updates4/mcsMQTT5.26.5.4
          6188    ./Updates4/Z-Wave4.0.3.0
          4       ./Updates4/Zips
          43408   ./Updates4
          3352    ./Media
          ... etc ...

          Comment


            #6
            Originally posted by LikeAutomation View Post
            So 2 new questions... 😏
            1. How do I delete the backups
            ssh into the Pi and:
            cd /usr/local/HomeSeer/html/backups
            ls -lt
            This will show you any backups. I would remove them all:
            sudo rm -f *
            **now do a backup from HS and verify a file exists

            Originally posted by LikeAutomation View Post
            2. How do I upgrade the SD card and reinstall? I thought I saw that in the upgrade for HS3 to HS4 but I don't see it in the upgrade KB.
            You'll want to take an image of the existing card using something like Win32 Disk Imager.
            That will save the image as a file.
            Next, take your new 32G card, format it, and use balenaEtcher to write the image to the new SD card.

            Thanks![/QUOTE]

            HS4Pro Running on a Raspberry Pi4
            67 Z-Wave Nodes, 111 Events, 422 Devices
            Z-Wave, UPB, WiFi
            Plugins: EasyTrigger, weatherXML, OMNI, Z-Wave, Tuya, Device History
            HSTouch Clients: 3 Android, 1 Joggler

            Comment


              #7
              Thanks! Worked perfectly!!!

              Comment

              Working...
              X