Repository navigation
docs(trinity): the photo disk passes no SMART; revert the SMART job's lock dir - #1598
Merged
Merged
Conversation
… lock dir The photo disk's Seagate enclosure (0bc2:ab18, uas) answers no ATA pass-through, so the docs that promised a health row for it now say it has none. The lock-directory commit merged with #1597 rested on a false claim that /run/lock is read-only under ProtectSystem=strict; the monitoring host's identically sandboxed unit locks there daily, so this unit goes back to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The service’s strict filesystem protection leaves the default /run/lock read-only, causing lock creation to fail before SMART collection unless a writable HOMELAB_LOCK_DIR is configured.
1 open issue
What changed in this PR
This PR updates trinity’s SMART monitoring documentation after #1597 to reflect the photo enclosure’s lack of SMART pass-through. It also reverts the sensitive service’s lock-directory override.
Changes:
- Clarifies that the photo disk is counted but provides no SMART health series.
- Updates first-run checks to expect NVMe health data and HOUSEHOLD drive data while connected.
- Removes the lock override and records both changes in the changelog.
| File | Description |
|---|---|
systemd/sensitive/homelab-smart-state-sensitive.service |
Removes the lock override and documents the photo disk’s SMART limitation. |
systemd/README.md |
Corrects the sensitive SMART job’s coverage description. |
docs/runbooks/schedule-maintenance.md |
Explains the photo enclosure’s SMART limitation. |
docs/runbooks/build-the-sensitive-tier-host.md |
Updates expected first-run health metrics. |
docs/hardware.md |
Records failed SMART pass-through attempts and monitoring limitations. |
docs/changelog.md |
Adds a dated record of the coverage correction and lock revert. |
Review effort: Balanced
run-scheduled.sh opens its lock in /run/lock, and ProtectSystem=strict is documented to leave it read-only. The directory is world-writable already, so naming it costs nothing and removes the question. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changed
Two fixes left over from #1597:
0bc2:ab18, on theuasdriver) fails "Read Device Identity" under-d sat,-d sat,12and-T permissive.hardware.md, the build runbook's step 12,schedule-maintenance.md,systemd/README.mdand the unit's header now say the job reads the NVMe, and that the photo disk is counted but has no health series./run/lock. feat(trinity): collect SMART from trinity's own disks #1597 merged with a commit that setHOMELAB_LOCK_DIRto the textfile directory, which left a lock file beside the metrics. The override is removed, and/run/lockis named inReadWritePathsso the lock opens underProtectSystem=stricteither way. The directory is world-writable, so this grants nothing new.Why
On 2026-11-21 the first run on
trinityreadnvme0n1and the HOUSEHOLD drive, and returned nothing forsda, the photo disk. The threesmartctlmodes above were tried by hand and all failed. Dropping the disk offuaswith a kernel quirk was judged not worth a reboot and slower transfers. The disk's protection stays as it was: the nightly copy tooracleandverify-backups-sensitive.On the lock: the monitoring host's
homelab-smart-state.serviceuses/run/lockunder the sameProtectSystem=strictand exits 0 daily (2026-11-19, 2026-11-20). Review on this PR pointed out that systemd documents/run/lockas read-only under strict. Naming it inReadWritePathsmakes trinity's unit correct under either reading.Blast radius
trinity's SMART unit only. After merge it locks in/run/lockagain, with that path named writable. Everything else here is docs.secrets/*.sops.yamlVerification
python3 scripts/check_docs.py:docs OK../scripts/install-timers.sh --check --profile sensitive: 0 FAIL../scripts/lint.sh: passed. 4 tools were unavailable and skipped (yamllint, ruff ×2, ansible-lint), so CI covers them.I did not run full
make validate; CI does.After merge,
make install-timers PROFILE=sensitiveontrinityre-renders the unit without theEnvironment=line and with/run/lockinReadWritePaths. The stalehomelab-smart-state-sensitive.lockin the textfile directory can then be deleted.make validatepassesDeployed to the lab and confirmed working
Docs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code