Skip to main content
On this page

Storage modes

The overview page's storage card shows one of two states, and the About pane shows the same as a badge: kept to itself, drawn filled, or shared with the mesh, drawn hatched. Wherever two things differ by texture rather than colour, the admin pages use the same pairing: filled for this box, hatched for the mesh.

Kept to itself (default)​

Everything you keep on the box stays on the box. The box copies nothing anywhere else. The disk has two parts:

The Storage pane: the box's disk and the room held back for later, with Use reserve.

  • the room in use by LosOS Cloud, LosOS Git and the system;
  • the reserve, the slice the installer held back. The Storage pane can claim it at any time; see disk growth.

Shared with the mesh​

The box lends room it is not using to the mesh. That room joins a replicated pool, which Longhorn runs across the boxes of one edge. In return the box can claim room in the pool itself. Three things hold:

The mesh: three boxes each keep their owner's files to themselves and lend the room they are not using to one replicated pool; below, a 23:00 to 07:00 window when spare time is lent, only while idle.

The Storage pane on a box that shares: the room lent to the mesh drawn hatched beside the box's own.

  • Shared data lives in a separate account on the box, shared, in a directory encrypted with a key sealed to the TPM. When sharing is off, the box does not load the key, and the directory is unreadable even to the box itself. Your own files, under notshared, and the shared data cannot read each other.
  • Sharing needs a reachable edge. Without one, the box refuses the switch.
  • The switch sits on the Market pane, because lending disk and being paid for it are one decision. It works whether or not the edge offers the market to this box.

Shared with this network only​

Between keeping to itself and sharing with the mesh there is a third choice, for a box on a company's network or a home with its own gateway: share with the local gateways of that network and with nothing further.

  • The data lives in a third account, kindashared, in a directory of its own, encrypted with its own key. It opens only while this kind of sharing is on. notshared, shared and kindashared cannot read each other.
  • It needs a local gateway in reach: an edge the box reaches on its own network, whose link is secondary (see edge federation). An official edge alone is not enough, and the box refuses the switch.
  • No market. Nothing kindashared holds is listed, sold or paid for, and a box that shares only this way cannot put room or time on the market. Buying from the market is unaffected.
  • With no local gateway for ten minutes the box turns it off by itself, and back on a minute after one answers again.
  • While it is on and the box is not in the mesh, mail and Mesh CI run as kindashared, with their data in its directory. Apps can be installed as kindashared too. A box that later joins the mesh runs them as shared and starts them afresh there; what kindashared holds stays in its own directory. Chat and calls are not part of this: they run as notshared on every box.
  • The switch, Share with this network's gateways, is on the Mesh pane, with the gateways in reach and the account the shared side runs as.

Lending spare time (compute)​

This is separate from disk and lives on the Mesh pane. A box runs other people's work only when both of these hold:

The Mesh pane with the box joined: Lend this box while I sleep switched on and the hours set from 23:00 to 07:00.

  1. the clock is inside the window you set, a start and an end in your time zone;
  2. the box is idle.

Being busy can close the window early; nothing can open it outside the hours. Anything unknown counts as busy. The edge judges the window in your box's own time zone, so a 23:00 to 07:00 window stays 23:00 to 07:00 across daylight-saving changes.