Skip to content
← Back to writing

November 14, 2026

The array record lives on the stick now

Two days of proofs on a USB-stick install: a boot that could not start its array, a setup wizard that could not finish on a small box, and the first release candidate failing its first restore.

An Eight.ly box that boots from a USB stick keeps its settings in memory unless it has somewhere on disk to put them, and 8RAID needs one more file that has to survive every power cut: the array's record, which says which disk is which. Unraid keeps the equivalent file on its flash drive, and on Friday I made Eight.ly do the same. The two days around that change were mostly spent finding out where it broke, and that is why I trust the result.

The setup wizard's Nova step on a 4 GB test VM, showing the single line that Nova needs 8 GB of memory or a graphics card and can be added later, with a Next button that works.

The record on the stick

The driver now writes the array record on the stick, with two fixed backup slots that survive a power cut. If the box stops uncleanly and the record is restored, the array does not just start. It waits for the owner to press Start, and the screen says what will happen: a non-correcting check when every disk is valid, or "Disk 3 will be rebuilt. Start?" when one is not. Before any format the disk itself is probed, and a disk that already holds a filesystem is never formatted unless the owner names it. The settings area can never be moved onto the array. A stick box with settings in memory and no cache drive is refused before any disk is touched, with one line: "Add a cache drive to keep your settings." A btrfs cache of one drive or two can also hold the settings area, and the boot waits for every member of it. If one is missing the boot stops, writes nothing, and says "A cache disk is missing. Settings were not opened."

My first proof of this failed, which was good news. I built the stick image from the branch in CI, read the module signer on the booted stick because Secure Boot is off on the test VMs and loading alone proves nothing, and used three VMs: one with settings in memory, one with settings on a ZFS pool, one with settings on the pool's cache.

On the stick with settings in memory, the array never started at boot. The boot-time start command is forbidden from opening the database, but the code that rewrote the missing fstab lines committed the change to the database as well, so the commit failed after the live file was written and the start was abandoned. With settings in memory that happens at every boot. Nothing was lost, and an owner Start from the screen brought the array up with all 13 test files matching, but a customer should not have to know that. The setup wizard was worse: after creating an 8RAID pool it said "Your pool is ready, but no mounted drive can keep your settings yet", with one button that changed nothing and the Back button disabled. A box with settings on btrfs, one drive or two, stopped at every boot. That made seven defects in all, counting the smaller ones.

I fixed them and proved it twice more. The last round passed every criterion, including 32 power cuts around saves of the record and 10 cuts in the first minute after boot, where the stick booted and the array started every time. It also passed six boots on a two-drive cache and the wizard through to its last step. It merged early on Saturday, after the third round.

A setup that cannot finish

On Friday afternoon I ran another proof, for a fault someone would hit on their first day. On a box with under 8 GB of memory and no graphics card, the wizard's Nova step downloaded about 3 GB, then refused to install and kept Next switched off, so setup could not finish. When the destination lacked room, the screen showed raw command output.

The step now checks memory and graphics and free space before it downloads anything. A box that cannot run Nova gets one line, "Nova needs 8 GB of memory or a graphics card. You can add it later.", and Next works. Too little space gets "Not enough space for Nova on the cache." A failed setup says "Nova could not be set up. You can add it later." and never shows raw output. On a 4 GB VM the wizard reached step 10 of 10 and the network card received 245 KB across the whole run, so nothing was downloaded. I tested a 2 GB folder and a 5 GB one, where the download would fit and the engine's second copy would not, which is the earlier fault's exact shape. The old build, used as a control, downloaded all 3.2 GB and then showed the long refusal.

Two things are not proven. A 9 GB box with Nova installing did not finish on this VM, for two reasons outside the fix. And the VM is a classic Debian install, on which the Nova step shows nothing, so I added test data to make it read as an image boot. A run on a real image is still owed, and I said so on the change. That fix merged on Friday evening.

The first release candidate

On Saturday I cut v2.6.0-rc.1, a signed test build of 8RAID that says "Not for general use" and names the GPL-2.0 source of the driver it contains. A release candidate needed its own path through the release scripts. A tag containing "-rc" now skips the wiki changelog and the release sync, stays out of the changelog file, and does not change the README's latest release. The name also has to sort below the version it leads to, because the updater drops everything after a hyphen when it compares versions.

I need the candidate on a real box. The soak machine is a classic install, and the 8RAID driver exists only inside the image, so no update of any version could put 8RAID on it. The answer is to install the image on a USB stick and boot the box from that, leaving the OS disk as the rollback. On Saturday evening I exported that box's settings, 13,096 files, then booted the stick and restored them. The 12 TB drive I emptied out of my NAS on Tuesday was in that box for the soak.

The restore failed. The backup carried Nova's engine binaries, and an image install supplies that folder read-only, so the first write was refused. Worse, the rollback then reported failing on the same read-only path it had never written. The export no longer carries those binaries. A restore now checks every destination before it writes anything. An optional one on a read-only filesystem is skipped and listed, and a required one, such as users, keys, VM definitions or shares, fails the import up front. Rollback restores only what was actually written. Tests cover each case, and the proof on the hardware needs the next candidate.

MemIndex

On Friday and into Saturday I ported the missing reliability fixes into MemIndex. Memory capture keeps its work through busy queues, crashes, rate limits and dropped connections. A bad date or paging value now gets a clear error instead of an empty result. Codex gets its memory back after compaction. Daily logs older than 30 days are deleted, log files only. A sign-in pause now retries after 30 minutes without a restart, and notes are tagged only with a git branch that is still active, where a detached checkout or a branch idle for 14 days uses the project instead.

A security pass hardened the worker. The OpenClaw installer refuses an API key on the command line, the data and log folders become owner-only, logs never print commands, fetched URLs or prompt text, and a context file that links outside the workspace is refused. Stopping or restarting the worker used to send its install secret to whatever was listening on the worker's port. It now goes only to a listener that answers a fresh identity challenge. I drilled that against a real 1.3.0 worker. Version 1.5.0 went out on Saturday evening with all of it.

The website got its first use-case page that evening, built on a template with a live product demo: a scripted coding session on the left, MemIndex notes appearing on the right, and then the next session opening with them. The README on npm is now written for customers and not for contributors.