Skip to main content

๐Ÿ—„๏ธ Create a Storage Pool

Storage pools are the foundation of all data storage in MOS.
They define how disks are grouped, how data is protected, and which filesystems are used.

Pools are required for:

  • Shares
  • Docker storage
  • LXC containers
  • Virtual machines
  • Media and backup data
tip

If you want to use ZFS, please take a look at the following section: ZFS

Example:

MOS Storage Pools


โš™๏ธ Pool Configuration Fieldsโ€‹

๐Ÿท๏ธ Nameโ€‹

Defines the name of the storage pool.

Best practice:

  • โœ… Use short, descriptive names
  • โŒ Avoid spaces and special characters

Examples:

  • main
  • data
  • media
  • backup

๐Ÿ”„ Typeโ€‹

Defines how disks are organized within the pool.

Available pool types:

  • single
  • multi
  • mergerfs
  • nonraid (requires additional driver)
  • bcachefs (planned โ€” not yet available)

Each type serves a different use case and offers different levels of redundancy and flexibility.


๐Ÿงฉ Pool Types Explainedโ€‹

singleโ€‹

Uses a single disk without redundancy.

Characteristics:

  • One disk per pool
  • Maximum usable capacity
  • No data protection

Use cases:

  • Appdata
  • Cache
  • Downloads
  • Media with external backups
warning

If the disk fails, data is lost. Backups are mandatory.


multiโ€‹

Uses multiple disks combined into a RAID-based pool.

Characteristics:

  • Multiple disks
  • Data protection depending on RAID level
  • Managed as a single pool

Available RAID levels:

  • raid0
  • raid1

๐Ÿ“Š RAID Levelsโ€‹

raid0โ€‹

Striping without redundancy

  • Maximum performance and capacity
  • No fault tolerance

Use case:
Temporary or non-critical data


raid1โ€‹

Mirroring

  • Data is mirrored across disks
  • High data safety
  • Reduced usable capacity

Use case:
Critical data, system pools, important shares


raid10โ€‹

Mirrored striping

  • Combines mirroring with striping across the devices
  • With two devices it behaves like a mirror; four or more devices provide the full layout
  • Higher throughput than raid1 with the same level of redundancy
  • Usable capacity is about 50% of the raw capacity

Use case:
Performance-critical pools that still need redundancy


๐Ÿงฉ mergerfsโ€‹

Creates a pooled filesystem using multiple independent disks combined via mergerfs, optionally protected by SnapRAID.

Characteristics:

  • Disks remain independent
  • Flexible expansion
  • Parity handled separately via SnapRAID

Requirements:

  • One or more data disks
  • Optional SnapRAID parity disk

Use cases:

  • Media storage
  • Large data pools with mixed disk sizes
  • Home server and NAS setups

Filesystem recommendation:

  • xfs for data disks

Full Policy Referenceโ€‹

For a complete description of all available mergerfs policies, their behavior, and when to use each one, see the official mergerfs documentation:

๐Ÿ‘‰ mergerfs โ€“ Policy Descriptions


nonraidโ€‹

Uses multiple independent disks without traditional RAID. Each data disk keeps its own filesystem and is mounted individually, while optional parity disks provide fault protection.

Characteristics:

  • Each data disk has its own filesystem
  • Optional parity disks for fault tolerance
  • Flexible and simple disk management
  • Disks can be added or replaced individually
tip

The nonraid driver is not installed by default. It must be installed as a plugin via the MOS Hub. After installing the driver you have to reboot. For installation instructions, refer to the MOS Hub documentation.

To install the driver:

  1. Open MOS Hub
  2. Search for NonRAID Driver
  3. Select the desired release
  4. Click Install
  5. Reboot the server
note

Only one nonraid pool can be created per MOS system.

๐Ÿ” Parity Setup (Optional)โ€‹

Parity disks allow MOS to rebuild the data of failed data disks. Using parity is optional โ€” you can run a nonraid pool with data disks only (no redundancy) or add up to two parity disks for one- or two-fault tolerance.

Important rules:

  • Maximum 2 parity disks per pool
  • Maximum 28 data disks per pool
  • Each parity disk must be at least as large as the biggest data disk in the pool
  • Parity disks do not provide usable storage space โ€” they only store parity information
  • For full protection of all data disks, every parity disk has to be at least as large as the largest data disk in the pool
  • 1 parity disk โ†’ protects against a single data disk failure
  • 2 parity disks โ†’ protects against up to two simultaneous data disk failures

Step-by-step: Create a nonraid pool with parity

  1. Navigate to Pools and open the pool creation dialog
  2. Enter a descriptive Name (e.g. media)
  3. Set the pool Type to nonraid
  4. Devices โ€” select all data disks that should store your actual data (up to 28)
  5. Parity โ€” select the disk(s) that should hold the parity data (optional, leave empty for no redundancy; up to 2 disks)
    warning

    Every selected parity disk must be at least as large as the biggest selected data disk. Otherwise the parity protection does not cover the full capacity of all data disks.

  6. Filesystem โ€” choose the filesystem for the pool:
    • ext4
    • xfs (recommended)
    • btrfs
  7. Minimal Free Space โ€” set the minimum free space threshold for the pool (this controls when MOS stops writing to a single disk and moves on to the next one)
  8. Configure the following options by ticking the checkboxes as needed:
    • Move on No Space โ€” automatically moves data to the next available disk when a disk runs out of space
    • Automount โ€” โœ… Recommended; mounts the pool automatically on system startup
    • Format โ€” formats the selected disks during pool creation
      warning

      Enabling Format permanently deletes all existing data on the selected disks. Make sure the disks are empty or backed up before continuing.

    • Shared โ€” makes the pool available as a shared pool
    • Encrypt โ€” enables disk encryption for the pool
      warning

      Encryption keys must be stored securely. Losing the key means losing access to the data permanently.

  9. Click Create to create the pool

After creation, MOS automatically starts the initial parity sync (resync). The pool is mounted and usable immediately, but full protection is only available once the resync has completed.

note

During the initial resync the parity disks are being populated with parity information. You can use the pool normally while the resync runs in the background, but a data disk failure before the resync completes cannot be recovered from parity.


โž• Adding and Replacing Disksโ€‹

Disks can be added or replaced at any time without recreating the pool.

note

The limits still apply after creation: max. 28 data disks and max. 2 parity disks per pool.

Add a data disk:

  1. Open the pool in Pools
  2. Add the new disk under Devices
  3. MOS automatically triggers a parity update afterwards

Replace a failed data disk:

  1. Open the pool in Pools
  2. Remove the failed disk from Devices
  3. Add the replacement disk to the same slot in Devices
  4. MOS starts a resync (RECON_DISK) and rebuilds the data from parity
warning

A data disk rebuild from parity is only possible while enough parity disks and all other required data disks are still intact. The replacement disk must be at least as large as the original disk.

Replace a parity disk:

  1. Open the pool in Pools
  2. Remove the old disk from the Parity field
  3. Add the new disk to the Parity field
  4. MOS starts a full resync to populate the new parity disk

๐Ÿ›ก๏ธ Parity Maintenanceโ€‹

MOS provides parity operations for nonraid pools, accessible via the pool's action menu (โ€ขโ€ขโ€ข):

OperationDescription
CheckVerifies that parity matches the current data. No changes are made to the data disks
CorrectVerifies parity and rewrites the parity disk(s) to fix any detected mismatches
CancelCancels a currently running parity operation
tip

Run a periodic parity Check (e.g. monthly) to detect mismatches early. If mismatches are found, run Correct to update the parity disks accordingly.


Use cases:

  • Simple parity-based storage
  • Easy disk replacement
  • Mixed disk sizes with redundancy
  • Home server and NAS setups

๐Ÿงฌ bcachefsโ€‹

Not yet available

bcachefs support is planned for a future MOS release. It is not available in the current version; this section describes the intended integration.

The planned bcachefs pool type combines devices into one filesystem with built-in checksumming and optional replication, managed by bcachefs itself rather than by mergerfs or SnapRAID.

Use it when:

  • you want per-block checksums and self-healing on replicated data
  • you want a single filesystem across multiple devices without a separate parity tool

Characteristics:

  • The pool is created through its own endpoint and always uses bcachefs as the filesystem
  • Supports scrubbing to verify data against checksums
  • Detects unclean shutdowns and reports them
  • Devices are prepared so they do not appear as unassigned disks while in use
note

bcachefs is younger than ext4, xfs or btrfs. Test a restore before you rely on it for data you cannot lose.


๐Ÿ–ฅ๏ธ Devicesโ€‹

Select the physical disks that will be assigned to the pool.

note
  • Selected disks may be formatted
  • Existing data can be lost if formatting is enabled

Always verify disk selection carefully.


๐Ÿ“ฆ Filesystemโ€‹

Defines the filesystem used by the pool.

Available options:

  • xfs
  • ext4
  • btrfs
  • vfat

Filesystem Recommendationsโ€‹

  • xfs โ€“ Recommended default for most pools
  • ext4 โ€“ Simple and compatible, but less scalable
  • btrfs โ€“ Required for advanced features like snapshots
  • vfat โ€“ Only for removable or temporary storage
tip

If you want to use ZFS, please take a look at the following section: ZFS


๐Ÿ› ๏ธ Advanced Optionsโ€‹

๐Ÿ”„ Automountโ€‹

Automatically mounts the pool during system startup.

โœ… Recommended: Enabled


๐Ÿ—‘๏ธ Formatโ€‹

Formats the selected disks during pool creation.

warning

Enabling this option will permanently delete all data on the selected disks.


๐Ÿ” Encryptโ€‹

Enables disk encryption for the pool.

warning
  • Increases data security
  • Slight performance overhead
  • Encryption key must be stored securely

๐Ÿ” Skip Size check (Mergerfs + SnapRAID only)โ€‹

Warning: This option requires 5 clicks to enable. This is intentional to ensure you understand the implications.

When enabled, MOS will skip the size validation check when creating a Mergerfs pool with SnapRAID. This allows you to use disks with different sizes, but may lead to unexpected behavior if not configured correctly.

warning
  • Only available for Mergerfs pools with SnapRAID
  • Not available for nonraid pools
  • Requires 5 clicks to enable (intentional safety measure)
  • May cause issues if disks have significantly different sizes
  • Use only if you understand the risks

โš ๏ธ Usage Alertsโ€‹

Usage Alerts notify you when a storage pool reaches configured capacity thresholds.

How It Worksโ€‹

  • MOS checks pool usage periodically
  • Two threshold levels are available: Warning and Alert
  • When a threshold is crossed, MOS sends a notification to the configured providers

Configurationโ€‹

To configure Usage Alerts for a pool:

  1. Navigate to Pools
  2. Open the โ‹ฎ menu of the pool and select Pool Settings
  3. In the Usage Alerts section, set:
    • Warning: Percentage threshold for warning notifications (default: 70)
    • Alert: Percentage threshold for alert notifications (default: 90)
  4. Click Save

Pool menu

The โ‹ฎ menu, where Pool Settings is opened

Usage Alerts

Usage Alerts configuration in the pool settings dialog

Threshold Recommendationsโ€‹

  • Warning (70%): Receive a warning when the pool reaches this level
  • Alert (90%): Receive an alert when the pool reaches this critical level

Best Practicesโ€‹

  • Set Warning at a level that gives you enough time to respond (e.g., 70%)
  • Set Alarm at a critical level that requires immediate action (e.g., 90%)
  • Consider your storage growth rate when setting thresholds
  • Monitor notifications and take action before reaching the Alarm level

๐Ÿ”„ Pool Actionsโ€‹

Each pool in the Pools list has an action menu (โ€ขโ€ขโ€ข) with the following options:

ActionDescription
Unmount PoolUnmounts the pool without deleting it. The pool data remains intact and can be remounted later
Delete poolPermanently removes the pool and its configuration. Data on the disks is NOT deleted
Wake Up / SleepWakes all disks in the pool or puts them into sleep/standby mode
Btrfs operationStarts a scrub or balance on a btrfs pool (see Btrfs Operations & Schedules below)
Pool SettingsOpens the pool settings: Btrfs schedules, Usage Alerts and per-disk Spindown
tip

Use Sleep for pools that are not frequently accessed (e.g., backup pools) to reduce power consumption and disk wear. Use Spin Up Pool before accessing the pool to wake the disks.

warning

Spinning down disks frequently can reduce their lifespan. Only use spin down for pools that are accessed infrequently (e.g., once per day or less).


๐Ÿ’ค Spindownโ€‹

Pools can spin down idle disks to save power and reduce noise. The global idle time is configured under Settings โ†’ System Configuration โ†’ System.

To override it for individual disks:

  1. Open the pool's โ‹ฎ โ†’ Pool Settings dialog.
  2. Find the Spindown section. Data devices and parity devices are listed separately.
  3. Enter a value in minutes for the disks you want to configure.

Per-disk spindown

Individual spindown values for data and parity devices.

ValueBehaviour
emptyInherits the global spindown value
0Spindown is disabled for this disk
numberIndividual idle time in minutes for this disk

Remove an individual value with the trash icon next to the field to return the disk to the global setting. Values are applied when the pool settings are saved.

note

Per-disk spindown is available for pool types that manage individual devices: btrfs, bcachefs, mergerfs and NonRAID. Pools without per-device management (for example a single xfs pool) use the global setting.


๐Ÿงน Btrfs Operations & Schedulesโ€‹

When a pool is formatted with btrfs, MOS provides additional maintenance operations that help keep the filesystem healthy and performant.

These operations are only available for btrfs pools and can be scheduled to run automatically.

Where to Findโ€‹

The Btrfs operations and schedules are accessible from the pool list:

  1. Navigate to Pools
  2. Open the โ‹ฎ menu on a btrfs pool and select Btrfs operation to run a scrub or balance
  3. Open โ‹ฎ โ†’ Pool Settings and use the Btrfs schedules section to schedule scrub and balance

Btrfs Menu

Accessing the Btrfs options from the pool menu


๐Ÿ“‹ Btrfs Operationsโ€‹

The Btrfs operation dialog lets you select the operation (scrub or balance), configure its options and run it with Perform.

Btrfs Operations

Btrfs Operations dialog


๐Ÿ” Scrubโ€‹

A scrub reads all data and metadata on a btrfs filesystem and verifies it against known checksums.
If corrupted data is found and a valid mirrored or RAID copy exists, btrfs can automatically repair the affected blocks.

What it does:

  • Detects silent data corruption (bit rot)
  • Repairs corrupted blocks when redundant copies are available
  • Reports errors that cannot be repaired automatically

Advantages:

  • โœ… Ensures long-term data integrity
  • โœ… Can repair corruption automatically on mirrored/RAID1 pools
  • โœ… Runs online without unmounting the pool

Disadvantages:

  • โŒ Causes additional disk I/O during the scrub
  • โŒ On single-disk pools without redundancy, corruption can only be detected but not repaired
tip

Scrub is especially valuable on multi + raid1 btrfs pools, where corrupted data can be repaired automatically from the mirror.


โš–๏ธ Balanceโ€‹

A balance reorganizes data across the disks in a btrfs pool.
It redistributes data chunks to reclaim unused space, reduce fragmentation, and enforce RAID profiles evenly across all devices.

note

A balance is only available for multi-device pools (at least 2 disks). On single-disk btrfs pools, the balance operation is not available because there are no additional devices to redistribute data across.

What it does:

  • Reclaims allocated but unused space
  • Reduces file fragmentation
  • Redistributes data evenly across all disks in multi-device pools

Advantages:

  • โœ… Can free up space that is allocated but not actually used
  • โœ… Improves read performance by reducing fragmentation
  • โœ… Keeps data evenly distributed across disks

Disadvantages:

  • โŒ Causes significant disk I/O and can take a long time on large pools
  • โŒ Temporarily increases wear on the disks
  • โŒ Running it too frequently offers little benefit while adding unnecessary load

๐Ÿ“… Schedulesโ€‹

Both Scrub and Balance can be enabled as scheduled tasks in MOS.
When enabled, MOS will run the selected operation automatically at the configured interval.

Btrfs Schedules

Btrfs Schedules overview

Btrfs Schedules Options

Btrfs Schedules configuration options

Should you enable schedules?

OperationSchedule recommended?Reason
Scrubโœ… YesRegularly verifies data integrity and repairs silent corruption early
Balanceโš ๏ธ OptionalOnly needed when space allocation issues or fragmentation occur; not required on a regular basis

Best practices:

  • โœ… Enable a regular Scrub schedule (e.g., monthly) to detect and repair corruption early
  • โš ๏ธ Only enable a Balance schedule if you experience unallocated space issues or high fragmentation
  • ๐Ÿ•’ Schedule maintenance during low-activity periods (e.g., nightly) to minimize impact on performance
  • ๐Ÿ“Š Monitor the results of each run in the MOS task history
warning

A balance operation can generate heavy I/O load. Avoid running it during peak usage hours or on pools with active workloads.


Parts of this documentation were created with the assistance of AI tools. All AI-generated content has undergone review, but it may still contain inaccuracies, omissions, or outdated information.