Storage (shadows)
A shadow is a guestâs replicated copy on the recovery side of a pair: a qcow2
file, or a native ZFS, LVM, or Ceph/RBD volume, depending on the
storage you chose. Open it from Storage under
Set up in the sidebar (the old /shadows address still works). The Storage page shows
every shadow Asternodis can find on the recovery side and classifies each one. Nothing on it is
ever deleted automatically: you decide, and a delete appears only when the server has proven it
safe. The page opens with a bar of space by kind (Active, Kept replica, DR copy, Held by an
operation, Review only, Orphaned point, Leftover, Orphan) with each kindâs size and count, and
the total beside it. Click a kind in the barâs legend to filter the list to it. What am I
looking at? under the bar opens a short explanation, and Recovery storage capacity lists how
full each recovery storage is (it opens by itself when one is at 75% or more):
- Active: part of a live replication (a protected guest points at it).
- Orphan: sitting in storage with nothing referencing it, such as a guest you stopped protecting, a leftover from a moved or re-seeded shadow, or a shadow from a pair that no longer exists.
- Kept replica: the replica you kept when you stopped protecting a guest. It still carries its recovery points, and protecting the guest again resumes on it. Deleting it destroys those points too, and the confirm names them; a batch delete asks the same.
- Leftover clone: a stray clone from an interrupted failover or DR test. Safe to delete; deleting it frees the storage and unblocks that guestâs replication. Listed under the Leftovers filter chip, whose count includes leftover DR tests. The same clone name is also how a running operation reads or boots a copy: a recovery-point content check, a capture, a DR test or a copy-path failover. So a scan that lands inside one of those shows it as Clone in use instead (with the operation named in the row): it has no Delete and is removed when that operation finishes.
- DR copy: the recovered guest a failover promoted on this site, kept after an Abort failover or a failback so you can still inspect what the guest looked like here. It is stopped; deleting it destroys that guest and its disks on this site only. Has its own filter chip (DR copies) and its own entry in the space bar (DR copy). A copy that is still in use (its guest is failed over or mid-operation, it is the copy a running DR test booted, or it is not provably stopped, meaning it is running or its power state could not be read) is badged DR copy · in use instead, with a note saying which and no Delete: Asternodis will not offer to destroy a guest it cannot prove is stopped.
- A tagged guest Asternodis cannot show it made: a stopped VM or container that carries an
Asternodis tag (
asternodis-failover,asternodis-drtestorasternodis-restoresrc) is offered for deletion only when something Asternodis itself keeps shows it made the guest. A Proxmox tag is free text that anyone with edit rights can set, and a clone of a DR copy inherits it, so a tag alone never proves ownership. The proof is either a recovery target that still uses that VMID for the guestâs failover copy (its own VMID or its recovery-VMID override), the VMID a DR test or an in-place restore derives for a protected guest, or the record Asternodis writes when it creates a DR copy, DR-test copy or restore scratch VM (node, VMID and kind). That record is kept when you stop protecting the guest, and it is removed when Asternodis destroys the copy or a scan finds the guest gone. A guest with none of these is listed with a note and no Delete, and it is not counted as an orphan. This includes a copy made by a build older than the record whose guest is no longer protected: if it is not needed, remove it in Proxmox. The DR gateway appliance, and a guest that wears more than one Asternodis marker, are never offered here. Before it destroys a copy, the delete also re-reads the guestâs tags on the node and refuses if they are no longer the kind the copy was proven under. - Leftover DR test: a DR-test copy still on the recovery node after its test ended without tearing down. It is debris, not a retained copy, so it is listed under Leftovers rather than DR copies. Safe to delete once it is confirmed stopped; one that is still running, or whose power state could not be read, reads DR copy · in use, with a Stop DR test link.
- Leftover restore scratch: the scratch VM of an in-place restore (named
restoresrc-<vmid>) that an older build left on the recovery node without its Asternodis tags, so nothing could tear it down. It is recognised only when its name, its VMID (the one that restore derives for that guest and pair) and a stopped state all agree, and it is never removed automatically. Until it is deleted, the next restore of that guest is refused. Builds that include the fix tag these VMs and remove them when the restore ends. - Reverse-sync scratch: staging the reverse lane writes on the primary while a guest is failed over. A row here means the guest is home again and the staging outlived it (an interrupted failback). Safe to delete; the next failover recreates it if needed.
- Orphaned point: a retained recovery-point snapshot a removed pairing or a re-seed left behind. Its row names the snapshot on a line of its own, because its location is the base volumeâs name plus a suffix and a narrow column can hide exactly the suffix (a re-seed recreates the shadow; on LVM-thin and Ceph the points are cleaned up with it, and any that linger are listed here to delete).
- Recovery point (container): on LVM-thin recovery storage, a containerâs retained recovery point is a snapshot of its replica volume that carries Asternodisâs retain marker. Each is listed under its replica with its state in the row. A point that a recovery point still records, or the newest transport snapshot of the replica (the base the next replication cycle sends against, which can carry the marker too), is protected and has no Delete here; manage points on the guestâs Recovery points tab. A leftover that nothing records any more (for example after a re-seed dropped its point rows) can be deleted, one snapshot at a time, and the delete re-checks the marker and the newest-snapshot rule on the node first. A snapshot whose state cannot be proven, such as a guest whose type or point list could not be read, is listed with the reason and no Delete. Deleting the replica itself still removes every snapshot under it, and its confirmation says how many.
- Stale reverse baseline: on LVM-thin or Ceph recovery storage, the snapshot a failover takes of a guestâs shadow so a later failback can prove the delta and skip a whole-disk reverse copy (ZFS needs none: the DR copyâs origin snapshot is its baseline). Failback removes it, and so does deleting the DR copy an Abort failover kept. One that outlives both is listed here once the guest is home; deleting it touches neither the shadow nor the guestâs recovery points.
- Leftover clone-seed snapshot: the snapshot a throwaway clone was taken from, listed only once its clone is provably gone. It only holds space, and on Ceph it is protected, which also stops its parent image being removed. Safe to delete.
Each row shows the itemâs name, What it is, its Storage, its Size and, at the end, the action you can take on it (Delete, or the reason there is none). A row also carries the shadowâs backend (qcow2 file or volume), location, age and owning pair. A directory/NFS/CIFS (file-backed) shadow names its storage like any other. A guest re-seeded onto the same storage address shortly after its old shadow was deleted stays listed as Active throughout.
Some artifacts live on the source side and are listed here too, read across the pair from either site:
- Replication snapshot: the snapshot on a guestâs own storage that the next incremental is computed against. In use while the guest is protected; dead weight once it is not.
- Orphaned disk: a guest-shaped volume on the node that holds the guestâs configuration,
which that configuration references nowhere (not attached, not as an
unusedNentry, not under a snapshot). Proxmox would list it as unused after a rescan; it only holds space. Deleting it re-checks the configuration on the node first, so a volume the guest has attached since the scan is refused. While a failback is seeding a guestâs new disks on that node they look exactly like this, so they are withheld until the failback finishes, and if that record cannot be read, the delete is refused rather than guessed. - Disk of a deleted DR copy: a guest-shaped disk on the recovery cluster whose VM or container
no longer exists on any node: a ZFS volume, an LVM volume, a Ceph RBD image (in its namespace, if
the storage uses one), or a
vm-<id>-disk-<n>.raw/.qcow2file under<storage>/images/<id>/on a directory, NFS, CIFS, CephFS or GlusterFS storage. A storage that is not mounted or cannot be read on a node is reported as a coverage gap, never read as empty. Deleting a DR copy removes the disks its configuration names; a volume of the same id that was not attached to it stays behind, and no other kind describes it. It is offered for deletion only for an id one of your pairs uses (a protected guestâs failover id, its DR-test copy or its in-place restore), and not while that guest is failed over, in an operation, or being seeded by a failback. A volume of an id no pair here uses is listed as Disk, review with its reason and no Delete button. The delete checks again on the node that no guest has that id, that no configuration of any guest names the volume, that it has no snapshot (a point or replication anchor), and that nothing has it open, and it never touches a volume carrying Asternodisâs own name. For a Ceph image it also checks that nothing has it mapped or watched on any node and removes it with a plainrbd rm; for a file it checks that nothing has it open, that it has no internal qcow2 snapshot and that no other image is backed by it, and removes only that file. - Old home disk: a guestâs own disk left on the node it used to live on by a
failback to a chosen node (a full copy went to the new node; the old one is not
deleted). That route copies only guests whose disks are on storage the home node alone can
read (a non-shared ZFS pool, node-local LVM-thin, or a local directory), so a guest moved
over shared storage leaves no old disk behind.
Offered for deletion only when Asternodisâs own record confirms the guest now lives
on another node. The same shape of finding for a guest Asternodis does not protect is shown as
an Unreferenced disk: listed for review, never offered for deletion, and left out of the
orphan count and the space total. Copies kept by Proxmoxâs own storage replication (a job in
replication.cfgthat targets the node, or a dataset carrying__replicate_snapshots) are a guestâs standby disk, not a leftover, and are never listed. - Superseded overlay: a reverse-lane overlay on the guestâs home storage that a newer one
replaced. Nothing prunes these, and one may hold the only copy of a failed-over windowâs writes, so
Asternodis never removes one itself: it is listed for review while the guest is protected, and
becomes deletable here once it is not.
The scan reads each oneâs contents on its node (
qemu-imgunder a time limit, 10 s for the snapshot list and 20 s for the extent map), because the read can stall on a network share. If a read fails or runs past its limit, the row says it could not check whether the overlay holds anything of its own and never shows it as empty; the next scan checks again. The same time limit applies to the check a delete makes first. - Merged overlay: the safety copy a failback keeps after merging its overlay into the production disk, one per disk. Its contents are already in that disk; like a superseded overlay, it becomes deletable here once the guest is no longer protected.
- Leftover scrub overlay: when a recovery pointâs filesystem check has to replay a running
guestâs journal (a file-hosted replica, read through a read-only view of the point), it does so on
a small throwaway layer inside the guestâs replica directory (
scrub-ovl-...) and removes it when the check ends. If the check could not clean up, for example because the controller restarted mid-check, the layer is listed here with its guest, point, size and age. It holds nothing the point or the replica needs, and neither is touched when it is deleted. Asternodis never deletes one for you, and a later check never reuses or removes it. The delete checks on the node that it is one of Asternodisâs own, that it is not brand new, and that no process or nbd device is using it, and refuses otherwise. One whose state cannot be proven is reported as a gap in the scan, not hidden.
Scanning
A background scan sweeps the recovery storages every 10 minutes (the first runs about two minutes after the controller starts) and reclassifies every shadow. You can also trigger a scan on demand with Scan at the top of the page. The page shows the current scan status (including what itâs scanning right now), a one-line summary of the last finished scan under the space bar, a collapsible Scan history of past scans, and filter chips for All, Orphans, Leftovers, Kept replicas, DR copies, Recovery points and Active.
Only one scan runs at a time on a site. A scan requested while another is running (Scan, or
one that starts after a protect, an unprotect, a failback or a delete) does not start a second one beside it
and does not join the one in progress, because that one may have listed an artifact a delete has just removed:
every request made meanwhile shares one follow-up scan that starts when the running one ends. The answer to
Scan says when it was queued this way. The 10-minute background scan is skipped, not queued, while one is
running or waiting. A scan still running after 5 minutes is logged and marked overrun in the scan history data
(GET /api/recovery/shadow-scans), and one that runs 30 minutes is cancelled and recorded as interrupted.
A scan that canât fully cover every storage (a node thatâs briefly unresponsive, a pool that could not be listed) says so on the page: a storage it could not read is reported as not covered, never as clean.
Shadows are listed flat, one row per replica, with a search box beside the filter chips: type any part of a guest name, a VMID, or a storage ID to narrow the list. On an estate with a lot of replicas that is usually faster than scrolling, and it searches every column shown rather than just the guest.
Shadows physically exist only on the recovery side of a pair, so from a source site the Storage page reaches across the encrypted peer link to show the replicas held at the recovery site. You get one view of every replica across both sites.
Reclaiming space from orphans
Orphaned shadows still consume storage. Delete an orphan straight from the page to free its space, or press Reclaim at the top of the page. Its label carries the size it would free (for example Reclaim 12.4 GBâŠ, or Reclaim at least that size when some items could not be measured), and it appears only when the server says something can be removed. It opens the same confirmation as a selection, listing exactly what will be deleted before anything is. Asternodis removes the underlying qcow2 files or frees the ZFS/LVM volume. For a Ceph/RBD-backed shadow, the delete confirms no node in the cluster still has the image mapped before it removes anything.
Because a retired pair can leave dozens of orphans behind, you can select many at once and clear them in a single bulk delete, with a per-kind breakdown before you confirm, instead of clicking through them one by one. A shadow whose size couldnât be read shows as not measured. The space barâs total then reads at least the measured amount and says how many items could not be measured and count as 0, so an unmeasured shadowâs space is never silently counted as zero.
A bulk delete runs in an order that keeps each itemâs check valid: snapshots and clones first, then a guestâs orphaned and old home disks, then the base volumes, then a DR copy, and last the disks of a deleted DR copy. Selecting a DR copy together with its orphaned disk therefore removes the disk first, while the copyâs configuration still proves it is an orphan.
Active shadows canât be deleted here. Every delete, single or bulk, is re-verified against a fresh scan and refused for anything a live replication still uses, so you can never cut a protected guestâs recovery copy out from under it, even if the list was captured a few minutes before you clicked. If the acknowledgement of a delete is lost on its way back to your browser, the page says so and points you at Operations in the sidebar to see what actually happened, rather than inviting a retry of work that may already have run.