feat: add /host-sys volume mount and HOST_SYS_PATH environment variable for sysfs serial fallback and SMART health detection
Add HOST_SYS_PATH=/host-sys to .env.example and app.py config with /host-sys default. Update _device_serial() to check HOST_SYS_PATH/class/block and HOST_SYS_PATH/block before fallback /sys paths for serial reads. Update raid_status() SMART regex to match both "SMART overall-health self-assessment test result" and "SMART Health Status" with case-insensitive flag for NVMe/SSD compatibility. Add /
This commit is contained in:
1 parent
f7638dd5d5
commit
10eb3a4191
3 files changed
+11
-2
No files matched your search
@@ -7,6 +7,11 @@ services:
|
||||
- "8099:8099"
|
||||
devices:
|
||||
- "${RAID_DEVICE:-/dev/md127}:${RAID_DEVICE:-/dev/md127}"
|
||||
cap_add:
|
||||
- SYS_RAWIO
|
||||
device_cgroup_rules:
|
||||
- "b 8:* rwm"
|
||||
- "b 9:* rwm"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
env_file:
|
||||
@@ -20,6 +25,8 @@ services:
|
||||
- ${DATASTORE_HOST_PATH:-/nesflix}:/nesflix:ro
|
||||
# Read-only Host-Devices für lsblk/smartctl; Media Max führt keine RAID-Schreiboperationen aus.
|
||||
- /dev:/host-dev:ro
|
||||
# Read-only Hardware-Metadaten für Seriennummern und SMART-Zuordnung.
|
||||
- /sys:/host-sys:ro
|
||||
- ./data:/data
|
||||
networks:
|
||||
- media
|
||||
|
||||
Reference in new issue
Block a user