Skip to content

Using the interface

This page walks you through the SnapRAID UI: finding your way around, reading the dashboard, running SnapRAID commands and following their output.

SnapRAID UI dashboard

Layout

The sidebar on the left holds everything that is not specific to one page:

Element What it does
Active array Switches the SnapRAID array that all pages work on. Hidden arrays are not listed. The dropdown also has Configuration and Manage arrays. You can't switch while a job is running.
Overview Links to the pages Dashboard, Integrity, SMART, Schedules, Logs, Notifications and Automation.
Files Changes, Protected files and Duplicates: the files on the data disks of the active array, see Files.
Array Configuration opens the page with the snapraid.conf of the active array, Manage arrays lets you add, set up, rename, show or hide arrays. See Disks & configurations.
Backup Downloads or restores all settings in one file, see Backup and restore.
Animations Off, Subtle or Strong, see below.
User box Shown only when the login is enabled: your username and a Log out button. See Security.

Your browser remembers the selected configuration and whether the sidebar is open. Below 1024 px (phones and tablets) the sidebar is hidden and opens over the page from the button at the top left; the version is shown at its bottom.

If no configuration is set up yet (or all are disabled), the dashboard shows Welcome to SnapRAID UI with a button to Manage arrays.

The bar at the top of every page shows, from left to right:

  • Toggle sidebar (Ctrl/⌘+B)
  • where you are: the name of the active configuration and the current page
  • Run a command…, which opens the command palette (Ctrl/⌘+K)
  • while a job runs: a chip such as Sync running with its progress in percent; click it to go back to the dashboard
  • the Theme menu and the language menu (Switch language)

On a phone

Below a width of 768 px the sidebar turns into a panel that slides in from the left; open it with the sidebar button in the header. On smaller screens Run a command… is a search icon. The dashboard table scrolls sideways, and on the Logs page the list and the selected log take turns instead of sitting side by side.

Command palette

Press Ctrl+K (⌘+K on a Mac) or click Run a command… in the header. Type to filter, pick an entry with the arrow keys and Enter.

Command palette

Group Entries
SnapRAID commands Sync, Scrub, Check, Touch. Picking one opens the dashboard and starts the command there, including its dialog (for example the sync preview). Disabled while a job is running.
Navigation The pages from the sidebar, including Configuration. Integrity is also found with status, Changes with diff, undelete, fix or recover, Protected files with list and Duplicates with dup.
Arrays Switch to "…" for every other shown array, Manage arrays and Backup
Settings Theme: Light / Dark / System and Animations: Off / Subtle / Strong

Pool is only available in the dashboard's More commands menu, when the config has a pool directory.

Dashboard

The dashboard shows the state of the active configuration. Under the page title, As of … tells you how old the shown status is; the refresh button next to it runs snapraid status again.

[!NOTE] The last status is cached in your browser for up to 24 hours. After a reload, or while a job holds SnapRAID's lock, the dashboard shows that cached status instead of an empty page.

Summary cards

Card Shows
Array health The overall state, see the table below
Last sync When the last sync of this configuration ran, its result (Succeeded, With warnings, Failed, Aborted, Incomplete) and a Log link to its log. Marked Overdue after 7 days. While a sync runs: Running now.
Last scrub The same for scrub, marked Overdue after 30 days. Below it, the scrub coverage: how much of the array was verified since its last sync (N% verified) and the age of the oldest verified block (Oldest block: N days).
Next job The next enabled schedule for this configuration, or No schedule with a link to Set up a schedule

The last sync and scrub are read from the logs. If no log is left (for example after cleaning up old logs), the card shows No log instead of a date.

The Array health card can show these states, the most urgent one wins:

State Meaning
All good Parity complete, no bad blocks, sync and scrub recent enough
Sync overdue, Scrub overdue, Sync and scrub overdue The last sync is more than 7 days old, the last scrub more than 30 days, or some blocks were last verified more than 120 days ago. Old blocks are not flagged while recent scrubs (successful, at most 30 days old) are working through them; the scrub card then says Catching up: each scrub verifies the oldest blocks first.
Disk not available A data disk's directory is missing or empty although SnapRAID knows files on it, or a parity file is gone. The disk is most likely not mounted. Scheduled jobs are skipped until it is back, so no sync removes its files from parity
Filesystem degraded A disk's filesystem lost one of its devices (btrfs, bcachefs or mdadm across several devices). The data can still be read, but the filesystem has no redundancy of its own left. SnapRAID 15 reports it in every device command; the dashboard learns it from the power state check and the SMART read. See SMART & disk health
Disk failing SMART rates a disk as critical, for example a failing pre-failure attribute or a high failure probability. See SMART & disk health
Disk changed A disk is on another filesystem than at the last sync (its UUID changed). Expected after replacing a disk, the next sync records the new one; otherwise check that the right disk is mounted
Sync incomplete Blocks without parity (an interrupted sync), or the last sync did not succeed
Errors found SnapRAID reports bad blocks or another error
Job running SnapRAID is busy; the status is updated when the job has finished
Status unknown The status could not be read, for example because no sync has run yet

Notices and suggested actions

When there is something to do, a notice above the cards offers the matching action:

  • Disk not available or Disk changed: one line per affected disk, e.g. d3: /mnt/disk3/ is empty, but SnapRAID knows 1,204 files on it. The disk is probably not mounted.
  • Filesystem degraded: the affected disks, and what to do: reconnect or replace the missing device and repair the filesystem.
  • Disk failing: the disks SMART rates as critical, with a link to the SMART details.
  • Overdue sync or scrub: Start sync / Start scrub, and Set up a schedule if no enabled schedule scrubs this configuration.
  • Sync incomplete: Run sync again and a link to the log of the failed sync.
  • Bad blocks: Repair and verify restores the bad blocks from parity (fix -e) after a confirmation, and then checks them again (scrub -p bad), which clears them once they are good. The scrub only follows a successful repair, and only if no other job started in between. Verify only (scrub -p bad) runs the check alone, e.g. after a repair done by hand.
  • Files without sub-second timestamps: Run touch, so SnapRAID can reliably detect moved and copied files (snapraid touch).

Disks

The Disks card lists every data and parity disk of the configuration. The header line sums up the array (… protected · … free), and SMART details opens the SMART page.

Column Content
Disk Name and path from the config. A dot shows the power state: green for Active, light green for Idle, an empty ring for Standby (spun down).
Type Data or Parity 1, Parity 2, …
Usage Fill level of the filesystem. Yellow from 85 % (Filling up), red from 95 % (Almost full). Parity disks use a purple bar, because a parity file fills its disk by design.
Files Number of files on a data disk; size of the parity file on a parity disk. Left out when the card is narrow (tablets), so Status stays in view
Free Free space; hover for the total size
Status The temperature from SMART, with a small chart of the last 30 SMART reads (hover for the range): yellow from 45 °C, red from 50 °C. Then notes such as fragmented files, wasted space, the estimated fill-up date (full in about N days) and standby. A disk that is not available is marked Missing or Not mounted?, one on another filesystem Other filesystem, one whose filesystem misses a device Degraded, and one SMART rates as critical SMART critical

The power state is checked once a minute in a way that does not wake sleeping disks, and not at all while a job is running. Some controllers can't report it; the dot is then left out.

The ⋯ menu next to a disk spins it up (snapraid up -d <disk>) or down (snapraid down -d <disk>), Spin up/down in the header does the same for all disks of the array. Spinning up all disks before a long job saves the wait for each disk; spinning one down helps when you know it will not be used for a while. Both are refused while a job runs. If the disk can't be controlled, for example without smartctl or behind some USB bridges, the message SnapRAID gave is shown. For spinning down automatically, see Automation.

For parity disks the Status column checks whether the parity can still grow as large as the fullest data disk, which SnapRAID needs for a sync:

Note Meaning
Room for the fullest data disk (… to spare) Everything fine
Tight: only … left beyond the fullest data disk Less than 5 % of the fullest disk's used space is left
Too small: parity can grow to …, but … uses …. Sync will fail. The parity disk is too small; use a larger one or add a parity level
Parity disk not reachable The parity path could not be read
Parity file not created yet No sync has created the parity file so far

Once at least two days of usage are recorded, a History tab next to Table shows how much protected data you had over time and how fast free space shrinks (last 90 days). A disk gets the full in about N days badge when the trend says it fills up within a year; within 60 days the badge turns red. How the history is recorded and the forecast is calculated is explained in SMART & disk health.

Running commands

The buttons at the top right of the dashboard start the two commands of daily use, Scrub and Sync. The More commands menu (⋯) holds the maintenance: Check, Touch and, when the config has a pool directory, Pool. What only reads the array has its own page: the status on Integrity, diff, file list and duplicates under Files.

The Sync button turns green when a sync is due. Only one SnapRAID job can run at a time: while one is running, all command buttons are disabled, on every open browser tab.

Command reference

Command What happens SnapRAID call
Sync Opens Prepare sync, see Sync sync, sync -h
Scrub Opens Start scrub with a choice of plans, see Scrub scrub, scrub -p …
Status The Integrity page; the refresh button next to As of … runs it again status
Diff Opens Changes since the last sync diff
Check Opens Verify data, see Check check, check -a, check -d …
Touch Starts right away: gives files without a sub-second timestamp one touch
Pool Starts right away: rebuilds the links in the pool directory. Needs a pool directory in the config, see Disks & configurations. pool
Duplicates Opens Duplicates dup
File List Opens Protected files list

The Check Report has a Filter by path… field. Status, Diff, File List and Duplicates only read data and don't write a log. Sync, scrub, check, restore, touch and pool run as jobs with live output and a log entry.

Sync

Before a sync, Prepare sync runs a diff and shows what will be written to parity: the number of new, modified, moved, copied, restored and deleted files.

  • If files were deleted, a red warning lists them (the first 20, then … and N more) and the start button turns red. After the sync they can no longer be restored from parity. If that was unintended (for example a disk is not mounted), cancel and bring them back on the Changes page.
  • If a previous sync did not finish, a notice says so; the new sync continues where the old one stopped.
  • If the diff fails, the button reads Sync anyway.
  • Pre-hash (-h) reads new data twice and verifies it before computing parity, so faulty RAM or cabling can't slip damaged data into the parity. It takes longer. Your browser remembers the choice.

Scrub

Scrub reads data and parity and compares them with the stored checksums to find silent errors (bit rot). Start scrub offers these plans and shows the resulting command line:

Plan Arguments Checks
Default (none) SnapRAID's default: about 8 % of the array, only blocks not checked for at least 10 days
Custom amount -p <percent> -o <days> Amount (%) (1–100) of the array, blocks Older than (days) (0 or more)
New blocks only -p new Blocks that were synced but never checked
Bad blocks only -p bad Blocks marked as bad, e.g. after a repair. Preselected when the array has bad blocks.
Full -p full The whole array. Can take many hours.

Regular scrubs are best run by a schedule, see Scheduling.

Integrity

Integrity in the sidebar (or Details on the dashboard's health card) shows the details of snapraid status, the same status as the dashboard:

Integrity page

  • findings with what to do, most severe first (bad blocks, blocks without parity, changes not synced yet, old blocks), or No problems found
  • Oldest block checked, Median, Last checked, Checked since sync, Bad blocks and Blocks without parity
  • Scrub age of all blocks: a chart of how many blocks were last scrubbed or synced how many days ago; bars older than 120 days are orange
  • Output of snapraid status, the raw output, folded away

Check

Verify data reads the files and compares them with the hashes stored at the last sync. Nothing is changed.

  • Files only (faster) (-a, the default) verifies data without reading parity.
  • Files and parity also reads the parity, so it tells which errors a fix can repair. It takes considerably longer.
  • Under Disks you can limit the check to some data disks (-d <disk> for each). With all disks selected, no -d is passed.

The check runs as a job with progress and can be aborted. When it has finished, the result message has a Show report button that opens the Check Report with the files checked, errors and blocks to rehash.

Files

The sidebar's Files group has three pages about the files on the data disks of the active array.

Changes since the last sync

Changes shows what the next sync would record, from snapraid diff. The page runs the diff when it opens; Check again runs it once more. The card at the top counts the files per kind, says how much new data the next sync protects and has a Start sync button, which opens Prepare sync on the dashboard.

Tab Files
Deleted Removed since the last sync, deliberately, by mistake, or because a disk is not mounted. They can be restored.
Changed Same name, other content since the last sync. The earlier version can be restored.
New Added since the last sync, with their size and the totals of the biggest folders. They are not protected yet: if a disk fails before the next sync, they are lost.
Moved/copied Same content under a new name (old -> new) or at a second place, and files SnapRAID restored. Nothing is lost, the next sync records them without recomputing parity for the content.

The page opens on the first tab that has files. The search narrows the list by part of the path, or the exact disk name such as d1. Without any changes it says No changes: every file is as it was at the last sync.

Changes since the last sync, new files with folder totals

Recover files

Until the next sync, the parity still holds every file as it was at the last sync. The Deleted and Changed tabs bring files back:

Tab Files What Restore does
Deleted Removed since the last sync, deliberately, by mistake, or because a disk is not mounted Recreates them with their content and time of the last sync
Changed Same name, other content since the last sync, e.g. encrypted by ransomware or overwritten by mistake Puts back the content of the last sync. The current content is replaced and lost, the confirmation says so

Tick the files, or Select all shown files after narrowing the list with the search (part of the path, or the exact disk name such as d1), then Restore N files. SnapRAID runs fix -d <disk> -f /<path>…, one run per disk, so a file with the same path on another disk is left alone. Wildcard characters in file names (*, ?, [) are matched literally. Up to 1000 files at once.

On the Deleted tab, Restore all N deleted brings back every deleted file of every disk in one run (fix -m), as many as there are, e.g. after an accidental rm -rf. Changed files stay as they are. This is what Undelete did in earlier versions; the Recover files entry in the dashboard's More commands menu (and undelete or fix in the command palette) leads here, and so does the old address /recovery.

Owner and permissions. SnapRAID stores no owner or permissions. A deleted file it brings back, and the folders it has to create for it, would belong to whoever runs SnapRAID, root in the Docker image, with mode 600. SnapRAID UI gives them the owner, group and permissions of the folder they are restored into, the closest folder that still existed. Files get the folder's read and write bits (755 → 644, 775 → 664, 750 → 640), new folders the folder's permissions. A folder no longer on the disk takes its owner from the same folder on another data disk, else from the disk's top folder. The live output says how many files and folders were adjusted. Changed files are fixed in place and keep their owner and permissions anyway. A file that belonged to someone else than its folder's owner comes back with the folder's owner.

Restored files disappear from the list. A file restored in place can still show up as changed here until the next sync: SnapRAID sometimes keeps its new modification time to avoid mixing it up with another file. Its content is the one of the last sync, and the next sync just reads it again.

When a sync schedule of this configuration is enabled, a notice says when it runs next. After that sync, the files listed here can no longer be restored, so recover them first, or skip the next run. Files without a disk in the diff can't be restored by path, Restore all N deleted brings them back.

[!TIP] After ransomware, do not sync. Stop the schedules (or Skip next run), remove the cause, then restore the Changed files here. The sync guard for changed files keeps a scheduled sync from overwriting their parity in the meantime.

Protected files

Protected files lists every file the last sync protected, from snapraid list. It only reads the content file, so no disk spins up.

Protected files with a search

  • Is my file protected? Type a file name or part of the path (not case sensitive). The matching files are listed with disk, size and modification time, the first 200 of them; above them, how many match and how many of them are on each disk (hover for their size). A file that is not found was added after the last sync, or is excluded in the config; Show new files opens the New tab of Changes.
  • Folders: the folders of all disks merged, as a pool would show them, the biggest first, with the disks that hold each one, its files and size. Click a folder to open it, the path above leads back. On the right, how many files and bytes the last sync protected in all.

Duplicates

Duplicates finds files with the same content, from snapraid dup, and deletes the copies you don't need. It compares the hashes stored at the last sync, so no file is read; files added since then are not included. Each group lists its copies, the size of each and the space freed by keeping only one, the groups that free the most first.

Duplicates, one group ticked

  1. Choose which copy stays: Keep First found (the copy SnapRAID found first) or Shortest path, or type part of a path (or a disk, such as d1/) in Or the copy whose path contains. A copy picked by hand with its radio button wins over these.
  2. Tick the groups to clean up, or Select all shown after narrowing the list with the search. The copies that go are struck through and marked Will be deleted, the one that stays Stays.
  3. Delete N copies and confirm.

A copy is only deleted while it and the copy that stays are exactly as at the last sync: neither may show up in the diff, and both still have the size dup reported. Otherwise, or when the copy is the one that stays in another group, it is left alone, and the result says why for each one (changed since the last sync, run a sync first, no longer there, …). Up to 5000 copies at once; nothing is deleted while a job runs.

Until the next sync, deleted copies can still be brought back: Show deleted files opens the Deleted tab of Changes. Copies that are no longer on their disk drop out of the list, even before a sync takes them out of the content file.

Live output and progress

While a job runs, a card at the top of the dashboard shows Sync running (or the respective command) and an Abort button. For sync, scrub, check and fix it also shows a progress bar with percent, MB processed, speed in MB/s and the remaining time.

Abort asks for confirmation, then stops SnapRAID the way Ctrl+C would: it stops at the next block and saves its progress. The card shows Aborting – SnapRAID is saving its state… until the process has exited.

The Output card shows SnapRAID's output as it arrives:

  • It follows new output automatically; scroll up to read and it stops following until you scroll back to the bottom.
  • Copy, Download (as snapraid-<command>-<time>.log), Clear and Collapse/Expand.
  • After a successful run it folds away; after a failed run it stays open so you can read what went wrong.

When a job ends, a message such as "Sync" finished successfully or "Sync" failed (exit code 1) appears. For sync, scrub, fix and check started by hand you can also get a notification, see Notifications.

Jobs run on the server, not in your browser. You can close the tab or reload the page; when you come back, the dashboard reconnects to the running job and shows its output so far. Jobs started by a schedule or in another tab show up the same way, and the dashboard switches to the configuration the job belongs to. The full output of every job is kept in its log.

Safety stops

SnapRAID refuses to run when the situation looks like data loss, and names a --force-* option that would run it anyway. The dashboard recognises these stops, explains them and offers a confirmed retry. The notice appears for the job you just ran and also for the last sync or scrub found in the logs, for example one started by a schedule overnight.

Notice Typical cause Retry option
Stopped for safety: files suddenly have zero size A crash truncated files to 0 bytes. Running now would store the empty files in parity. --force-zero
Stopped for safety: all files of a disk are missing The disk is not mounted, or mounted at another path. Running now would drop its files from parity. --force-empty
Stopped for safety: several disks have a new UUID Disks were replaced, or mount points got mixed up --force-uuid

[!WARNING] Check the cause first: look at the files named in the output, check your mounts. Use the button (Sync anyway / Scrub anyway) only when the situation is intended, for example when a disk is really empty on purpose. The safety check is skipped for that one run only.

Theme, language and animations

These settings are stored in your browser, so each device and browser can have its own.

Setting Where Options
Theme Theme menu in the header, or the command palette Light, Dark, System (default, follows your operating system, also when it changes)
Language Language menu in the header (shows the current code, e.g. EN) English, German, Italian. Without a choice, the browser language is used, falling back to English.
Animations Animations in the sidebar, or the command palette Off: nothing moves, bars and charts show their value right away, only spinners turn. Subtle: sections and new content fade in, bars and charts grow to their value, a soft light passes along bars and running progress. Strong: the same, plus moving stripes on running progress, glowing bars and active items, and hover effects on buttons, sidebar links and cards you can click. Without a choice: Subtle, or Off if your system asks to reduce motion.

Notifications don't follow the UI language; they have their own language setting, see Notifications.