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. When the system's package tool cannot work out the updates (a package left half installed, for example), the check says why in the tool's own words, and the page says The list of updates could not be made, since when, instead of "up to date"; Check now first finishes an installation that was cut off, and the administrators are told when no list can be made for a day. OSM also checks by itself every 3 hours and right after a start; that check shows as "Checking for updates" in the background tasks, and an install waits until it is done. A critical update, found by either check, installs within a minute when security updates install by themselves; if its install fails, OSM says why and tries again a few hours later.
- 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, from 1 to 12 hours long), and a restart at a set time when an update needs one (in the three hours from that time, once nothing runs, also past midnight: a restart time of 23:30 can come at 00:45). They wait while anything runs (a backup, a restore, a move), and the section says what for; after two days of waiting you are told (Updates).
- 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. Older kernels are removed after an update (the one running and the newest stay). A new kernel needs about 150 MB free in
/boot: when there is less, the old kernels go first; when there is still less, only the kernel waits. Every other update is installed, and a warning in the bell (and by email) says how much/boothas free and how much the kernel needs. The kernel installs at a later update once/boothas the room, and the warning goes. - 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, also when the server restarts in the meantime, 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; a second update within those minutes goes on watching what the first one did. There is no way back by hand: OSM never goes back to an older version than one it installed, except by that automatic undo. Each warning about an update goes away by itself once its problem is over (a later update that finishes, a critical update installed, the services running again).
- 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: a locked encrypted folder whose permissions the file changes is left as it is (unlock it, then import again). A file that was changed by hand or damaged is refused whole, with where it is damaged: nothing of it is taken.
- 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, the web server not taking its new settings) by email (your mail provider's SMTP server; Send a test message checks it; for a mail server of your network that takes mail without signing in, leave User name empty, which also removes a saved password; a saved password is kept for the same server, port and user name only: change one, and give the password again; a user name or password with accented letters works with a server that offers the PLAIN sign-in, and the test message says so when it does not), and by ntfy, Gotify, Telegram or a webhook (signed with HMAC-SHA256 if you give it a secret), each from a level up.
A problem is told once, and told again if it gets worse (a RAID array that was degraded and then fails). When it ends (the volume has room again, is mounted again, the disk passes its health check, the power is back) a note says so, by email too, each time it happens. A disk taken out of the server takes its warnings with it, and a deleted volume its own.
When the server starts and its web server (nginx) refuses the settings OSM wrote for it, the web desktop and the apps' addresses go on with the settings from before, and the bell says so with the web server's reason (a certificate it cannot read, say). The note goes once the web server takes new settings: from the next change, or the next start.
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.
The monthly report
Settings > Monthly report (OSM Business) is for an IT company that looks after an office's server: each month, a one-page report for the office. It says whether the server ran (its uptime, and each stop: planned or not), how full its volumes are and how much they grew, whether its disks are healthy, whether its backups ran and proved themselves (the backup tasks, the PCs of PC backups, the whole computers of UrBackup), and which updates it took. At the top: what to look at, if anything, and your note.
- For: the office's name, at the top of the report. Send it to: the addresses. Every month: the report of the month before is sent from the 1st at 8 o'clock (it needs the e-mail settings, Settings > Notifications). A server that was off then sends it at its next chance; one that could not send it says so in the notifications and tries again every hour, and the report counts as sent only once it went. Through OSM Connect, a new address needs your second step again.
- Your company on it (OSM Enterprise): your IT company's name, contact and logo (a PNG or JPEG picture of 200 KB at most) at the top of every report, in place of OSM's.
- A month: what the report of a month says; Download the page saves it to keep or print (or to save as a PDF from the browser); Send it now sends it at once.
The report is in English. The e-mail carries it twice: as the e-mail itself, and as a page attached. A month's report holds what happened in that month alone: a stop just after midnight on the 1st is the next month's. "Everything was fine" says only what the report knows; with no backup task at all, it says that nothing backs the server up. What it could not read it names: when the list of the PCs that back up here cannot be read, the report says that the PCs are not in it.
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.
- Syslog: this server's own logs sent to another syslog server if you want. A log server saved with an older OSM that is no longer a valid address or name (text after an IPv6 zone, a quote) is not used: a warning in the bell (and the Syslog page) names it, and goes once you type the server again or turn sending the logs off.
- 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. Follow new entries adds new ones as they come, also to a choice that showed nothing yet, and keeps the newest 2,000 in the page. Support makes the diagnostic bundle: one download with the logs and settings, passwords removed, for whoever helps you.
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. A time the clock skips when it goes forward in spring (02:30 that night) runs at the hour after (03:30), as the page shows; when the clock goes back in autumn, a task runs once. The power schedule's shutdowns and restarts do the same. An event that comes while the task runs waits, and the task runs again for it afterwards (10 events wait at most). Stop on a task that runs a backup stops the backup too, and so does the task's time limit. A run you stop yourself is no failure: it is kept as Stopped (who stopped it, in its tooltip), no "failed" alert or email comes, and a stopped backup leaves a quiet note in the bell ("Stopped by" you), which goes once the backup runs to its end again. A task that tells after every run says it was stopped. A run stopped by its time limit is a failure, told as one.
- A script follows its account: renamed, the task runs under the new name; deleted, the task is turned off and runs for nobody else, even an account made later with the same name, until you choose an account 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). The page shows the next shutdown, restart and start, in the server's time zone. A scheduled shutdown or restart waits for what is running (an hour at most: then it is skipped until its next time, and a note says why), and a High Availability pair's main server hands over to the second server first.
- 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, and they are told of a power cut too), or one on another server, by its name or its address (an IPv6 address too, with or without brackets). Apply checks that NUT listens where it should, and says so when it does not. 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. A UPS plugged into this server then switches itself off too, so the server starts again when the power comes back: set the server's firmware (BIOS or UEFI setup) to start when the power returns (often "Restore on AC power loss"). Saving installs what the UPS needs, the driver you chose included (a network card's SNMP driver and APC's Modbus driver come in packages of their own).
- 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.
- After a power cut: set "Restore on AC power loss" to "Power On" in the computer's firmware for it to start by itself.
Settings > Language and Time sets the server's time zone and its time servers, and shows Server time: the server's clock as it reads it, in its own time zone, wherever your browser is. Set the time by hand starts from that clock: the date and time you type are the server's, in its time zone (time sync goes off).
OSM deletes some things by their age: the snapshots their rules no longer keep, what lies in the recycle bins, older versions of backups. A wrong date would delete too much, so OSM compares the clock with the time that really passed. When the clock moved by more than a day (a date set by hand, a clock that started wrong), or the server was off for more than a day, OSM deletes nothing by its age until its time server has confirmed the clock (with time sync on, usually within a minute) or the server has run for three days with it. When that lasts longer than ten minutes, a notification says so and gives the server's date, and this page says it at its top: if the date is wrong, set it here, or turn time sync on. Setting the clock back to where it was ends the wait at once. If the date and time are right, click The date is right... and give today's date as you know it: OSM compares it with the server's own (a day more or less passes), and when they agree, the wait is over. That is not possible while an immutable snapshot is kept. Without a time server, a server that was off for more than a day waits those three days each time unless you confirm its date. A server that is the domain controller is confirmed by its time service too: OSM asks the system itself whether a time service keeps the clock. A date no right clock shows (before this version of OSM was made, or after the year 2099) is never confirmed that way: set the clock.
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 > Server keyboard (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 temperature input with nothing connected, which a board's sensor chip reports as 127 °C or -128 °C, is left out), 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, the license of every package in OSM, and under them, the projects whose pictures the App Catalog shows, each with its license and Read (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 product key that was refused (in use on another server and its owner said no, unknown, or revoked) stays in its red note until you act; the license the server has goes on renewing itself every day meanwhile. Check now asks for the newest license file at once, and Forget this key takes only the key away: the license stays (Remove the license would remove it too).
- 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 their entries in the App Catalog, which still install), 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; a server that answers oddly shows its own error, and the others are checked all the same. Removing a server removes its alerts too.
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.
When this server is in a High Availability pair, one line at the top names the pair and this server's part in it; Open goes to Settings > High Availability, where everything about it is.
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:
- 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.
- On the new server, type the main server's address and the code (the two ways are below).
- On the main server, press Accept.
- 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 question lists the backups that are on its volumes and go with them. What a volume's Delete... refuses to take is not erased this way either: while a volume holds immutable snapshots whose time is not over, the backups of PCs listed in Backup > Computers > PCs and servers, or backups of virtual machines, or cannot be checked (it is not mounted), the server refuses, says which volume and why, and nothing changes. It asks again right before it erases itself: if something of the kind came meanwhile, it erases nothing, its own page says why, and Cancel the pairing... on the main server leaves it a server of its own, as it was.
Both servers must run the current OSM. A main server refuses a second server whose OSM is older, and says so on that server's page. An OSM server you have: update it first, then ask again. A USB stick with an older OSM: make a new stick; or install the computer from it as a server of its own, update it, and make it the second server on its own High Availability page. A second server refuses an older main server the same way: update the main server first.
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. At Accept the main server hands the pair over to the second server itself, so that one must be on and still waiting: when it does not answer, or shows another certificate than the one that asked, no pair is made and the page says why. 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. A main server that cannot reach it, while the second server can, hands over. The relay is asked once a minute while all is well, so each server tells the other how old its answer is: an answer from before a server's own trouble began never makes it hand over (an internet outage that both servers see is not one server's own).
- 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. A volume that was empty when you picked it, but has files by the time the second server has made room, is left as it is (mirror it again: it is then copied with its data). 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. A volume whose disks still spread its data over new disks (Growing in Storage), or that waits to take new room in its storage pool, is mirrored once it has grown: the list says so. A mirrored volume keeps its size. 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.
A pairing you cancel on the main server (Cancel the pairing...) is never acted on later: the other server asks the main server before it becomes its second server, and again right before it erases anything. Told that the pairing was cancelled, it stays, or is again, a server of its own, and says so. While the main server does not answer, it erases nothing and waits.
At the second server's own screen and keyboard, P opens the pair's menu (the screen says Press P when the main server does not answer, or removed the pair without it). The menu shows whether the main server answers and how far each copy is, and has the two things that can only be done there. Each one says what it means, then asks you to type the pair's name:
- Start the service here: for when the main server is gone for good and the second server does not take its place by itself (it restarted meanwhile, say, and cannot tell whether its copy is the newest). The second server then serves at the pair's address with its own copy and has its desktop again; when the old main server comes back, it becomes the second server. Only when the main server is really gone: if it still runs somewhere, the two copies change apart, and one of them will be lost. It is refused while the main server answers, and while anything answers at the pair's address.
- Leave the pair: for when the pair was removed on the main server while the second server did not answer. The second server then removes its side too: a copy that is up to date stays as an ordinary volume with its shared folders, a copy that was not complete stays on its disks without being mounted, its copies of the virtual machines are deleted (the main server has the virtual machines), and it has its own desktop again. A server still joining a pair whose main server no longer answers leaves it the same way. While the main server of a made pair only does not answer, this is refused: start the service here instead.
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. Stop mirroring is on the main server only, and only while its copy is up to date (after a failover, make it the main again first). It is refused while the volume's two copies went apart (a split brain, below): choose the copy to keep first, or the other server's changes would go with its copy. When the second server does not answer, or cannot remove its copy at that moment, its copy goes as soon as it can; mirroring that volume again waits for that. Mirror a volume is the main server's too: while the second server serves after a failover, a volume made there stays its own and is not mirrored. Mirroring a volume and stopping its mirror pause the volume for a moment: its encrypted folders that were unlocked are unlocked again where the server keeps their password; one whose password you typed is locked by the pause, and the job says to unlock it again. A volume is the pair's once Mirror a volume has finished: if the main server restarts, or loses power, while a volume is being mirrored, the volume is a plain volume of the main server again afterwards, with its files, and a notification says so; mirror it again. Meanwhile the pair serves its other volumes as before.
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). One whose copy there was not up to date yet starts as soon as it is (a note says why it waits, and goes when it starts). 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). A VM with a PCI device starts on the second server only when that server has the same device at the same address, and not one it needs itself (its network card, a disk controller, its screen): else it stays off there, and a notification names the device. Each VM's UEFI variables and TPM state (BitLocker's key, for example) follow it: the copy of the server it last ran on wins, also after it ran on the second server and whatever the two servers' clocks say, and never while it runs or moves. A change reaches the other server within about a minute; what a VM changes in them in the last minute before its server fails is not on the other one. A VM that is not on the pair (the page says why not) runs on its own server, whichever role that server has, and starts with it there. 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. SSH and the file services (SMB, NFS, FTP, Media Streaming) are set on the second server as on the main one: the same SSH port, password sign-in allowed or not, each of them on or off. The second server installs none of them turned on before the main server has said how it has them, and changes its own when you change the main server's. (On a pair made with an older OSM, the second server takes the main server's SSH and file services' settings once both servers are updated and the main server serves; if you had changed them while the second server served, look at Settings > SSH and File Protocols afterwards.) When each backup, cloud task and replication last ran follows the service too: a takeover does not run them again. Each server keeps only its own name, address, disks, hardware and license. When the main server cannot read one of its own files (a failing system disk), it sends nothing of what that file holds instead of sending it as empty: the second server keeps what it had, and the bell names the file.
- 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.
- After a restart of OSM (every update brings one) the main server goes on serving what it holds. A mirrored volume that is not mounted then (its file system needs a repair, say) is tried again every half minute, and the other volumes stay available; the page shows why it does not come.
- 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-*volume, 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, or a file of that copy cannot be read, nothing is overwritten: free some room (or check that volume's disks), and choose again. The same when the other server restarts while it sets its copy aside, or makes no progress for 30 minutes: nothing is overwritten, and the page says to choose again. Keep the other one's... makes the other server the main server, with its copy. When more than one volume went apart, the others are not available after that until you choose a copy for each of them too (the page says so before you confirm): no server serves a copy nobody chose, and nothing of them is changed meanwhile. The choice waits as long as it takes, over a restart of either server too. The snapshots of the copy that goes are not kept (the files' newest versions are, from the folders themselves). An encrypted shared folder's changed files are kept as they are stored, encrypted, in @crypt/*folder* of the kept folder, with the settings gocryptfs needs: open them with gocryptfs on a computer and the folder's password. A virtual machine's disk is set aside on a volume of the kept server's own, never on a mirrored one. The second server usually has none, so its copy of a VM's disk cannot be the one that stays: the page says so at once, before anything changes. Keep the main server's copy (the second server's is then set aside there), or first give the second server a volume that is not mirrored, with room for the disk (in Storage, while it is the main server).
- 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 join that a restart of OSM cuts off is undone and tried again half an hour later. A domain made later joins the same way, and one removed on the main server leaves the second server too: its controller, its address and its file server's membership all go. If the main server is lost and you remove the pair on the second one, its domain controller stays (it may be the only one the domain has), and a note says so. Once you are sure the old one will not come back, take over its roles and remove it from the domain, at the second server's Terminal:
sudo samba-tool fsmo seize --role=all -s /var/lib/osm/dc/etc/smb.conf, thensudo samba-tool domain demote --remove-other-dead-server=<its name> -s /var/lib/osm/dc/etc/smb.conf. - 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. A server restarts for its updates only when the other one serves the pair at that moment, from its own copies: if it stopped answering or handed the service back while the updates were installed, the restart waits, and a note says why. A virtual machine that cannot move live is asked to shut down before the pair's update moves anything, and starts on the other server once it is off; it is never switched off for an update. If it has not shut down after ten minutes, it keeps running and the update is put off, with a note that names it: shut it down before the next update hour, or look on the page at what keeps it from moving live. An update that a long outage cut off (the main server off for hours in the middle of it) does not go on at whatever hour the server comes back: it goes on at the next update hour, and a note says so. OSM itself, installed by hand on the main server, reaches the second server at the next update hour, whatever OSM's choice in the updates' settings; until then the page says that the two servers run different versions. When the main server has been away for a day, the second server, serving the pair alone, installs its own updates at its update hour (and the security fixes it missed) as a server on its own does, but only Debian's and OSM's: the apps of the App Catalog are not updated there, so they stay at the main server's versions. A restart those updates need waits for you, since nothing would serve the pair meanwhile, and a note says so. Once the main server is back, the pair's updates go as above again, the apps' too.
- 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, and so does the power schedule. 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. A restart the other server said it makes is no alarm: "does not answer" comes only when it is not back within 15 minutes.
- Each server keeps its name and its addresses: while it is in the pair, Settings > Network does not change them (the other server and the mirrors know it by them). To change one, remove the pair, change it, then pair the two again. A certificate one server renews is taken by the other at its next heartbeat; when both change at once, pair the two again. The web desktop's HTTPS port may change: the other server follows it at the next heartbeat.
- Apps: an app you stopped in the App Catalog stays stopped after a takeover or a switch-over. A Containers project with a folder on a mirrored volume stops whenever its server lets go of the service, and starts again when it serves again; it does not run on the other server.
- A copy left out of the mirror: after a restart, a server takes its copy of a volume (or of a virtual machine's disk) into the mirror only when the disks under it are the ones it last ran with. When its RAID array runs on a disk that had left it earlier, or the server started without a disk and OSM cannot tell which copy it runs on (When a disk fails), the copy is left out: the mirror keeps its own notes on those disks, as old as they are, and would take the old copy for a current one. The page says Left out of the mirror with the reason, and so does the bell; that server does not take over meanwhile. Put the missing disk back in that server. If it is gone for good: remove the pair on the server that serves, keep the copy in Storage on the other one, repair it, and pair the two servers again.
- 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. A copy that is whole but was not known to be the newest (the other server had written past it, or it had restarted without the other one) is kept and mounted too, with a note that it may be older than the other server's. A copy that was not complete stays unmounted, and the note says so: when the other server is gone and it is the only copy left, do not delete or repair it, and ask Support. Encrypted folders that were unlocked on the server that served are unlocked again where it keeps their password. A removal that stopped halfway can be run again: what it had finished stays as it was. Each virtual machine's disks go back into files on the server that serves, and only then are its mirrors removed. A copy of a virtual machine is never deleted on a guess: when a VM's disks cannot be given back (its copy on that server is not up to date, or the server has no definition of it), the removal stops and says what to do; and when the other server is gone for good, such a copy is kept as it is, and a note says where it lies. When the second server did not answer and you removed the pair on the main server alone, the second server hears it once it is back: it never takes over a pair that is gone, its bell says so, and Leave the pair at its own screen (P) removes its side. 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). The tasks stay on the server that served, too. The other server holds copies of the scheduled backups, cloud tasks, replications and scheduled tasks, and would run them all as well, into the same places: there they are turned off, nothing is deleted, and one note in its bell lists them. Turn on only what that server alone should run: a backup task is By hand (set its schedule again with Edit), a cloud task and a replication show Task off (Turn on...), a scheduled task has its switch in Settings > Scheduled Tasks.
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; the second server installs their programs ahead); encrypted shared folders whose password the server keeps on its system disk (they unlock by themselves; the second server installs what opens them ahead). A password sealed to the main server's TPM chip cannot be opened by the other server: after a failover such a folder stays locked until an Administrator unlocks it there with its password (Shared Folders > Unlock), and the page says so beforehand under Not ready for a failover. 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).
Watch each other, without a pair. Two servers can also only watch each other: each one checks the other every minute, and notifies you when it stops answering. Nothing takes over, and it works with every license. Add each server to the other's Servers, with a health token made there (Let other servers watch this one); then, on both, Settings > High Availability > Watch each other > Pair with a server..., one as the primary and the other as the standby. Unpair ends it. While the server is in a pair of a main and a second server, that pair's own heartbeat tells instead.
The command line
Administrators can sign in over SSH (Settings > SSH) or use the Terminal app, and use sudo. What runs in the Terminal goes on when OSM restarts itself (an update of OSM, for example). 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.