Skip to content

hardware report form: NAS bay map in level 3, host-only notes on levels 1 and 2 - #17

Open
luuvasara wants to merge 1 commit into
rylos:mainfrom
luuvasara:docs/form-host-reports
Open

luuvasara wants to merge 1 commit into
rylos:mainfrom
luuvasara:docs/form-host-reports

Conversation

@luuvasara

Copy link
Copy Markdown
Contributor

Follow-up to #16 and 869ebd8: the collector now has everything a new model needs, so this only touches the form.

What changes

  • Level 3 starts with the NAS bays. docs/porting.md sends owners of a new model to "level 3 of the form" to confirm the bay map by moving one disk, but level 3 only covered the expansion unit's identity. It now opens with the same disk → ATA port loop as collect-report.sh, run once more after moving one disk to an empty bay, with an example line from the DS2415+ and how to read it. The expansion-unit part follows unchanged.
  • Level 1: a host-only report with the collector file attached can leave it empty (the file has the same lines; hardware report: DS415+ #16 left it empty for that reason).
  • Level 2: a model synodeb doesn't support yet starts with the DSM log, and the box accepts the collector's file.

Testing

  • The form parses as YAML (python3 -c 'import yaml; yaml.safe_load(open(...))').
  • The loop is copied from tools/collect-report.sh at 869ebd8, so form and collector print the same lines.
  • The example line comes from our DS2415+'s DSM 7.1.1 boot log (ata7.00: ATA-8: ST1000DM003-1CH162, sd 6:0:0:0: [sda]), with the disk in bay 1, checked at the unit. The model is shown cut to 16 characters, as /sys/block/*/device/model stores it.

Not in this PR, but found on the way: on Avoton units /proc/sys/kernel/syno_hw_version carries a suffix: DS415+-j in #16, and DS2415+-j on our DS2415+ under DSM 7.1.1. The kernel command line says syno_hw_version=DS415+ / DS2415+. hw_version() in synodeb-setup.sh reads the proc file first, so a future ds415plus.conf with MODEL=DS415+ would not match, and with MODEL=DS415+-j the check against SynoBootLoader.conf (grep -q "syno_hw_version=$MODEL") would fail instead. Reading the command line first, or cutting at the first -, would cover both. I left it to you, since it's your code.

Offered as a suggestion; change or drop it as fits.

…ls 1 and 2

docs/porting.md sends owners of a new model to "level 3 of the form" to confirm the bay map by
moving a disk, but level 3 only covered the expansion unit's identity. Level 3 now starts with
the NAS bays: the same disk -> ATA port loop as collect-report.sh, run again after moving one
disk to an empty bay. Level 1 says it can stay empty for a host-only report with the collector
file attached (rylos#16 left it empty for that reason), and level 2 says a new model starts with the
DSM log.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant