CARBONPANEL DOCUMENTATION · v1.8.0

NAS & storage

Read-only Linux software RAID, LVM, fans, and the boundaries of hardware support.

The Disks → RAID, LVM & Fans section reports existing storage and sensors, including unmounted arrays and volumes. It refreshes every 30 seconds, has its own refresh button, and is searchable with Cmd/Ctrl+K. All NAS monitoring is read-only.

  • Linux MD RAID: array level, state, capacity, configured member count, degraded count, member device/state/slot, sync action and rebuild progress. Data comes from /sys/class/block/*/md; mdadm is not required. Hardware RAID, ZFS and proprietary storage controllers are outside this collector.
  • LVM2: physical volumes, volume groups, logical volumes, capacity/free space, attributes, backing devices and thin-pool data/metadata allocation when reported. Mount usage remains in the existing disk cards; pool allocation is not filesystem usage. The installer installs lvm2 and a root-owned reporting helper. Its sudo rules allow only fixed pvs, vgs and lvs reports. No storage-changing operations are exposed. Missing tools, permission failures and report errors appear in the section. Existing installations can provision the helper with sudo carbonpanelctl fix after updating to this installer.
  • Fans/PWM: hwmon driver names, fan RPM, sensor faults, raw PWM duty values (0–255) and numeric enable modes where exposed. PWM channels are listed independently of fan channels; their numbering does not establish a physical association. Modes depend on the driver. Older hwmon device/ layouts are supported. No fan settings are written and no sensor-detection probes are run. Missing channels mean the running kernel/driver does not expose them, not a stopped fan.

ARM CPU identity and frequency

CPU identity uses /proc/cpuinfo, SoC family/ID sysfs attributes, root device-tree compatible strings and ARM implementer/part IDs. Realtek RTD, Qualcomm SoCs (including Snapdragon platforms), Rockchip and other common ARM SoC identifiers are recognized when the kernel exposes them. A core ID such as Cortex-A53 does not establish the containing SoC model, so it is never used to guess a Realtek or Qualcomm product name. The collector does not read device serial numbers.

For clocks, the collector tries psutil, per-CPU and policy CPUFreq paths, then explicit MHz/clock fields in /proc/cpuinfo. CPUFreq kHz readings are converted to MHz; multiple reported cores are averaged, and policy-only readings are weighted by their affected CPU counts. cpuinfo_cur_freq is preferred when readable; scaling_cur_freq can reflect the kernel's requested operating point. Missing files and unsupported/permission-denied readings do not stop collection.

A CPU node's device-tree clock-frequency is a last-resort configured clock and is explicitly labelled nominal, since it does not prove the live frequency. Maximum-frequency limits and BogoMIPS are never substituted for a current clock. When the kernel exposes no usable clock, the dashboard says Frequency not reported. For compatibility with existing clients the API retains numeric frequency_mhz (zero for unavailable) and adds frequency_kind and frequency_source metadata. Existing Android clients can ignore these new fields.

References: Linux CPUFreq, SoC sysfs ABI, ARM Cortex-A53 identification.

SysV

The installer checks for a running systemd instance, rather than just an installed systemctl. Without systemd it writes /etc/init.d/carbonpanel-backend, registers it through update-rc.d, and uses start-stop-daemon to run the backend as the CarbonPanel service user. The service loads the shared backend environment, records a PID under /run, and logs to /opt/carbonpanel/shared/backend.log (or the configured install root). Unlike the systemd unit, this script does not automatically restart a crashed backend.

sudo service carbonpanel-backend status
sudo service carbonpanel-backend restart
sudo carbonpanelctl check
sudo carbonpanelctl update
sudo carbonpanelctl rollback

Install, update, rollback, repair and uninstall select the running init system. Browser update checks, installation, progress and updater logs work on both systemd and SysV. On SysV, a root-owned helper starts a detached supervisor which survives backend restarts. It holds the same update lock used by command-line updates, returns a correlated operation ID and captures output under /run/carbonpanel-updater/updater.log. Logs survive backend restarts but are cleared by a host reboot. The helper accepts only check, update, status and logs; its paths and installer settings come from root-owned /etc/carbonpanel/updater.json. Caller environment variables are not passed into privileged update commands.

Existing SysV installations need one CLI update to provision this integration. Afterward, use Settings → Version → Check for Updates / Install Update. Configure Settings → Proxy for hosts which need outbound proxy access: web updates read that saved configuration, rather than an SSH shell's environment. Local health checks bypass the outbound proxy.

Scheduled daily checks still use the systemd timer. Service management pages and systemd journal views still require systemd; the Settings updater log view uses the SysV helper when appropriate. No broad service-control sudo rule is added for SysV. Storage and hardware monitoring do not require systemd.

Debian 13 with a vendor Linux 4.9 kernel

This combination needs verification on the actual NAS; it is not certified by these changes. The collectors use long-established MD and hwmon sysfs interfaces and LVM2 JSON reports, and do not require a modern systemd version. Vendor drivers can expose fewer attributes or hide storage/sensors from a chroot/container.

The backend still requires Python 3.11+. Installation currently builds the web frontend on the host and requires working Node.js 18+ and npm. Upstream Node binary kernel requirements can exceed Linux 4.9; having Debian 13 userspace alone does not guarantee a binary will run. The installer checks that Python and Node execute before building. Use a distribution/vendor-compatible runtime where available; these changes do not install or replace your kernel or vendor fan driver.

Before installation, these read-only commands help establish compatibility:

uname -m
uname -r
ps -p 1 -o comm=
python3 --version
node --version
cat /proc/mdstat
ls /sys/class/hwmon
sudo pvs
sudo vgs
sudo lvs -a -o +devices

Interface references: Linux MD, hwmon sysfs, LVM reports, and Node platform requirements.

Source: docs/NAS.md at v1.8.0. Verification record.