Skip to content

OpenNebula 7.4.1 front-end site on KVM: an unplanned power cut and a 10-minute WAN outage, tested on production

As of 3 December 2026: we cut all power to the data centre that hosts our OpenNebula 7.4.1 front-end with every guest running, and later disabled both of its uplinks for 9 min 59 s. Once the machine had started, all 14 production VMs at that site were resumed within 7 min 5 s of the first kernel line with no manual step, and the QEMU processes of the 17 VMs at the remote site never changed. The timelines, the 203 seconds OpenNebula took to mark the dead VMs POWEROFF after a cold boot, a RAID5 array that did not resync, how replication came back, what went wrong, and what was not proven.

By Nishant Gauraw, NG-NeXTPublished Updated 23 min read

As of 3 December 2026, NG-NeXT has run two real failures against its two-site setup described in Two sites, one OpenNebula: an unplanned power cut of the data centre that hosts the OpenNebula 7.4.1 front-end, and a 10-minute loss of every uplink at that same site. Both were run on production, in the afternoon, with guests running. Unplanned here means unplanned for the systems: nothing was shut down, stopped or warned first. We chose the moment, which is how an outage is tested, and we took the real risk of removing all power.

The short answer:

  • Power cut. Once the machine had started, all 14 production VMs at the front-end site were resumed with no manual step, each on its first attempt. The last one was resumed 7 min 5 s after the first kernel line, and the start unit reported all of them running at 7 min 25 s. OpenNebula started none of them by itself. A unit on the host did, after waiting 203 seconds for OpenNebula to mark the dead VMs POWEROFF.
  • WAN outage. No QEMU process changed at either site. The front-end logged the remote host as failed after 6 min 32 s, sent no VM action, and monitored the host successfully again 40 s after the uplinks returned.
  • The remote site kept all 17 VM processes through both tests, and its edge web server logged requests in every minute with no response in the 5xx class.

That guide listed "an unplanned power cut of either host" and "a real WAN outage" under what it had not proven. This post covers the front-end site's half of the first, and one case of the second: both uplinks disabled in software at the front-end site for 9 min 59 s. What is still open, and what we did not measure, is listed under "What this did not prove". Read that section before relying on any number here.

About the logs. Same scheme as the guide. Site A is the site with the front-end; its machine is hv-a. Site B is the remote site; its host is hv-b. VM names and addresses are replaced, and [...] marks removed text. Counts, versions and settings are unchanged. Times are IST on 3 December 2026 unless a line is labelled UTC.

Who this is for, and what it is not#

This is for administrators who run, or plan to run, one OpenNebula front-end over KVM hosts at more than one site with local storage, and who want to know what a failure at the front-end site looks like before it happens to them.

It is not a disaster recovery design, and it is not a claim about uptime. We measured what the virtual machines, the front-end and the replicas did. We did not drive a login or a transaction through any application, and we did not measure reachability from outside.

Tested and not tested#

AreaTested in this runNot tested
PowerGrid supply and inverters switched off for the whole data centre at Site A (front-end, KVM host and site router together), guests running, no shutdownA power cut at Site B; a second cut during the boot; a cut under heavy writes
WANBoth uplinks of Site A's router disabled for 9 min 59 s, then re-enabled by a scheduler on the routerA pulled cable; packet loss or a flapping link; an outage longer than 9 min 59 s; a WAN outage at Site B
Remote hostSite B kept running through both testsA boot of the Site B host while the link is down
Storagemd RAID5 with a partial parity log, md RAID1 with a write-intent bitmap, XFSqemu-img check on the VM disks; a parity check of the RAID5 array afterwards; other consistency policies
Guests14 production VMs at Site A, none with a virtual TPMVirtual TPM state after a power cut; recovery messages inside most guests
ApplicationsEdge request counts at Site B; replication logsWhat any single user experienced; reachability measured from outside

The setup, as far as it explains the results#

  • Site A is one machine that is both the OpenNebula 7.4.1 CE front-end (MariaDB 10.5) and a KVM host, on AlmaLinux 9.8. It runs 14 production VMs under OpenNebula: four main VMs and ten replica VMs that hold copies of Site B's data services and applications. The site router is a separate device on the same power.
  • Site B is a KVM host in another city with 17 VMs. Its MongoDB primary, PostgreSQL primary and object storage are local.
  • Replication from Site B to Site A: a MongoDB replica-set member at Site A with votes=0 and priority 0, an asynchronous PostgreSQL 16 streaming standby, and object-storage bucket replication.
  • The link between the sites is a WireGuard tunnel between the two site routers. OpenNebula does not manage it.

How Site A starts its VMs at boot#

None of the four VMs we sampled that day, two per site, carries OpenNebula's AUTOSTART attribute; the full list was checked during the earlier work, not again after these tests. No libvirt domain on hv-a is set to autostart. A systemd unit on hv-a starts the VMs through OpenNebula in a fixed order: the four main VMs first, then the ten replicas one at a time. We keep the order and the spacing in our own unit.

Both files are published with the guide's other scripts: the start script as host/site-a/staged-start.sh and the helper as host/ng-vm. The published helper is a later revision than the one installed at Site A on the day of the test; on a front-end it takes the same branches, and the repository's AUDIT.md lists the differences.

Each start goes through a small helper, ng-vm start, which asks OpenNebula for the VM's state and acts on it:

SYNC_WAIT=${SYNC_WAIT:-420}    # seconds to wait for OpenNebula to notice a VM that died with the host
[...]
"POWEROFF "*|"UNDEPLOYED "*|"STOPPED "*) one "onevm resume $id" && { echo "$1 resumed through OpenNebula (VM $id)"; return 0; }; return 1;;

After our ordered shutdown the VMs are recorded as POWEROFF, and onevm resume works without that wait. After a power cut the database still says RUNNING, because nothing told OpenNebula otherwise. The helper sends a resume only for a VM that OpenNebula records as off, so it polls until OpenNebula's own monitoring finds no such VM on the host and marks it POWEROFF. It gives up when its wait counter reaches 420.

Before 3 December that path had been reasoned about, not run: a cold boot of the front-end with every VM still recorded as running.

Test 1: power cut at Site A#

At 15:59 we took a snapshot of hv-a with the script used for the reboot proof in the guide: per VM the live libvirt definition, disk chain, file owners and guest services, and per host the addresses, routes, bridges, firewall, mounts and arrays.

Then the grid supply and all the inverters were switched off at the power room, as a real outage would do it. Both redundant supply lines to the server went dead together with the rest of the data centre, which is why the site router went down too. Every guest was running. Nothing was shut down.

# hv-a, last line of the previous boot's journal
2026-12-03T16:21:43+0530 hv-a systemd[1]: Finished [...].
# hv-a, first line of this boot
2026-12-03T16:24:40+0530 hv-a kernel: Linux version 5.14.0-687.66.1.el9_8.x86_64 [...]

There are 2 min 57 s between those two lines. That is not the exact time without power: MongoDB at Site B marked its Site A member down at 16:22:15, so power went a little after the last log line. The exact moment was not recorded.

Storage: a RAID5 array that did not resync#

16:24:43 kernel: md/raid1:md127: not clean -- starting background reconstruction
[...]
16:24:43 kernel: md: resync of RAID array md127
[...]
16:24:47 kernel: md/raid:md123: not clean -- starting background reconstruction
16:24:47 kernel: md/raid:md123: raid level 5 active with 3 out of 3 devices, algorithm 2
16:24:48 kernel: XFS (md123): Starting recovery (logdev: internal)
16:24:48 kernel: XFS (md123): Ending recovery (logdev: internal)
16:25:48 kernel: md: md127: resync done.
ArrayLevelConsistency policyAfter the cut
md127RAID1, two NVMe partitions, root filesystembitmapresynced in 65 s
md123RAID5, three hard disks, the VM disksppl (partial parity log)flagged not clean, no resync

Both arrays were flagged not clean, as expected: neither was stopped. The mirror has a write-intent bitmap, so it resynced only the regions marked dirty, in 65 s. The RAID5 array printed the same "starting background reconstruction" line as the mirror, but no md: resync of RAID array md123 line follows it, and when we read its state later that afternoon sync_action was idle with all three members up. It did not resync. Read that kernel line with care: on its own it does not mean a resync is running.

A RAID5 array on the plain resync policy resyncs in full after an unclean stop, and on hard disks that work competes with every VM booting from them. The partial parity log is there to close the RAID5 write hole, and with it the resync is not needed: the kernel documentation says so for an unclean shutdown with all disks available, and the mdadm manual describes the ppl policy as closing the write hole and eliminating resync. We did not run a parity check of the array afterwards. The XFS filesystems on both arrays replayed their logs in under a second.

203 seconds before OpenNebula marked the VMs off#

OpenNebula was up 16 s after the first kernel line, at 16:24:56, and the start unit began in the same second. From then on the helper asked for the state of the first VM about every 5.5 s. OpenNebula still had every VM as running. Then:

# monitor.log
Thu Dec  3 16:28:11 2026 [Z0][HMM][D]: Monitoring host site-a(3)
[...]
Thu Dec  3 16:28:19 2026 [Z0][HMM][I]: Successfully monitored host: 3
# oned.log
Thu Dec  3 16:28:19 2026 [Z0][InM][D]: VM_STATE update from host: 3. VM id: 47, state: POWEROFF
[... 14 more such lines in the same second, 15 in all ...]
Thu Dec  3 16:28:24 2026 [Z0][ReM][D]: Req:3049 UID:0 IP:127.0.0.1 one.vm.action invoked resume, 59

At 16:28:19, 3 min 23 s (203 s) after OpenNebula started, all 15 VMs that OpenNebula had on hv-a, the 14 production VMs and one test VM, were marked POWEROFF in one second. The first resume was accepted five seconds later, 208 s after OpenNebula started. The helper's counter stops at 420. That is one measurement.

The monitoring periods in monitord.conf are the package defaults; rpm -V reports the file unchanged. The first monitoring round began about 3 min 15 s after OpenNebula started, and a 180-second monitoring setting would fit that. We did not confirm which setting is responsible, from the source or from the documentation.

OpenNebula started nothing by itself. Between 16:24:40 and 16:33:00 its log holds 14 VM actions, all resume, all from the unit on the host (IP:127.0.0.1), and no deploy request.

The starts#

2026-12-03T16:28:24+05:30 a-vm-2 started (OpenNebula, boot group)
2026-12-03T16:28:25+05:30 a-vm-3 started (OpenNebula, boot group)
2026-12-03T16:28:27+05:30 a-vm-1 started (OpenNebula, boot group)
2026-12-03T16:28:28+05:30 a-vm-4 started (OpenNebula, boot group)
2026-12-03T16:28:30+05:30 repl-ops-1 started (one)
[... eight more replicas, 21 to 22 s apart ...]
2026-12-03T16:31:45+05:30 repl-app-iot started (one)
2026-12-03T16:32:05+05:30 all replicas running
MilestoneTimeAfter the first kernel line
Last log line before the cut16:21:43
First kernel line16:24:400
OpenNebula started16:24:5616 s
VMs marked POWEROFF16:28:193 min 39 s
First VM resumed16:28:243 min 44 s
Last VM resumed16:31:457 min 5 s
Start unit logs "all replicas running"16:32:057 min 25 s

From the last log line before the cut to "all replicas running" is 10 min 22 s. These are VM starts, not application readiness.

All 14 production VMs started on the first attempt. Two things that were running before the cut stayed off, by design: a throwaway test VM under OpenNebula and a rehearsal sandbox under plain libvirt, neither of which is in the start list.

A second snapshot, compared with the one from 15:59, shows the same hardware definition and the same disk chain for every one of the 14 VMs, and no failed unit on the host. The host differences are not drift: two mirror devices swapped names and one disk changed its letter (everything mounts by UUID), one firewall rule is listed in a different position, and one kernel module was not loaded again.

What Site B saw#

Site B did not lose power. hv-b has been up since 29 November, all 17 of its QEMU processes have start times of 29 or 30 November, and its journal has no VM start, stop or crash line between 16:15 and 17:45. The 13 guests we could ask all report a boot time of 29 November; four were not asked.

  • MongoDB. The primary at Site B marked its Site A member down at 16:22:15.4 and saw it back as SECONDARY at 16:31:22.2. There was no election. In this replica set the Site A member has votes=0, so losing it cannot cost the primary its majority.
  • PostgreSQL. The primary dropped the standby's link at 16:23:04.0, after its 1-minute wal_sender_timeout. The standby at Site A started at 16:29:53.9, logged that it had been "interrupted while in recovery", reached a consistent state by itself at 16:31:05.6 and was streaming from the primary again at 16:35:19.2. We did not look into the 4 min 14 s between the last two.
  • Object storage. One replication attempt failed at 16:30:02. We found no recovery event in its journal. The site's 5-minute check saw the link offline at 16:25:10 and online at 16:35:08; the moment it returned is not recorded.
  • Edge. The edge web server at Site B logged requests in every minute from 16:10 to 16:49, with no response in the 5xx class.

Test 2: WAN outage at Site A#

Both uplinks of Site A's router were disabled for 9 min 59 s; the plan was 10 minutes. We did this on the router and not by pulling cables, so that the return did not depend on a person. Before disabling anything we saved two scheduler entries on the router: one to enable both uplinks at a fixed clock time, and a second that runs at router start-up and enables both, in case the router restarted in the middle. A third uplink exists and has been disabled for months, so there was no other way out.

The uplinks went down at 17:22:02 and the first scheduler entry brought them back at 17:32:01, with no manual step. The start-up entry was configured but never exercised, because the router did not restart. The router's configuration export after the test matched the one before, apart from the export's header line.

This removed every route from Site A to the internet and to Site B at once, and returned them at once. It is not a pulled cable (port link state did not change), not a degraded link, and not a long outage.

Timeline#

TimeEvent
17:21:09Front-end: last good report from Site B, 17 VMs running
17:22:02Both uplinks disabled
17:22:12.3MongoDB primary at Site B marks the Site A member down
17:23:02.0PostgreSQL primary drops the standby's link (replication timeout)
17:24:15Front-end begins a monitoring round for the Site B host
17:27:16Front-end: first errors monitoring Site B's two datastores
17:28:34Front-end: Start monitor failed for host 4: Could not update remotes and Error monitoring Host site-b (4):
17:30:02Object storage at Site B: one replication attempt fails
17:30:08Front-end: All hosts from 'BRIDGE_LIST' are offline, error or disabled
17:32:01Scheduler re-enables both uplinks
17:32:16.3PostgreSQL standby: started streaming WAL from primary
17:32:16.4MongoDB: Site A member back as SECONDARY
17:32:41Front-end: Successfully monitored host: 4, 17 VMs reported running
17:35:08Site monitoring sample: object-storage link still offline
17:40:07Site monitoring sample: object-storage link online

How the front-end treated the remote host#

Thu Dec  3 17:21:09 2026 [Z0][HMM][I]: Successfully monitored host: 4
Thu Dec  3 17:24:15 2026 [Z0][HMM][D]: Monitoring host site-b(4)
[...]
Thu Dec  3 17:28:34 2026 [Z0][MDP][W]: Start monitor failed for host 4: Could not update remotes
Thu Dec  3 17:31:45 2026 [Z0][HMM][D]: Monitoring host site-b(4)
Thu Dec  3 17:32:41 2026 [Z0][HMM][I]: Successfully monitored host: 4
[...]

The front-end's first errors were at 17:25:27 and 17:25:56, 3 min 25 s after the cut, when it could not reach the public marketplaces on the internet. The first errors about Site B came at 17:27:16, 5 min 14 s after the cut, when monitoring of Site B's two datastores began to fail. It logged the host itself as failed at 17:28:34, 6 min 32 s after the cut. In this run that happened when its attempt to restart monitoring over SSH, begun at 17:24:15, gave up.

It monitored the host successfully again at 17:32:41, 40 s after the uplinks returned, and reported all 17 Site B VMs as running at that first contact. One of OpenNebula's two stock hooks ran when the host returned and did nothing, because it acts only on VMs that carry AUTOSTART. The log holds no VM action and no deploy request between 17:21 and 17:45.

We did not record what the front-end displayed for the 17 VMs during the four minutes the host was in error.

Against the 8-minute management-path cut in the guide:

Management-path cut, 29 NovWAN outage, 3 Dec
What was cutSSH from the front-end and the monitoring port, on the Site B host onlyEvery route out of Site A
Length8 min9 min 59 s
Front-end logs the host as failedabout 7 min6 min 32 s
Front-end good again after the path returnedabout 2.5 min (seen through a 30 s poll)40 s
Replication between the siteskept flowingstopped, then resumed
Production VM processes at both sitesunchangedunchanged

On the front-end's side the behaviour is the same: it logged the host as failed after six to seven minutes and sent no VM action. Replication differs, as the table shows. The faster recovery is most likely only a matter of where in its retry cycle the front-end was when the path returned. Two runs do not make a typical figure.

The VM processes#

All 14 production VMs at Site A kept the same QEMU process: we compared process ID and start time before and after, and kept the list from before. The front-end and its own host talk locally, so in this run the site that hosts the front-end lost its WAN without its own VM processes being touched. At Site B, hv-b did not restart and all 17 QEMU processes are unchanged.

Replication#

MongoDB. The primary marked the Site A member down 10 s after the cut. No election and no step-down. The member was SECONDARY again at 17:32:16.4, 15 s after the uplinks returned.

PostgreSQL. synchronous_standby_names is empty, so this configuration does not require the standby to acknowledge a commit. The standby retried on its own (these lines are UTC; add 5 h 30 min):

2026-12-03 11:53:01.963 UTC [2264] FATAL:  terminating walreceiver due to timeout
2026-12-03 11:55:12.864 UTC [3207] FATAL:  could not connect to the primary server: [...] Connection timed out
[... two more such lines, about 131 s apart ...]
2026-12-03 12:01:46.081 UTC [3223] FATAL:  could not connect to the primary server: [...] Connection timed out
2026-12-03 12:02:16.316 UTC [3236] LOG:  started streaming WAL from primary at 33C/F2000000 on timeline 2

The standby's connection failures were about 131 s apart. The last one was logged at 17:31:46, 15 s before the uplinks returned, and streaming began 30 s after it, at 17:32:16.3. So the 15-second recovery depends on where in that cycle the link happened to return. We did not test other timings.

Object storage. One replication attempt failed at 17:30:02. We found no recovery event in its journal, and its own downtime counter read zero afterwards. The site's check samples the link every 5 minutes: offline at 17:35:08, which is 3 min 7 s after the uplinks returned, and online at 17:40:07, 8 min 6 s after. The link returned somewhere between those two samples. The object whose replication failed, in both tests, is one small operations file that is rewritten every 15 minutes, not user media. That version is now at Site A with the same version ID and checksum; when it arrived is not recorded.

One read at Site B involved Site A. At 17:30:25 the object store's journal at Site B shows a read request with an error: its lookup of the same object on the Site A replica timed out (times converted to IST, fields trimmed).

17:30:25 [...] API: GetObject(bucket=[bucket], object=[id])
17:30:25 [...] Error: Head "http://[site-a replica]/[bucket]/[id]": [...] connect: connection timed out [...]

We read this as the store looking on its replication target for an object it did not find locally. We have not confirmed that against the vendor's documentation. It is the one place in the records where a request served at Site B touched Site A. How long it waited and what the caller received were not recorded.

Site B during the outage#

We searched the environment variables of the 22 containers on six application guests at Site B for a Site A address and found none, and the edge web server has no upstream at Site A. One further guest with containers was not scanned, and configuration files were not searched.

Across both test windows together (16:10 to 16:49 and 17:15 to 17:49) the edge logged 15,212 responses in the 2xx class, 16 in 3xx, 410 in 4xx and none in 5xx, with no minute empty. Of the 4xx responses, 103 were HTTP 403 to one client in one minute during the WAN outage; we did not look into the cause.

Those counts include monitoring probes, and this was not a quiet system: the container records show application containers replaced at Site B three times between 16:10 and 17:50, which we read as three deploys, one of them during the WAN outage. The counts show that the edge kept answering. They do not show what any single user experienced.

What went wrong, or was not what we expected#

  1. The start sequence depended on a step nobody had tested. It worked: the wait was 203 s against a limit of 420 in the helper. One boot is not a margin you can plan on.
  2. The main VM lost its head start. Our start script waits until 180 s have passed since the script began, so that the first main VM, which starts about 60 services, boots before the replicas. After the cold boot the wait for OpenNebula had already used that time, and the first replica started 6 s after it. On the planned reboot of 28 November the gap was 2 min 59 s. All 14 VMs still started; we did not isolate what losing the stagger cost. The script is not fixed yet.
  3. The kernel says "starting background reconstruction" for an array that then does not resync. Easy to misread with a site down.
  4. More guests had a failed unit after the boot than before. Seven of the 13 guests the snapshot can log in to showed one failed unit afterwards, against two before. Our test notes record NetworkManager-wait-online on six replicas, while ten guests were starting on the same disks. No guest was unreachable. Services that need the network at start and do not retry could fail in that situation.
  5. We could not find the moment object-storage replication recovered. If you need that time, log it yourself.
  6. One read at Site B involved Site A, as described above.
  7. We first read a monitoring alert's time as a recovery time. Our redundancy check samples every 5 minutes and one sample decides, so an alert's time is a sample time. The site's alert also said the internet was "down for 9m37s"; that is one probe's own flip-to-flip time. The outage was 9 min 59 s by the router's log. Use each system's own log for recovery times.
  8. The plan was fuller than the test. It called for loggers started before each cut, a vantage point outside the site, qemu-img check before and after, a note of the machine's power-on setting, and a 15-minute outage. We used the records both sites already keep, ran 9 min 59 s, and did not run the disk check or record the power-on setting. The cost is in the "not proven" section below.

What this means if you run the same setup#

  1. Starting VMs through OpenNebula after a cold boot meant a wait. On 7.4.1 with default monitoring periods, this boot took 203 s before the VMs were marked POWEROFF and 208 s before the first resume was accepted. A unit that starts VMs through onevm resume must poll for that state and allow well more than that.
  2. A site that must not wait can start locally. Our remote site does: its host runs virsh create on each VM's last deployment file and needs no front-end, as the guide describes. Site A goes through OpenNebula because the front-end is on the same machine, and pays the wait.
  3. Count any stagger from the first successful start, not from script start.
  4. Know your RAID5 array's consistency policy before the power goes, and check it by reading consistency_policy and sync_action, not the boot message.
  5. Do not use the front-end as an alarm. Its first error about the remote site came more than five minutes into the outage, and it never acted on the remote VMs. For two sites with no shared storage that restraint is what we want.
  6. The remote site's data services did not depend on the other site in these tests because of how they are laid out, not because of OpenNebula: the primaries are local, the replica has no vote, and PostgreSQL does not wait for the standby. The object store's read is the exception we found.
  7. A scheduled re-enable saved on the router let us run the WAN test without anyone standing at the router. It worked in this run. The start-up backstop was configured and not exercised.

What this did not prove#

As of 3 December 2026. Do not read any claim above as covering these.

Not run at all:

  • A boot of the Site B host while the link to Site A is down. It is a real outage of production at Site B and will be run off hours.
  • A power cut at Site B. The guide's open item says "either host"; the Site B half is still open.
  • A pulled cable, a degraded or flapping link, the switch to the backup line, or a WAN outage at Site B.
  • A WAN outage longer than 9 min 59 s. The front-end's failed state was observed for about four minutes.
  • A power cut during heavy writes, or a second cut during the boot.

Run, but not measured:

  • Whether the Site A machine powers on by itself when power returns. This post starts its clock at the first kernel line.
  • What individual users experienced, and reachability from outside either site. No request was driven through an application from outside in either test.
  • When Site A's public pages and its management interface were reachable again from outside after the power cut. This post gives the time OpenNebula and the VMs were up, not that.
  • What the front-end displayed for Site B's VMs while the host was in error.
  • The moment object-storage replication recovered, in either test, and when the object whose replication failed reached Site A.
  • Disk image integrity by tool. qemu-img check was not run, and no parity check of the RAID5 array was run. What stands in their place: all 14 VMs booted, the host filesystems replayed their logs, and the disk chains match the baseline.
  • Recovery messages inside the guests, apart from the PostgreSQL standby, and why that standby took 4 min 14 s to start streaming after it was ready.
  • Guest boot times for four Site B VMs. Their QEMU processes did not change; the operating system inside was not asked.
  • That no production VM carries AUTOSTART, on the day. Four were sampled; the full list was checked during earlier work.
  • Virtual TPM state after a power cut. No VM that went through the cut has a TPM.
  • Why the first monitoring round came about 3 min 15 s after OpenNebula started, and how much that wait varies from boot to boot.
  • Who ran the three deploys at Site B, and why one client received 403 responses.

Evidence#

As of 3 December 2026. Everything below was run by NG-NeXT on the two production sites described in the guide. Versions: OpenNebula 7.4.1 CE, MariaDB 10.5, AlmaLinux 9.8 (kernel 5.14.0-687.66.1.el9_8), PostgreSQL 16.15.

ClaimStatusBasis
Power cut at Site A: 2 min 57 s between the last log line and the first kernel line; OpenNebula started 16 s after the kernelTested hereHost journal, both boots
15 VMs marked POWEROFF 203 s after OpenNebula started; first resume 5 s later; 14 VM actions, all resume, no deployTested hereoned.log, monitor.log
14 production VMs started on the first attempt, the last 7 min 5 s after the kernel; same hardware definition and disk chain as beforeTested hereStart unit log; before and after snapshots
RAID5 with a partial parity log flagged not clean, no resync; RAID1 with a bitmap resynced in 65 sTested hereKernel log, sync_action, consistency_policy
With a partial parity log, a resync is not needed after an unclean shutdown with all disks availableVerified against a primary sourceLinux kernel documentation and the mdadm manual, linked above
WAN outage of 9 min 59 s; scheduler re-enabled both uplinks; router configuration matched afterwards apart from the export headerTested hereRouter log and two configuration exports
No QEMU process changed at either site during the WAN outageTested hereProcess ID and start time, before and after; Site B host journal
Front-end: first datastore errors at 5 min 14 s, host logged as failed at 6 min 32 s, no VM action, host monitored again 40 s after the uplinks returnedTested hereoned.log, monitor.log
MongoDB member and PostgreSQL standby back 15 s after the uplinks returned; no electionTested hereMongoDB primary log; PostgreSQL primary and standby logs
Object-storage link returned between 17:35:08 and 17:40:07Tested here, as a bound onlyStorage journal; 5-minute monitoring samples
Edge at Site B: 15,212 2xx, 16 3xx, 410 4xx, 0 5xx, no empty minute, across both windowsTested hereEdge access log, counts only
A 180-second monitoring setting explains the wait before the first monitoring roundOur inference, not confirmedTiming only
The object store looked on its replication target for an object it did not find locallyOur reading of one log entry, not confirmedStorage journal
Site B power cut, Site B boot with the link down, pulled cable, long outage, user experience, outside reachability, qemu-img check, TPM stateNot testedSee "What this did not prove"

FAQ#

Does OpenNebula restart VMs by itself after the front-end host loses power?#

It did not in this run. As of 3 December 2026 on OpenNebula 7.4.1 CE, with no AUTOSTART attribute on the VMs we sampled, OpenNebula started nothing on its own: between boot and the last VM start its log holds 14 VM actions, all of them resume requests sent by a systemd unit on the host. OpenNebula's part was to notice that the VMs it still recorded as running were gone and to mark them POWEROFF.

How long does OpenNebula take to mark VMs POWEROFF after a cold boot of the front-end?#

In this run, 3 min 23 s (203 s) after the OpenNebula daemon started, with the monitoring periods left at the package defaults. All 15 VMs OpenNebula had on that host (14 production VMs and one test VM) were marked POWEROFF in the same second, and the first resume was accepted five seconds later. This is one measurement on one boot, not a typical figure.

Does a Linux md RAID5 array resync after a power cut?#

It depends on its consistency policy. In this run a RAID5 array of three hard disks with a partial parity log (consistency policy ppl) was flagged not clean at boot and did not resync. A RAID1 array with a write-intent bitmap on the same machine resynced in 65 seconds. The kernel printed 'starting background reconstruction' for both, so that line alone does not tell you a resync is running.

What happens to VMs at a remote site when the OpenNebula front-end site loses its WAN?#

In a 9 min 59 s outage of every uplink at the front-end site, the QEMU processes of all 17 VMs at the remote site were unchanged. The front-end logged the remote host as failed 6 min 32 s after the cut, sent no VM action, and monitored the host successfully again 40 seconds after the uplinks returned. The 14 production VMs at the front-end site itself also kept the same processes.

How quickly does database replication between the sites recover after a WAN outage?#

In this run the PostgreSQL 16 streaming standby and the MongoDB replica-set member were both back 15 seconds after the uplinks returned, with no manual step. For PostgreSQL that figure depends on timing: the standby's connection failures were about 131 seconds apart, and its previous attempt had failed 15 seconds before the uplinks returned. For object-storage replication the moment is not recorded: its link was still reported offline 3 min 7 s after the uplinks returned and online at the next sample, 8 min 6 s after.

No. The power cut was at the front-end site only, and the boot of the remote host while the inter-site link is down was not run. Both remain not proven.

Security check

Talk to us directly.

We reply within one business day. The site assistant answers when it is available.