OSM Documentation 0.1.0 Search

11. System

Updates

Settings > Updates and Recovery. One button updates the system, the file services and the apps' platform: every package comes from OSM's update service (Debian's and OSM's, tested together and signed by OSM), and from nowhere else. See Updates and upgrades.

  • Available updates: check now, see the list (security updates marked, each with its changelog and the CVEs it fixes), and Install all. Restart when an update needs it.
  • How each part updates: each part (OSM, the kernel and boot loader, the system apps, extra packages, the Debian base system, the apps, the App Catalog) with its version and updates; for each, whether its updates install by themselves in the maintenance window, or wait (and tell you, or not). Install installs one part's updates.
  • Automatic updates: security updates by themselves in the maintenance window whatever a part says (on by default, and recommended; critical ones at once), the maintenance window itself (03:00 for two hours by default), and a restart at a set time when an update needs one.
  • OSM's update service: the release in use and what is new in it, the next release rolling out and this server's place in line, the channel (Stable: every server follows it, nothing to choose), the security advisories that concern this server, until when this version of OSM gets fixes, a release that waits because other servers had problems with it, and Report how updates go (off unless you turn it on).
  • Update history: every update OSM installed, what changed, how it was started and how it ended.
  • New kernels: on a server that starts with UEFI, a new kernel is tried once before it becomes the default: a kernel that does not start, or starts without a network, is set aside and the previous one starts. A server that starts with BIOS starts with the newest kernel at once.
  • The way back after an update: only when the new version cannot start. If OSM itself does not answer after its update, its version before comes back by itself, and the version that failed is skipped from then on. If a service that ran before stops or keeps restarting in the 15 minutes afterwards, OSM says so, and the update stays. There is no way back by hand: OSM never goes back to an older version than one it installed, except by that automatic undo.
  • Configuration backup: Export saves, and Import... brings back on a new installation, Desktop Access, automatic updates, the server's screen, the groups, the shared folders with their permissions, and whether the firewall is on. It does not bring back the accounts and passwords, the network, the backup tasks or the apps. An import shows what it could not make.
  • Software list (SBOM): the list of every package on the server, and the images of its container apps, as an SPDX file that vulnerability scanners read.
  • Update from a file: for a server without internet, an offline update downloaded on another computer and brought on a USB drive (or uploaded from the browser): Check..., then Install. See A server without internet.
  • The next Debian release comes through OSM's update service once OSM has been tested on it: there is nothing to do.

Updates and upgrades explains all of this.

Notifications

The bell shows what happened. Settings > Notifications sends what matters (a failing disk, a degraded or full volume, a failed backup, an update that needs a restart) by email (your mail provider's SMTP server; Send a test message checks it), and by ntfy, Gotify, Telegram or a webhook (signed with HMAC-SHA256 if you give it a secret), each from a level up.

Each account can also get its notifications on its phone, without another app: Notify me on this phone on OSM's phone page (On your phone). Phones, at the end of Settings > Notifications, lists every account's phones, with when each last got a message; Remove stops one.

Monitoring

  • Activity shows the processor (and each core), memory, network and disks, live and over a day, a week or a month, with the processes, the open connections and each container's use.
  • Settings > Monitoring:
    • Alerts: the processor busy for minutes, memory or a volume almost full, the server too hot: a warning in the bell (and by email), and a note when it is back to normal.
    • A Prometheus exporter and SNMP (v2c, or v3 with authentication and encryption) for your monitoring system, open to your local network only while the firewall is on.
    • A syslog server for the routers and switches of your network (a file for each device, rotated), and this server's own logs sent to another syslog server if you want. A device that floods the server cannot fill its disk: the server takes up to 1,000 messages a second over UDP (and as many over TCP), a device's day takes at most a quarter of the size limit, and the devices' logs always leave the system disk 2 GB (or 5 %) free; the bell says when any of this happened.
    • Home Assistant (Apps).
    • Diagnostic bundle: one download with the logs and settings, passwords removed, for whoever helps you.
  • Logs: the system journal by source and level, with search, and the source Administrator actions for what was changed; Download saves the journal since the last start. Devices shows the logs your network's devices send, and Support makes the diagnostic bundle.

Scheduled Tasks

Settings > Scheduled Tasks runs things by themselves:

  • What: a script (run as the account you choose), or an action: empty the recycle bins, run a backup task, start, stop or restart an app, restart a service, send a notification.
  • When: on a schedule (daily, some days of the week, a day of the month, every few hours, once), at start-up, at shutdown, or when OSM notices something (a disk failing, a volume degraded or almost full, the UPS on battery, a backup failed, an update installed).
  • Each run is kept with its output; run a task now, stop it, or turn it off for a while. A scheduled time the server was off for comes when it starts again.

Power and hardware

Settings > Power and Hardware:

  • Power profile: Performance, Balanced or Power saver. Each sets the kernel's own controls (the processor's speed policy, PCIe and SATA link power management) to the best this computer offers, and the page shows what each was set to and what the computer refused. The Server Status widget on the desktop shows the server's Power draw in watts where the processor or a UPS measures it.
  • Power settings: what the power button does.
  • Power schedule: shut down, restart or start at set times (starting needs the computer's clock alarm).
  • UPS: a UPS plugged in by USB (shared with other servers of your network if you want: the firewall then lets your local network reach it, on NUT's port 3493), or one on another server. You are told when the power fails and comes back, and the server shuts down cleanly when the battery is low, or after the minutes you choose.
  • Watchdog: restarts the server when it hangs, with the computer's hardware watchdog when it has one. A start after a hang, a crash or a power cut is reported.
  • The server's own screen: what the screen plugged into the server shows; hide the addresses for a server in a public place.
  • Other servers' power (IPMI): turn servers with a BMC on and off.
  • After a power cut: set "Restore on AC power loss" to "Power On" in the computer's firmware for it to start by itself.

The layout of a keyboard plugged into the server, for its menus, its sign-in prompt and an encrypted system's passphrase, is in Settings > Language and Time > Keyboard of the server's own screen (also K on its screen).

Settings > System Info shows the computer, its devices and drivers (Hardware, with missing firmware to install and Save a hardware report), its Sensors (temperatures, fans, voltages), a server board's BMC, the other OSM servers on your network, and Licenses: the OSM license terms (Read, in English, German or French) and when they were accepted on this server, and the license of every package in OSM (Licenses).

License

Settings > License shows this server's license: OSM Free, or OSM Pro, Business or Enterprise from a product key, what it allows, and how many accounts it has of those it may have. Nothing else has a limit: apps, containers and virtual machines are the same in every license. The table at the bottom shows what each license adds; everything else, security updates first, is the same in all of them (Licenses says who each one is for; the pricing page says what each adds and costs).

  • A product key: you get it on OSM's website, in your OSM account (Licenses) and by email. Type it in the installer's Product key step, or here, and press Activate. The server gets its license file from OSM's account service; the key itself is not kept on the server.
  • No internet on this server? shows a link and a QR code. Open it on a phone or a computer that has the internet, type the key there and download the license file, then Upload a license file here. When the server cannot reach OSM's website, Activate says so and keeps the key, trying again every hour; the button is then in its note too. A key typed in the installer is activated at the first start: if the server cannot reach OSM's website then, a notification says the same.
  • The server checks its license by itself, without the internet. Once a day, when it is online, it gets a new license file: with a renewal, an upgrade or more accounts in it when there are.
  • A license file is valid for 90 days, and the daily one keeps it valid, so you never see it. A server that has not reached OSM's website for two months, or a server without the internet (whose downloaded file is valid for a year), gets a notification 30 days and 7 days before its file runs out; License file valid until shows the date. Then check its internet connection, or download a new file on another device (No internet on this server?). A file that runs out stops nothing: changes to paid features wait until the server has a new one.
  • When a license ends, everything keeps working for 30 days, and Notifications say so before. After that, nothing stops and nothing is taken away, but changes to paid features are refused until you renew it: the server takes the renewed license by itself.
  • What the license does not include is greyed out on the desktop, with a gold tag naming the license that has it: the Domain and Network Boot icons, and on their pages, and on Storage's, Settings' and Virtual Machines' pages, the buttons that would set them up (ZFS, an SSD cache, iSCSI, high availability, joining a directory, single sign-on, a PCI device in a virtual machine, an API token that may change things, speed limits). The pages still open, to look around. What turns a paid feature off stays on.
  • A new server, or a new installation, is a new server for its license: type the same key there. A key in use on another server moves only when its owner agrees: the OSM account's email address gets a message to allow the move (or allow it on your OSM account, Licenses), and the new server activates the key as soon as you do. Its note here says it waits; Check now asks again at once. Three moves in any 12 months; more through your OSM account or OSM's support. A key nobody has activated yet needs no OK.
  • A copied disk, a cloned virtual machine, or a new motherboard is a new server too: the server notices that it runs on other hardware than before, becomes a new server, and says so in Notifications. Its license and its OSM Connect link stay with the server it was copied from: activate the key again (it moves, as above) and turn OSM Connect on again. Moving a virtual machine to another host keeps it the same server.
  • Remove the license takes it off this server, which is on OSM Free from then on (it does not come back by itself); the key stays yours, for another server or this one again.

Several servers

The Servers app manages your other OSM servers from this desktop. Add one by its address (or as found on your network), check its certificate's fingerprint once, and give it a token made on that server (Let other servers watch this one). You then see each server's health at a glance.

To manage a server from here, give it also an API token made on that server by one of its Administrators (Change..., API token (to manage it from here)). Manage... then shows its updates and latest alerts, installs its updates or restarts it, and Install updates on every server updates them all.

High availability

Two OSM servers work as one: the main server does the work at the pair's own address; the second server keeps a copy of the volumes you pick, the virtual machines, and the same accounts, passwords and settings, and takes over by itself when the main server stops. Clients (SMB, NFS, the web desktop, apps) use the pair's address or its name, <name>.local, never a server's own: they always reach the main server. Both servers need an OSM Business license of their own.

Add a second server, in four steps:

  1. On the main server, open Settings > High Availability and press Make a code (install the tools there first if it asks). The code works for an hour, for one server.
  2. On the new server, type the main server's address and the code (the two ways are below).
  3. On the main server, press Accept.
  4. That is all: the second server sets itself up. It erases its disks, checks its own license, takes the main server's accounts and settings, then the main server copies the volumes you picked. There is nothing to set up on the second server, and both pages show how far it is.

The two ways for step 2:

  • A new server, from the USB stick: in OSM Setup, after its own Business product key, choose The second server of a High Availability pair, and type the main server's address and the code (installing).
  • An existing OSM server: on its own Settings > High Availability, press Make this server a second server, type the main server's address and the code, and this server's name to confirm. Everything on it is erased: its volumes and their files, shared folders, apps, virtual machines, accounts and settings. It keeps its name, its network settings and its license.

The main server's page then shows the request, with the two servers side by side: processor, memory, room for the mirrored volumes, network, OSM version and license, each green, orange or red. Other hardware is fine as long as the volumes you mirror fit; a smaller processor or less memory only warns, since everything runs on the second server after a failover. Compare the words the second server shows with the ones on the request, and press Accept: knowing the address and the code is never enough. Then you choose:

  • The pair's name and address: an address of your network that no device uses, outside your router's DHCP range. Clients use it from then on.
  • The witness: something that always answers, the router by default, or the OSM Connect relay (with OSM Connect on). A second server that cannot reach the witness does not take over: it may be the one cut off.
  • Takeover after: how long the main server may be silent before the second server takes over, from 15 seconds to 5 minutes (30 seconds by default). The apps are down for about a minute at a failover.
  • A direct cable between the two servers (optional, suggested): the mirror goes over it, and the servers check on each other over both links.
  • The volumes to mirror: each one you tick, which takes the same room on the second server. An empty volume is mirrored at once; one that holds data pauses for a moment (some ext4 volumes for up to a few minutes), and is then copied to the second server in the background, in use all along. Not mirrored: volumes that hold the virtual machines' folders (the virtual machines are mirrored on their own, below), the apps' containers or backups of virtual machines, and ZFS volumes. The files of a volume that is not mirrored are on the main server only: after a failover the second server has the accounts and settings, but not those files. "No mirrored volume yet" on the page means just that.

The second server installs what it needs, erases its own volumes (their room becomes the room for the mirrors), takes the accounts and settings, and the pair is ready, without anything to set up on it. The second server has no desktop of its own: its address and its screen show only whose second server it is and how far its copies are (each volume, and each virtual machine). You manage it on the main server's page.

The page shows the two servers and what joins them (the network, the cable), how far each copy is, and the last failover; the sync jobs (each volume's and each virtual machine disk's copy, with its speed and the time left, the accounts and settings, what the second server installs); the virtual machines; the second server's processor, memory, license, disks, problems and updates, with Restart and Shut down; Mirror a volume and Stop mirroring; and the History.

Virtual machines stay up. The main server puts each of its virtual machines on the pair by itself, one at a time: each disk gets a mirror of its own (the second server needs the room for it; the page says when it has not), and a VM that runs is copied while it runs. Each disk takes its full size on the second server, even when it uses less (a disk of 100 GB needs 100 GB there). At a switch-over, at Make it the main again and at the pair's updates they move live to the other server, without stopping; after a sudden failure they start again on the other server, Critical first (the ones that ran, and those that start with the server). A VM moves live when it runs with the pair's shared processor model: on by default, off in Virtual Machines > Settings > Moves live between the pair's servers (it then runs with the server's own processor, and restarts on the other server instead). The model counts from the VM's next start. A VM with a PCI or USB device of the server restarts on the other server instead too, and a disc in a VM's CD drive is taken out when it moves (it is on one server's volume). The page's Virtual machines shows each one, where it runs, its copy, and whether it moves live. To put a disk of a backup back into a VM on the pair, restore the version as a new virtual machine (it goes on the pair by itself).

  • What stays the same on both: accounts, passwords (SMB's too), groups, two-step sign-in, passkeys, API tokens, permissions, shared folders of the mirrored volumes, and the settings (sign-in, security, notifications, file protocols, firewall, scheduled tasks, backups and cloud tasks, and the rest). The main server sends every change in a moment. The system apps the main server has (File Protocols, Containers...) are installed on the second server too. Each server keeps only its own name, address, disks, hardware and license.
  • Test failover: the main server acts as if it stopped, and the second server must take over by itself, by the same rules as after a real failure. Afterwards the second server is the main server: the page says Complete, and opens the pair's address again by itself, now on the second server; sign in there. When the test fails, the main server takes the service back and says what held it back.
  • Make it the main again: after a failover (or a test) the old main server comes back as the second server; its button brings the service back to it, the same way.
  • Switch over: a planned change of roles, before you work on the main server. When it is complete, the page says so and opens the pair's address again, now on the other server: sign in there.
  • A split brain: both servers changed a volume (or a virtual machine's disk) while they did not see each other. Choose the copy to keep. Nothing is lost: what only the other copy has is kept first, in a new shared folder of the kept side, kept-server-*date, which only Administrators see: the files changed there since the two went apart, or the virtual machine's whole disk (*vm-disk.qcow2). When there is not the room for it, nothing is overwritten: free some room, and choose again.
  • The domain stays up: when the main server is the domain controller of a domain (the Domain app), the second server joins it as a second domain controller by itself, on an address of its own (the free one just above its own address), and its file server joins too; the page shows it under the second server. Give the domain's computers both controllers' addresses as their DNS servers: after a failover they sign in with the second one. A domain made later joins the same way, and one removed on the main server leaves the second server too.
  • Devices of one server only: the page warns of what the main server uses of its own hardware that the second server does not have: a VM's graphics card or USB device, an app's device (the graphics, a Zigbee stick, a Coral accelerator), the UPS, a USB drive. Each one says what stops after a failover until it is on the second server too.
  • Updates: the pair updates as one, at the main server's update hour (Settings > Updates and Recovery). A note says it starts; the virtual machines and the services move to the second server, the main server installs its updates (and restarts if they need it), everything moves back, then the second server installs its own (and restarts if needed); a note says what each one installed. A step that cannot happen (the other server does not answer) is tried again while the window lasts; then a note says why.
  • The two servers restart one at a time, the pair serving all along: after an update installed by hand the second server restarts first, and the main server hands over before it restarts. Restart and Shut down in the menu hand over first too. Turning a server off with its power button, or a UPS shutting it down, does not hand over first: the other one takes over after the time you set.
  • Remove the pair: both servers keep their copy of the mirrored volumes, as ordinary volumes; the pair's address and name go, and the second server has its own desktop again, with the same accounts. Network Boot stays on the server that served (on the other one it is turned off: two servers answering would start a computer from either copy of its disk).

What else follows a takeover, run by whichever server serves: the VPN server (the same keys: forward its port on your router to the pair's address, not to a server's own); single sign-on (at the pair's name; people sign in again after a takeover); PC backups (their repositories on a mirrored volume; the PCs move to the pair's name by themselves); encrypted shared folders whose password the server keeps (they unlock by themselves); an LDAP directory (the second server joins it too, with the same settings); an Active Directory domain (the second server joins it as a computer of its own: in its part of the page, Join the domain... asks once for an account allowed to join computers, which is used for that join only and kept on neither server); Network Boot and iSCSI Storage (the same targets, by the same names: the computers are given the pair's address, so one running from its disk on the server keeps it after a failover, once its initiator connects again). The page's Not ready for a failover says what would not follow yet: a device of one server only, PC backups, boot images, computers' disks or LUNs on a volume that is not mirrored, the VPN's forward, a Network Boot network without the pair's address (computers running from their disk then stop at a failover, and start again from the other server), an Active Directory domain the second server has not joined.

Not moved at a failover yet: backups of virtual machines (their versions stay on the main server's own volumes). Home folders on the system disk are not copied: keep them on a mirrored volume (Settings > Users and Groups > Advanced). When the main server leaves its Active Directory domain, the second server leaves it too; its computer account stays in the domain (delete it there).

The command line

Administrators can sign in over SSH (Settings > SSH) or use the Terminal app, and use sudo. As root, osm shows the server's status, volumes, apps, updates, backups and jobs, and runs any operation of the desktop (sudo osm --help). For scripts on other computers, use the API.