MauriceNino / dashdot

A simple, modern server dashboard, primarily used by smaller private servers
https://getdashdot.com/
MIT License
2.53k stars 95 forks source link

Wrong storage info about RAID[Bug] #1044

Open GrzesiuS opened 5 months ago

GrzesiuS commented 5 months ago

Description of the bug

"Mount not found" information is shown instead of used/free storage.

obraz

1 ❯ sudo mdadm --detail /dev/md0 /dev/md0: Version : 1.2 Creation Time : Sat Nov 18 14:47:06 2023 Raid Level : raid1 Array Size : 124964864 (119.18 GiB 127.96 GB) Used Dev Size : 124964864 (119.18 GiB 127.96 GB) Raid Devices : 2 Total Devices : 2 Persistence : Superblock is persistent

 Intent Bitmap : Internal

   Update Time : Mon Feb 26 17:36:51 2024
         State : active
Active Devices : 2

Working Devices : 2 Failed Devices : 0 Spare Devices : 0

Consistency Policy : bitmap

          Name : ubuntu-server:0
          UUID : 60f59b53:566733b1:8393510a:ea2c4810
        Events : 913

Number   Major   Minor   RaidDevice State
   0       8       50        0      active sync   /dev/sdd2
   1       8       34        1      active sync   /dev/sdc2
Output: ```js const disks = [ { device: '/dev/sda', type: 'SSD', name: 'GeIL ZENITH S3-1', vendor: 'ATA', size: 120034123776, bytesPerSector: null, totalCylinders: null, totalHeads: null, totalSectors: null, totalTracks: null, tracksPerCylinder: null, sectorsPerTrack: null, firmwareRevision: '5.20', serialNum: '', interfaceType: 'SATA', smartStatus: 'unknown', temperature: null }, { device: '/dev/sdb', type: 'HD', name: 'ST3160827AS ', vendor: 'Seagate', size: 160041885696, bytesPerSector: null, totalCylinders: null, totalHeads: null, totalSectors: null, totalTracks: null, tracksPerCylinder: null, sectorsPerTrack: null, firmwareRevision: '3.00', serialNum: '', interfaceType: 'SATA', smartStatus: 'unknown', temperature: null }, { device: '/dev/sdc', type: 'SSD', name: 'SSDPR-CX400-128-', vendor: 'ATA', size: 128035676160, bytesPerSector: null, totalCylinders: null, totalHeads: null, totalSectors: null, totalTracks: null, tracksPerCylinder: null, sectorsPerTrack: null, firmwareRevision: '842', serialNum: '', interfaceType: 'SATA', smartStatus: 'unknown', temperature: null }, { device: '/dev/sdd', type: 'SSD', name: 'SSDPR-CX400-128-', vendor: 'ATA', size: 128035676160, bytesPerSector: null, totalCylinders: null, totalHeads: null, totalSectors: null, totalTracks: null, tracksPerCylinder: null, sectorsPerTrack: null, firmwareRevision: '842', serialNum: '', interfaceType: 'SATA', smartStatus: 'unknown', temperature: null } ] const sizes = [ { fs: 'overlay', type: 'overlay', size: 125352656896, used: 39492616192, available: 79445168128, use: 33.2, mount: '/', rw: false }, { fs: '/dev/loop5', type: 'squashfs', size: 77725696, used: 77725696, available: 0, use: 100, mount: '/mnt/host/README.md', rw: false }, { fs: '/dev/md0p1', type: 'ext4', size: 125352656896, used: 39492616192, available: 79445168128, use: 33.2, mount: '/mnt/host/usr/lib/modules', rw: true }, { fs: '/dev/loop6', type: 'squashfs', size: 42467328, used: 42467328, available: 0, use: 100, mount: '/mnt/host/usr/lib/snapd', rw: false }, { fs: '/dev/loop1', type: 'squashfs', size: 135266304, used: 135266304, available: 0, use: 100, mount: '/mnt/host/var/lib/snapd/hostfs/snap/docker/2904', rw: false }, { fs: '/dev/loop2', type: 'squashfs', size: 159514624, used: 159514624, available: 0, use: 100, mount: '/mnt/host/var/lib/snapd/hostfs/snap/lxd/26093', rw: false }, { fs: '/dev/loop3', type: 'squashfs', size: 159514624, used: 159514624, available: 0, use: 100, mount: '/mnt/host/var/lib/snapd/hostfs/snap/lxd/26200', rw: false }, { fs: '/dev/loop4', type: 'squashfs', size: 42860544, used: 42860544, available: 0, use: 100, mount: '/mnt/host/var/lib/snapd/hostfs/snap/snapd/20290', rw: false }, { fs: '/dev/sda2', type: 'ext4', size: 117545504768, used: 51622416384, available: 59904786432, use: 46.29, mount: '/mnt/host/var/lib/snapd/hostfs/mnt/geil', rw: true }, { fs: '/dev/sdb', type: 'ext4', size: 156392325120, used: 48092872704, available: 100280582144, use: 32.41, mount: '/mnt/host/var/lib/snapd/hostfs/mnt/hdd', rw: true }, { fs: '/dev/loop7', type: 'squashfs', size: 136445952, used: 136445952, available: 0, use: 100, mount: '/mnt/host/var/lib/snapd/hostfs/snap/docker/2915', rw: false }, { fs: '/dev/loop8', type: 'squashfs', size: 77856768, used: 77856768, available: 0, use: 100, mount: '/mnt/host/var/lib/snapd/hostfs/snap/core22/1122', rw: false } ] const blocks = [ { name: 'sda', type: 'disk', fsType: '', mount: '', size: 120034123776, physical: 'SSD', uuid: '', label: '', model: 'GeIL ZENITH S3-1', serial: '', removable: false, protocol: 'sata', group: '', device: '/dev/sda' }, { name: 'sdb', type: 'disk', fsType: 'ext4', mount: '/mnt/host/mnt/hdd', size: 160041885696, physical: 'HDD', uuid: '918296ac-d46f-4240-acac-f4b70af6b027', label: '', model: 'ST3160827AS', serial: '', removable: false, protocol: 'sata', group: '', device: '/dev/sdb' }, { name: 'sdc', type: 'disk', fsType: '', mount: '', size: 128035676160, physical: 'SSD', uuid: '', label: '', model: 'SSDPR-CX400-128-', serial: '', removable: false, protocol: 'sata', group: '', device: '/dev/sdc' }, { name: 'sdd', type: 'disk', fsType: '', mount: '', size: 128035676160, physical: 'SSD', uuid: '', label: '', model: 'SSDPR-CX400-128-', serial: '', removable: false, protocol: 'sata', group: '', device: '/dev/sdd' }, { name: 'loop0', type: 'loop', fsType: 'squashfs', mount: '', size: 77492224, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop1', type: 'loop', fsType: 'squashfs', mount: '/mnt/host/snap/docker/2904', size: 135184384, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop2', type: 'loop', fsType: 'squashfs', mount: '/mnt/host/snap/lxd/26093', size: 159514624, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop3', type: 'loop', fsType: 'squashfs', mount: '/mnt/host/snap/lxd/26200', size: 159444992, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop4', type: 'loop', fsType: 'squashfs', mount: '/mnt/host/snap/snapd/20290', size: 42840064, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop5', type: 'loop', fsType: 'squashfs', mount: '/mnt/host/snap/core22/1033', size: 77713408, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop6', type: 'loop', fsType: 'squashfs', mount: '/mnt/host/snap/snapd/20671', size: 42393600, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop7', type: 'loop', fsType: 'squashfs', mount: '/mnt/host/snap/docker/2915', size: 136404992, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop8', type: 'loop', fsType: 'squashfs', mount: '/mnt/host/snap/core22/1122', size: 77819904, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'md0p1', type: 'part', fsType: 'ext4', mount: '/mnt/host/var/lib/snapd/hostfs', size: 127961923584, physical: '', uuid: '8c6df403-43e8-45bc-bbd2-f5135d07186d', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'sda1', type: 'part', fsType: '', mount: '', size: 1048576, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '', device: '/dev/sda' }, { name: 'sda2', type: 'part', fsType: 'ext4', mount: '/mnt/host/mnt/geil', size: 120030494720, physical: '', uuid: '0ff20c78-537b-44ac-bc12-77f75155e082', label: '', model: '', serial: '', removable: false, protocol: '', group: '', device: '/dev/sda' }, { name: 'sdc1', type: 'part', fsType: '', mount: '', size: 1048576, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '', device: '/dev/sdc' }, { name: 'sdc2', type: 'part', fsType: 'linux_raid_member', mount: '', size: 128032178176, physical: '', uuid: '60f59b53-5667-33b1-8393-510aea2c4810', label: 'ubuntu-server:0', model: '', serial: '', removable: false, protocol: '', group: 'md0', device: '/dev/sdc' }, { name: 'sdd1', type: 'part', fsType: '', mount: '', size: 1048576, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '', device: '/dev/sdd' }, { name: 'sdd2', type: 'part', fsType: 'linux_raid_member', mount: '', size: 128032178176, physical: '', uuid: '60f59b53-5667-33b1-8393-510aea2c4810', label: 'ubuntu-server:0', model: '', serial: '', removable: false, protocol: '', group: 'md0', device: '/dev/sdd' }, { name: 'md0', type: 'raid1', fsType: '', mount: '', size: 127964020736, physical: '', uuid: '60f59b53:566733b1:8393510a:ea2c4810', label: 'ubuntu-server:0', model: '', serial: '', removable: false, protocol: '', group: '' } ] ```

How to reproduce

No response

Relevant log output

No response

Info output of dashdot cli

No response

What browsers are you seeing the problem on?

Firefox

Where is your instance running?

Linux Server

Additional context

No response