Skip to content
← Back to writing

November 19, 2026

The health check that woke the sleeping drive

The 8RAID soak caught Eight.ly OS waking spun-down drives just to read their health, and by evening I had written the ten-step freeze list that leads to v3.0.0.

On November 19 the 8RAID soak on my bare-metal test server showed me something I had not expected. The parity drive was in standby, which is where I want a parity drive to be when nothing is writing to the array. The soak log showed it had been woken, and no data had been read from it.

The Create 8RAID pool dialog in the Eight.ly OS setup wizard, at the first step where the array gets its name.

What the sweep did

The box runs a SMART sweep that reads each drive's health. For each disk it runs smartctl with the option that says do not wake a sleeping device. On a drive in standby that call exits with code 2 and returns nothing, which is the correct answer. My code treated the empty reading as missing data and retried with the device type the disk scan had found, which was SCSI. The SCSI path cannot see the ATA power mode, so it did not know the drive was asleep, and it read it anyway. The spin-up took 9.6 seconds and the drive finished active with zero block I/O. Any array drive that sits behind an LSI controller got the same treatment after it spun down.

The fix is small and the rule behind it is short. A standby or sleep answer, in text or in the JSON power mode, now ends the read for that disk. There is no fallback and no retry, and the reading says the drive is spun down and was not woken. A disk that is awake but returns no ATA data still gets the fallback, as it did before, so the older fix for drives that report oddly stays. smartctl also exits non-zero on purpose in several cases, and those no longer get logged as failures. I wrote the tests with a faked command runner and made them fail first. It merged early that morning.

I did not close this one on the tests. The pull request says plainly that the proof has to come from real drives, by re-running the sleep phase of the soak. That run waits for the soak box to be on a build that carries the fix.

This is the kind of defect only real drives show. The soak box has real disks behind its controller in pass-through mode, and its parity drive is one that should spend most of its time asleep. On a VM with virtual disks the sleep state never exists, so the sweep would have looked fine.

Release candidate 5

The notes for release candidate 5 merged half an hour after the fix, and the candidate was published at 10:23 as a pre-release, labelled as a test build of 8RAID and not for general use.

Writing down what v3.0.0 needs

I also closed the previous sprint, which had nothing in QA, and moved the tickets sitting in In Progress back to Selected with a note on each, because nobody was working on them and the board was claiming otherwise.

The soak had found real defects and a real install outside my lab had found more. In the evening I created a sprint for the freeze, started it at 8:45 with seventeen tickets and 40.75 points, and posted a ten-step list on the plan page at 9:00. The sprint's goal reads: settings on the stick, five data-loss fixes in the style of Unraid, a block for the SCTP kernel module, the 8RAID soak proof, and the launch-bar bugs from the field install.

The list in order is this. First the rebuild fix, for a data disk that drops out of an 8RAID array and returns. Then ordering of release candidates in the update check, so rc.5 counts as newer than rc.3. Then settings kept on the USB stick. Then five fixes that bring behaviour in line with Unraid: a mirrored two-disk cache by default, a settings backup from first boot, New Config for a stopped array with parity already valid, drive temperature and cable-error alerts, and a SnapRAID schedule on new arrays. After those, the SCTP block, then two bugs from the field install. Step seven is to cut the next candidate and resume the soak, step eight is to close whatever the soak proves, and step nine is v3.0.0.

The two field bugs are worth naming. The cache step of setup offered disks that were already members of the array, which means a click could have wiped a media drive. And a user who signed in with a temporary password got the whole dashboard with every call refused and no form to set a new one.

Eight.ly Agent goes public

Late that evening the Eight.ly Agent repository became public. It is the small program that lets Docker hosts show up in the dashboard. Making it public meant the Homebrew tap and the Scoop bucket release assets had to work for strangers, so that brew install and Scoop installs succeed without access to anything private. Pull requests from outside need approval before any workflow runs on them, which keeps a stranger's code off my runners.