Orthanc Advanced Storage plugin: multiple storages and custom paths

The Advanced Storage plugin lets an Orthanc archive use several storage areas, readable folder paths, indexing of existing folders and delayed deletion. Its database version restrictions decide whether your current setup can use it.

On this page

When the Orthanc Advanced Storage plugin fits your archive

The Advanced Storage plugin lets an Orthanc server spread its DICOM files over several storage areas, write them under folder paths that people can browse, index folders that already exist, and hold back deletions so large removals do not stall the server. A team should consider it when one disk is filling up, when staff or other systems need to find files on the filesystem, or when study deletions block daily work. It is an official Orthanc plugin, but it is not a switch you can flip on any installation. Before you plan around it, confirm that the plugin is available for your Orthanc release and that your database back end supports it, since the plugin carries database version restrictions that differ from the core server.

The decision turns on how the index and the files are stored today. If Orthanc uses the built-in SQLite index and has never been configured with a separate storage plugin, moving to the Advanced Storage plugin is a change to where files live, and existing studies may need to be migrated or re-indexed. If the archive already runs on the PostgreSQL plugin, or is planned to, check the plugin's supported database versions in the Orthanc Book before choosing a layout. Ask your integrator or Orthanc Team to confirm the exact version pairing for your environment, and record which release and database versions you tested together. The Orthanc Book plugins page is the natural starting point for the official plugin list.

Treat the choice as an architecture decision with an owner, not a tuning step. Write down the current study count, total storage in use, growth rate, and the operations that cause pain, such as bulk deletes or external tools reading files. Those numbers tell you whether the benefit is capacity, browsability, deletion behavior or indexing existing folders, and each benefit leads to different settings. Plan a test on a copy of the archive before changing production, and agree who will check file integrity, backups and rollback steps. Costs come from the time to test, the migration window, and any support hours you buy, while the plugin itself carries no license fee because Orthanc has no paid edition.

Which Advanced Storage features fit which archive

This table compares the four main Advanced Storage capabilities against the archive situations they suit, the cost or risk each one brings, and what to confirm in the plugin documentation. Read each row against your own archive size, disk layout and deletion pattern, and treat the database version row as a gate to check before any other decision.

CapabilityFits whenCost or risk to plan forWhat to confirm
Multiple storage areasThe archive must spread across several disks or mount points and no single volume can hold itFiles are split across areas, so backups, restores and capacity monitoring must cover every area, not one folderWhich storage areas the plugin version supports, and how it chooses the target area for new files
Custom readable pathsStaff or auditors need to find files on disk by patient, study or date without querying OrthancPath rules are fixed once files are written, and changing them later means reorganizing existing contentWhich DICOM tags the path pattern can use, and whether existing files can be re-pathed in place
Indexer mode for existing foldersA filesystem of DICOM files already exists and copying it into Orthanc is not practicalThe index must be built and kept in sync with folders that other tools may still change, and the first scan can be slow on large treesHow the indexer detects new or changed files, and how it differs from the separate Folder Indexer plugin
Delayed deletionLarge study deletions would otherwise block ingest or viewing on a busy archiveDeleted data stays on disk until the queue clears, so free-space figures lag behind what users expectHow the queue is throttled, and how it behaves when several Orthanc instances share one database
Database version restrictionsAny use of the plugin, since the database back end must be compatible with itAn unsupported pairing of plugin and database version can block startup or cause inconsistent indexes, so it must be checked before upgradesThe database versions the plugin release supports, and the matching Orthanc core version for your deployment

Where the index, files and deletions meet

Instances arrive at Orthanc from a modality or REST client, and the Orthanc core records their metadata in the index database. The Advanced Storage plugin then decides which storage area and folder path receives each DICOM file, so the index and the files on disk must stay consistent. Deletions are queued and applied later, so check the queue as well as the database when you investigate a missing study. Everything inside the operator boundary is yours to secure: host access, disk encryption, database credentials and backups. Confirm your database version against the plugin's restrictions before you design the layout.

Ingest, index, storage area and deletion flow inside operator-controlled infrastructure.

Setup sequence for the Advanced Storage plugin

This sequence takes a team from confirming version and database compatibility to a tested cutover, with a recorded check at each step so the storage layout can be reviewed before any production study depends on it.

  1. Confirm release and database compatibility

    The infrastructure owner checks the Orthanc core release, the database plugin and the Advanced Storage plugin against the plugin documentation before anything is installed. Confirm the exact version pairing your database back end requires, since the plugin carries database version restrictions that can rule out an otherwise working setup. Confirm current core release history in the Orthanc NEWS file, including whether 1.13.0 changes storage-area access in ways your target version must account for. Record the pinned versions, the source you checked for each, and the vendor or Orthanc Team confirmation for any pairing that is unclear in the documentation. The step is complete when the version matrix is written down and signed off by the database owner.

  2. Inventory current storage and paths

    The Orthanc administrator lists every storage location in use: the StorageDirectory, any indexed folders, mount points, filesystem types and free capacity per disk. Record how files are currently named and nested, the total instance count from the REST API, and any scripts or backup jobs that read file paths directly. Note which paths external systems depend on, because changing the layout later will break anything that assumes the old structure. The step is complete when the inventory lists each location, its owner and its current size, and the team agrees which paths must stay stable.

  3. Define storage areas and path rules in a test instance

    On a non-production instance with the same Orthanc and database versions, the administrator defines the storage areas, one per disk or tier, and writes the path rules that decide where each new file goes and how its folder is named. Keep the configuration in version control so every change is reviewable. Confirm the configuration keys against the plugin page for your release, since names and behavior should not be assumed from older examples. The step is complete when the configuration loads without errors on startup and the test instance reports the expected storage areas in its logs.

  4. Load sample studies into the test instance

    The team loads a representative set of studies into the test instance, covering the modalities, sizes and transfer syntaxes found in production, plus a few large multi-series studies. Use anonymized or synthetic data where patient data is not permitted in test environments. Confirm that files land in the intended storage areas and folder paths, and that no file is written to the default location unless that is intended. Record the count of instances sent, the count stored per area and any transfers that failed. The step is complete when every sample lands where the rules say it should.

  5. Verify indexing and retrieval

    The administrator checks that every sample study appears in the index with correct counts of patients, studies, series and instances, and that retrieval through the REST API and DICOM C-STORE or C-MOVE returns the same bytes that were sent. Restart the test instance and repeat the check, since startup behavior is where indexing problems often appear. Test the folder-indexing behavior on an existing folder if you plan to use it. Record the comparison results, including any mismatch in counts or checksums. The step is complete when counts and checksums match before and after restart.

  6. Test deletion behavior

    Delete a set of test studies and confirm that the index, the files on disk and any delayed deletion queue all change as expected. Check whether files are removed from the correct storage area and whether empty folders are left behind. Measure how long the deletion takes and whether it blocks other requests, using the same disk type as production. Confirm that the delayed deletion behavior you intend to rely on is supported with your version and configuration. Record the deletion timing, the remaining file count and any orphaned files. The step is complete when deletes leave no orphaned files and the team accepts the observed timing.

  7. Plan the cutover

    Write a cutover plan that covers how existing files will be moved or indexed, the order of changes, the rollback point, and who approves each stage. Include a full backup of the index and file stores taken before the change, and a tested restore procedure. Decide whether the production change is a single window or staged, and record the approval owners. Confirm the plan with the database and storage owners and keep it with the test results. The step is complete when the plan has a tested rollback, signed approvals and a recorded backup that has been restored successfully at least once in the test environment.

How custom paths and existing folder indexing change the archive

Readable folder paths change what a file on disk tells you, and that matters long after the server is configured. By default, Orthanc stores DICOM files under its own internal layout, where file locations are derived from identifiers rather than from the patient, study or modality that produced them. The Advanced Storage plugin lets you define a folder structure that people can read, so a file's location can hint at its study or date. That benefit only pays off if your backup scripts, audit procedures and manual recovery steps are written against the paths you actually chose. Before go-live, confirm with your implementation team exactly how the path template is set, whether it can be changed later, and what Orthanc does with files already stored under an older layout. Treat the path scheme as a long-lived contract with every tool that touches the disks.

Indexing existing folders brings files already on disk into the Orthanc index without copying them. This is the case most relevant to archives that predate Orthanc or that were populated by another system. The questions to settle are practical: whether indexed files stay in their original location or are moved, what the index records about them, how the index behaves if a file is later renamed, deleted or overwritten outside Orthanc, and whether new files added to the same folders are picked up automatically. The plugin documentation is the authority on each of these behaviors, and it should be read against the exact Orthanc and plugin versions you intend to run. Ask for a written test on a copy of your data that shows the index before and after indexing, including what happens to a file you modify by hand. Plan your audit and recovery procedures around those confirmed answers, not around assumptions about how the folders are managed.

Choosing a storage layout by archive situation

A new archive gives you the most freedom, because no existing file paths need to be preserved. The main decisions are how many storage areas you need, which disks or mounts back each one, and whether the folder naming should be readable for people who browse the filesystem directly. Start by writing down the expected growth and how you plan to add capacity later, since that determines whether you split storage now or later.

  • Storage areas: Decide how many disks or mounts will hold DICOM files and how new instances are assigned to them.
  • Readable paths: Define the folder structure from patient, study and series attributes only if your team will browse or back up files by hand.
  • Growth plan: Check how new storage areas are added and whether existing files move or stay in place.
  • Index database: Confirm which database engine the index uses, because the plugin only works with the database versions it supports.
  • Test first: Ingest a representative sample of studies, then confirm that retrieval, deletion and backup all behave as expected.

Before going live, confirm the supported database versions and path rules with the Advanced Storage plugin documentation, and repeat the test in a non-production environment with your own data.

Security and operations for a multi-disk Orthanc archive

Access control for a multi-disk archive starts with the REST API, because every storage area is only as protected as the server that reads and writes it. By default Orthanc only accepts HTTP connections from localhost. If RemoteAccessAllowed is enabled, the Orthanc security documentation expects AuthenticationEnabled to be true with users defined in RegisteredUsers, and recommends HTTPS and a reverse proxy for any Internet exposure. Confirm these settings in the running configuration, not only in the file you intended to deploy. Also confirm that /tools/execute-script and the export route stay disabled, because the Orthanc Security FAQ warns that the first can run arbitrary system commands and the second can overwrite files. Those risks matter more when the server writes to several disks, since a write path that is reachable through the API can reach every area.

Backups must cover every storage area, not only the one that holds the index. Each folder defined for the Advanced Storage plugin holds DICOM files that the database points to, so a restore from the index backup alone leaves references to files that may be missing. Record which area sits on which disk, which database holds the index, and how the two were backed up at the same point in time. Ask the vendor or your own test team to confirm how the plugin behaves when an area is unavailable at startup, and rehearse a restore that includes a lost disk. Monitor free space per area, not only across the server, because one full disk can stop ingest for the studies assigned to it while the other disks look healthy. Set thresholds for each area and alerts that reach the team that owns the disk.

Change control is where multi-disk setups most often break. A change to a folder path, a new storage area or a change to the rules that assign studies to areas can leave existing files outside the path the index expects. Treat each change as a planned, reviewed event: write down the current configuration, test the change on a copy of the archive, take a backup of the index and affected areas, and record who approved the change and when. Keep the Orthanc version, plugin versions and configuration files under version control so that a reviewer can compare them. Before you change a path, confirm that the plugin version in use supports the feature you need, since the Advanced Storage plugin has database version restrictions that should be checked against the Orthanc Book plugins page before each upgrade.

Limits to confirm before you rely on the plugin

The Advanced Storage plugin changes where Orthanc reads and writes DICOM files, so its behavior depends on your database engine, your Orthanc version and how many instances share the archive. Confirm each item below against the plugin documentation and a test environment before the plugin holds patient images.

Supported database back ends and versions

Confirm which database plugins and versions the Advanced Storage plugin supports in the release you plan to run. The plugin depends on the index database behind Orthanc, and the SQLite default is not the setup most large archives use. Ask whether your planned PostgreSQL, MySQL or MariaDB version is listed as tested, and whether any restriction applies to the Docker image you intend to deploy. Record the answer in writing before you migrate any storage layout.

Orthanc plugins list

Behavior with multiple instances

Confirm how the plugin behaves when several Orthanc instances read and write the same database. Since Orthanc 1.9.2 with PostgreSQL or MySQL plugins 4.0, multiple instances can share one database, but a storage layout that works for one instance may not be safe for a cluster. Ask who creates folders, how instances agree on the storage configuration, and whether each node mounts the same disks at the same paths.

Compatibility after core changes

Confirm that the plugin version you run is validated against the Orthanc core release you plan to use. Orthanc 1.13.0 rewrote storage-area access and DICOM parsing and transcoding to improve caching and reduce memory use, so plugin code that touches storage areas may need retesting after each core upgrade. Ask the plugin maintainers which core releases they test against, and rerun your ingest, retrieve and delete tests after every core upgrade.

Orthanc release notes

Handling of failed writes

Confirm what the plugin does when a write to one storage area fails part way through an ingest, for example when a disk is full, unmounted or read only. Ask whether the instance rejects the upload, leaves a partial file, or records an index entry that points to a missing file. Test this on purpose with a full volume and a detached disk, then check that the index, the files and the DICOM store agree afterward.

Returning to a single storage area

Confirm the documented procedure for moving from several storage areas back to one. Ask whether files must be copied, re-indexed or left in place, how the index records their locations, and whether the reverse move requires downtime. Write the rollback steps down and test them on a copy of the archive, including a check that every study still retrieves after the change.

Questions teams ask before the Advanced Storage plugin goes live

What does it cost to move an Orthanc archive onto the Advanced Storage plugin?

The cost is mostly the labor to plan the layout, rehearse the change and verify the archive afterward, plus any hardware for the extra disks. Orthanc itself is open source with no paid edition, so license fees do not apply to the core. Cost rises with the number of storage areas, how many studies must be reorganized, how many systems depend on the current file paths, and how much testing your clinical and compliance teams require. Ask any provider for a quote built from a written scope that lists the storage layout, the test plan, the rollback steps and who performs each task. Ask whether the work is one-time or includes recurring support, since upgrades and monitoring recur after go-live.

How long does a migration to multiple storage areas take?

Duration depends mainly on archive size, the number of studies that must move or be re-indexed, and how much validation you require before cutover. Copying terabytes across disks takes far longer than changing configuration, so measure your current volume and the throughput of your source and target disks before estimating. Testing adds time in proportion to the number of modalities, viewers and downstream systems that read files. Plan a staging copy of the archive, a timed dry run and a documented rollback window. Ask for a timeline that separates preparation, copy, verification and cutover, and that names which steps depend on your change approval process.

What must our internal team provide before the work starts?

Your team needs to supply the environment and the decisions that only your organization can make. Typical inputs are an inventory of Orthanc versions, plugins and database back ends in use, a current backup and restore procedure, the disk layout and capacity for each storage area, and the folder naming rules you want for readable paths. You will also need access to the Orthanc host, a staging environment that resembles production, named owners for approvals, and a list of systems that read or write DICOM files directly from disk. Clinical and compliance stakeholders should confirm acceptable downtime and the retention rules that deletions must respect.

Can our own engineers configure the Advanced Storage plugin without outside help?

Yes, a team with Linux administration, Orthanc configuration and database experience can often do the work alone, especially on a small archive with a tested backup. The risk lies in the details: file moves that break database references, indexing errors on existing folders, and deletion behavior that surprises people who expect immediate removal. Assess your team's experience with Orthanc upgrades, backups and restore tests, and whether anyone has done a supervised cutover before. A fixed-scope engagement with DeployOpen can cover planning, configuration, testing, documentation and handover, or support can be limited to review. Either way, confirm the plan in writing before production work begins.

How do we check that our Orthanc database version supports the plugin?

Check the Advanced Storage plugin documentation for its supported database versions and compare them with your running Orthanc and database plugin versions before you install anything. The plugin's restrictions depend on the database back end and release line, so do not assume that a newer core release carries the same support. Record the exact versions of the Orthanc core, the index plugin, the storage plugin and the database server, then test the combination in staging. Release history for Orthanc is published in the project's NEWS file, which helps you read changes between versions. Ask your provider to confirm the matrix in writing and to document any version you plan to avoid.

How do we test deletion and indexing safely before production?

Test both on a copy of the archive that matches production in size, database engine and folder layout. For indexing, point a staging instance at a copied folder tree, confirm that the study, series and instance counts match your source and that file paths resolve as expected. For deletion, delete a defined set of test studies, verify the delayed queue behaves as configured, and confirm that files are removed or retained according to your rules. Repeat the tests with multiple instances if you run them. Keep the results, the commands used and the rollback steps as evidence for your change record and any compliance assessor who asks how deletions are controlled.

Which parts of the migration create the most risk for patient data?

The greatest risks are a mismatch between the index and the files on disk, a deletion that removes studies still needed for care or retention, and a configuration error that exposes the REST interface. Keep the server on localhost or behind authentication, and keep the script execution and export routes disabled as the Orthanc security documentation advises. Before cutover, confirm that backups cover both the index and every storage area, and that a restore has been rehearsed. Document who can approve a deletion and how access is logged, because these controls are often reviewed during security and compliance assessments.

How DeployOpen works on this

DeployOpen treats Advanced Storage work as a scoped change to where an Orthanc archive keeps its files and index, not as a plugin install. We agree the storage layout, the database version constraints and the verification plan in writing before any configuration changes on your Orthanc servers.

How we scope

  • We confirm which Orthanc core and database plugin versions you run before recommending any Advanced Storage configuration.
  • We map the disks, mount points and folder paths your archive will use, including which storage areas are new and which hold existing data.
  • The written scope names the indexing, deletion and path work included, the systems in scope and the acceptance checks each one must pass.

How we build

  • We stage the configuration on a non-production copy of the archive and test writes, reads, indexing and delayed deletion before any production change.
  • We check that each storage path resolves consistently across every Orthanc instance that shares the same database.
  • We record each configuration key, path convention and database version constraint so the change can be reviewed and repeated.

How we hand over

  • You receive the final configuration files, storage layout diagram and folder naming scheme, with each key and path explained.
  • The handover covers test results, the rollback steps for the storage change and the database version limits your team must watch during upgrades.
  • We walk your administrators through indexing existing folders, monitoring deletion queues and checking storage capacity on each disk.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, which can cover Orthanc core and plugin upgrades that affect storage behavior.
  • Before any future Orthanc upgrade, we can retest storage paths, indexing and deletion against the new versions in your environment.
  • Support runs inside your infrastructure, so your team keeps control of the disks, credentials and database that hold the archive.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.