Disk is full... but it isn't

Discussion in 'Installation/Configuration' started by Th0m, Sep 25, 2020.

  1. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    I am using a Debian VM on my Synology NAS for some applications, and one of them is Youtube-dl, so I can easily download youtube video's. Almost all commands have stopped working on the VM, with the following error:
    Code:
    Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device)
    df -h shows this:
    Code:
    [email protected]:/home/user# df -h
    Filesystem           Size  Used Avail Use% Mounted on
    udev                 990M     0  990M   0% /dev
    tmpfs                201M  3.0M  198M   2% /run
    /dev/sda2             61G   60G     0 100% /
    tmpfs               1001M   44K 1001M   1% /dev/shm
    tmpfs                5.0M     0  5.0M   0% /run/lock
    tmpfs               1001M     0 1001M   0% /sys/fs/cgroup
    /dev/sda1            511M  132K  511M   1% /boot/efi
    //192.168.2.2/video  5.3T  4.4T  885G  84% /mnt/video
    tmpfs                201M     0  201M   0% /run/user/999
    tmpfs                201M     0  201M   0% /run/user/1000
    But the disk isn't full. As you can see, /mnt/video is a mount for a external SMB drive. The total download data through this VM is more than 400 GB. I'm sure it is on the NAS (under /video).

    How can I make Debian calculate the storage correctly?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What shows
    Code:
    df -hi
    I notice /dev/sda2 is full. Is that involved in the download?
     
  3. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Code:
    Filesystem          Inodes IUsed IFree IUse% Mounted on
    udev                  248K   341  248K    1% /dev
    tmpfs                 251K   448  250K    1% /run
    /dev/sda2             3.9M   52K  3.8M    2% /
    tmpfs                 251K    10  251K    1% /dev/shm
    tmpfs                 251K     2  251K    1% /run/lock
    tmpfs                 251K    15  251K    1% /sys/fs/cgroup
    /dev/sda1                0     0     0     - /boot/efi
    //192.168.2.2/video      0     0     0     - /mnt/video
    tmpfs                 251K    10  251K    1% /run/user/999
    tmpfs                 251K    10  251K    1% /run/user/1000
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    But the root partition / is full on /dev/sda2. Try freeing space there, that may fix the issue. All Unix and Linux systems start failing when root partition runs out of disk space.
    On Debian,
    • check if you have several old kernels installed, they consume 200 MB each, for example with dpkg --list | grep linux-image | grep ^ii
    • apt clean removes downloaded packages from /var/cache
    • apt autoremove To remove automatically installed packages that are no longer used
     
    ahrasis likes this.
  5. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    That did not help. There are 2 old kernels, but that should not fill it. I suspect that a part of the downloaded video's is in /dev/sda2/mnt/video and a part in the mount //IPAD/video. But when I ls /mnt/video, I see the contents of the external volume and not what's on /dev/sda2 ofcourse.
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Unmount /mnt/video and see if some video files were hiding under the mount.
     
    ahrasis and Th0m like this.
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Good idea, I oversaw that simple option.

    Fixed :D Now moving everything away to the external drive. Thanks.

    Code:
    Filesystem           Size  Used Avail Use% Mounted on
    udev                 990M     0  990M   0% /dev
    tmpfs                201M  5.5M  195M   3% /run
    /dev/sda2             61G  3.1G   55G   6% /
    tmpfs               1001M  264K 1001M   1% /dev/shm
    tmpfs                5.0M     0  5.0M   0% /run/lock
    tmpfs               1001M     0 1001M   0% /sys/fs/cgroup
    /dev/sda1            511M  132K  511M   1% /boot/efi
    //192.168.2.2/video  5.3T  4.5T  823G  85% /mnt/video
    tmpfs                201M     0  201M   0% /run/user/999
    tmpfs                201M     0  201M   0% /run/user/1000
    
     
    Last edited: Sep 26, 2020
    ahrasis and till like this.

Share This Page