home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.96k stars 30.17k forks source link

System Monitor Bug #119543

Closed generalk25 closed 1 week ago

generalk25 commented 3 months ago

The problem

I have several NFS shares on a linux box that i have mounted via storage locations in home assistant. These locations have varying storage available but the system monitor doesn't appear to be monitoring the storage space of the mounted disk, but rather, it's reporting only the device/disk on which the root directory resides. nltMPz2joL

The others show data but only the data from the one mount point '/'. chrome_QDBdGEZe5o fNDQA7U9PD O6Xe3BPOXD

Can this be resolved?

What version of Home Assistant Core has the issue?

core-2024.6.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

System-Monitor

Link to integration documentation on our website

https://www.home-assistant.io/integrations/systemmonitor

Diagnostics information

home-assistant_systemmonitor_2024-06-12T21-28-03.989Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 months ago

Hey there @gjohansson-st, mind taking a look at this issue as it has been labeled with an integration (systemmonitor) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `systemmonitor` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign systemmonitor` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


systemmonitor documentation systemmonitor source (message by IssueLinks)

gjohansson-ST commented 3 months ago

Do you happen to have some layer in between here as there is a significant difference in the logs vs. your first picture. In that picture / has a total space of 982 but in the logs it comes out as 615 while all the NAS shares comes out same as the / from the picture.

2024-06-12 16:27:55.980 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /media: sdiskusage(total=61525360640, used=20465954816, free=38519189504, percent=34.7)
2024-06-12 16:27:55.981 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /media/DVR: sdiskusage(total=2952325496832, used=1318418644992, free=1483860869120, percent=47.0)
2024-06-12 16:27:55.982 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /share/NAS2: sdiskusage(total=981814214656, used=549516738560, free=382348558336, percent=59.0)
2024-06-12 16:27:55.983 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /ssl: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7)
2024-06-12 16:27:55.984 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /media/NAS3: sdiskusage(total=981814214656, used=549516738560, free=382348558336, percent=59.0)
2024-06-12 16:27:55.985 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /media/NAS4: sdiskusage(total=981814214656, used=549516738560, free=382348558336, percent=59.0)
2024-06-12 16:27:55.986 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /share: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7)
2024-06-12 16:27:55.987 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /run/audio: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7)
2024-06-12 16:27:55.987 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7)
2024-06-12 16:27:55.987 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /config: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7)
generalk25 commented 3 months ago

Just local nfs shares . none virtualized

On Fri, Jun 14, 2024, 8:59 AM G Johansson @.***> wrote:

Do you happen to have some layer in between here as there is a significant difference in the logs vs. your first picture. In that picture / has a total space of 982 but in the logs it comes out as 615 while all the NAS shares comes out same as the / from the picture.

2024-06-12 16:27:55.980 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /media: sdiskusage(total=61525360640, used=20465954816, free=38519189504, percent=34.7) 2024-06-12 16:27:55.981 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /media/DVR: sdiskusage(total=2952325496832, used=1318418644992, free=1483860869120, percent=47.0) 2024-06-12 16:27:55.982 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /share/NAS2: sdiskusage(total=981814214656, used=549516738560, free=382348558336, percent=59.0) 2024-06-12 16:27:55.983 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /ssl: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7) 2024-06-12 16:27:55.984 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /media/NAS3: sdiskusage(total=981814214656, used=549516738560, free=382348558336, percent=59.0) 2024-06-12 16:27:55.985 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /media/NAS4: sdiskusage(total=981814214656, used=549516738560, free=382348558336, percent=59.0) 2024-06-12 16:27:55.986 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /share: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7) 2024-06-12 16:27:55.987 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /run/audio: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7) 2024-06-12 16:27:55.987 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7) 2024-06-12 16:27:55.987 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /config: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7)

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/119543#issuecomment-2168114023, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUELHUHTEVTJKO3C7DUIX2LZHLZLTAVCNFSM6AAAAABJHEZHJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYGEYTIMBSGM . You are receiving this because you authored the thread.Message ID: @.***>

generalk25 commented 3 months ago

The logs really Shouldnt know what / has. Im not sharing it with home assistant.

On Fri, Jun 14, 2024, 9:28 AM David Conway @.***> wrote:

Just local nfs shares . none virtualized

On Fri, Jun 14, 2024, 8:59 AM G Johansson @.***> wrote:

Do you happen to have some layer in between here as there is a significant difference in the logs vs. your first picture. In that picture / has a total space of 982 but in the logs it comes out as 615 while all the NAS shares comes out same as the / from the picture.

2024-06-12 16:27:55.980 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /media: sdiskusage(total=61525360640, used=20465954816, free=38519189504, percent=34.7) 2024-06-12 16:27:55.981 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /media/DVR: sdiskusage(total=2952325496832, used=1318418644992, free=1483860869120, percent=47.0) 2024-06-12 16:27:55.982 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /share/NAS2: sdiskusage(total=981814214656, used=549516738560, free=382348558336, percent=59.0) 2024-06-12 16:27:55.983 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /ssl: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7) 2024-06-12 16:27:55.984 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /media/NAS3: sdiskusage(total=981814214656, used=549516738560, free=382348558336, percent=59.0) 2024-06-12 16:27:55.985 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /media/NAS4: sdiskusage(total=981814214656, used=549516738560, free=382348558336, percent=59.0) 2024-06-12 16:27:55.986 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /share: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7) 2024-06-12 16:27:55.987 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /run/audio: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7) 2024-06-12 16:27:55.987 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7) 2024-06-12 16:27:55.987 DEBUG (SyncWorker_61) [homeassistant.components.systemmonitor.coordinator] sdiskusagefor /config: sdiskusage(total=61525360640, used=20465958912, free=38519185408, percent=34.7)

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/119543#issuecomment-2168114023, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUELHUHTEVTJKO3C7DUIX2LZHLZLTAVCNFSM6AAAAABJHEZHJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYGEYTIMBSGM . You are receiving this because you authored the thread.Message ID: @.***>

gjohansson-ST commented 3 months ago

The logs really Shouldnt know what / has. Im not sharing it with home assistant.

Right, so maybe you need to elaborate on your particular setup to understand it more.

generalk25 commented 3 months ago

I'm not sure where else to elaborate. Raspberry pi running HAOS. It's hardwired to a switch. Linux box, debian/bookworm, have 5 sata drives, one solid state, /, the rest are ironwolf SDDs. i'm using NFS to export them to my local subnet /24. I've mounted them on HAOS.

are there any vital details that could be helpful?

On Fri, Jun 14, 2024 at 9:34 AM G Johansson @.***> wrote:

The logs really Shouldnt know what / has. Im not sharing it with home assistant.

Right, so maybe you need to elaborate on your particular setup to understand it more.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/119543#issuecomment-2168179352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUELHUASGMNHY2Q3JQMUADDZHL5QZAVCNFSM6AAAAABJHEZHJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYGE3TSMZVGI . You are receiving this because you authored the thread.Message ID: @.***>

gjohansson-ST commented 3 months ago

Then the first picture is not from your HA box? Could you do a same but from within HA (using the terminal add-on for example)?

generalk25 commented 3 months ago

I resolved the issue, but i'm not sure what the expected behavior is regarding nfs shares...

in my exports file i was exporting the base directory from the NAS share as well as the others, apparently I can't export the base directory and a subdirectory and expect home assistant to separate them. Is this required behavior? because I want other machines to have access to everything under /srv/nas, but I only want home assistant to see /srv/nas/2 , /srv/nas/3, and /srv/nas/4

issue-triage-workflows[bot] commented 2 weeks ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.