Skip to content

Some quirks with the mounts/disks #5

@jc21

Description

@jc21

Firstly, fantastic work :) I myself was literally days away from starting a project just like this in golang myself. I hope it takes off. Love the space invaders too!

Describe the bug
I'm running this in Docker on 3 different hosts, amd64, arm64 and riscv64. For the most part, everything is working. The "disk space" widget isn't quite right to me, at least.

On all these hosts, I'm using the same docker-compose.yml

services:

  kula:
    container_name: kula
    image: c0m4r/kula:latest
    restart: unless-stopped
    volumes:
      - '/proc:/proc:ro'
      - './data:/app/data'
    network_mode: host

NanoPi R6s - FriendlyWRT OS

Image

Actual storage:

❯ df -h
Filesystem       Size  Used Avail Use% Mounted on
tmpfs            512K     0  512K   0% /dev
tmpfs            793M  1.2M  792M   1% /run
overlay          995M  520M  409M  56% /
tmpfs            3.9G   39M  3.9G   1% /tmp
/dev/mmcblk2p10   27G  120M   25G   1% /opt

Raspberry Pi 5 - Raspbian OS

Image

Actual storage:

╭───────────────────────────────────────────────────────────────────────────────────────────────╮
│ 3 local devices                                                                               │
├────────────┬────────┬────────┬────────┬───────────────────────────────┬──────┬────────────────┤
│ MOUNTED ON │   SIZE │   USED │  AVAIL │              USE%             │ TYPE │ FILESYSTEM     │
├────────────┼────────┼────────┼────────┼───────────────────────────────┼──────┼────────────────┤
│ /          │ 234.6G │  16.9G │ 208.1G │ [#...................]   7.2% │ ext4 │ /dev/mmcblk0p2 │
│ /mnt/2tb-1 │   1.8T │ 785.4G │   1.1T │ [########............]  42.2% │ xfs  │ /dev/sda1      │
│ /mnt/2tb-2 │   1.8T │ 695.9G │   1.1T │ [#######.............]  37.4% │ xfs  │ /dev/sdb1      │
╰────────────┴────────┴────────┴────────┴───────────────────────────────┴──────┴────────────────╯

Note

The /app/data mount here is stored on one of the 2tb drives.

Intel CPU - Rocky Linux 9

Image

Actual storage:

╭─────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 14 local devices                                                                                    │
├────────────────┬────────┬────────┬────────┬────────────────────────────┬──────┬─────────────────────┤
│ MOUNTED ON     │   SIZE │   USED │  AVAIL │            USE%            │ TYPE │ FILESYSTEM          │
├────────────────┼────────┼────────┼────────┼────────────────────────────┼──────┼─────────────────────┤
│ /              │ 459.5G │ 267.2G │ 192.3G │ ███████████▌         58.2% │ xfs  │ /dev/rl_taurus/root │
│ /mnt/1tb-ssd-1 │ 931.1G │ 645.6G │ 285.5G │ █████████████▌       69.3% │ xfs  │ /dev/sda1           │
│ /mnt/240-ssd-1 │ 223.5G │ 164.2G │  59.3G │ ██████████████▌      73.5% │ xfs  │ /dev/sdb1           │
│ /mnt/240-ssd-2 │ 223.5G │ 105.7G │ 117.8G │ █████████            47.3% │ xfs  │ /dev/sdc1           │
│ /mnt/2tb-1     │   1.8T │   1.8T │  68.1G │ ███████████████████  96.3% │ xfs  │ /dev/sdk1           │
│ /mnt/4tb-1     │   3.6T │   3.5T │ 155.1G │ ███████████████████  95.8% │ xfs  │ /dev/sde1           │
│ /mnt/4tb-2     │   3.6T │   3.2T │ 453.6G │ █████████████████▌   87.8% │ xfs  │ /dev/sdf1           │
│ /mnt/4tb-3     │   3.6T │   3.5T │ 162.8G │ ███████████████████  95.6% │ xfs  │ /dev/sdh1           │
│ /mnt/4tb-6     │   3.6T │   3.6T │  38.3G │ ███████████████████▌ 99.0% │ xfs  │ /dev/sdl1           │
│ /mnt/6tb-1     │   5.5T │ 936.2G │   4.5T │ ███                  16.8% │ xfs  │ /dev/sdm1           │
│ /mnt/8tb-1     │   7.3T │   6.8T │ 495.2G │ ██████████████████▌  93.4% │ xfs  │ /dev/sdj1           │
│ /mnt/8tb-2     │   7.3T │   7.1T │ 206.6G │ ███████████████████  97.2% │ xfs  │ /dev/sdg1           │
│ /mnt/8tb-3     │   7.3T │   6.7T │ 539.6G │ ██████████████████▌  92.8% │ xfs  │ /dev/sdi1           │
│ /mnt/8tb-4     │   7.3T │   4.9T │   2.4T │ █████████████        67.0% │ xfs  │ /dev/sdd1           │
╰────────────────┴────────┴────────┴────────┴────────────────────────────┴──────┴─────────────────────╯

Expected behavior

I'd expect not to see /etc/resolv.conf

I know too well how friggin' hard it is to get the disk info from the OS within a docker container. Even CasaOS installs a helper on the info on this. That said it would be GREAT if we could get all the combined storage total/use/free in one graph that acurately represents the server.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions