Skip to main content

Introduction

This procedure explains how to expand the ZFS persist pool on an EVE-OS node by adding a new or previously unused disk. Use this procedure when a node is running low on pool storage and you have a physical disk available to add. EVE-OS uses the ZFS storage stack for persistent storage. The ZFS pool size is set at installation time and cannot be increased through Edge Infrastructure Services. To expand the pool, you connect to the node over SSH and run the expand_raid0_pool_to_device.sh script, which automates the zpool add and autoexpand commands.

Prerequisites

  • SSH access to the node. See Enable and Disable SSH Access for Nodes.
  • The node is configured with ZFS raid level none (eve_install_zfs_with_raid_level=none). This procedure does not apply to nodes configured with raid1, raid5, or raid6.
  • EVE-OS 8.11.0 or greater.
  • A new disk installed in the node, or a previously unused disk that has not been assigned to any pool.

SSH into the Node

  1. Connect to the node as root:
    For example:
    Example response:
  2. Run eve enter to enter the pillar namespace:
    Example response:
  3. Before making changes, review the current pool state and size:
    Example response:
    Example response:

Find the Unused Disk

  1. Copy the script content from the Script Reference section into a file on the node. The following example uses vi:
    Press i to enter insert mode, paste the script content, press Esc, then type :wq to save and exit.
  2. Make the script executable:
  3. Run the script with the -d flag to identify unused disks:
    If an unused disk is available, the output shows its device path and size, for example:
    If no unused disk is found, stop here. Verify that the disk is physically installed and recognized by the operating system before continuing.

Expand the Pool

  1. Run the script with the -e flag and the device path of the disk you want to add:
  2. When prompted, enter the device path again to confirm:
    A successful expansion returns:
  3. Exit the pillar namespace and your SSH session:

Verify the Expansion

Run zpool status and zpool list to confirm the disk was added and the pool size increased.
Example response:
The new disk appears alongside the existing disk in the pool configuration.
Example response:
The pool size reflects the combined capacity of both disks. You can also verify the updated pool size in Edge Infrastructure Services by navigating to the node detail page and checking the Storage tab.

Troubleshoot Disk Wipe Errors

A newly installed disk might have old partition tables or filesystem labels that prevent ZFS from adding it. If the expand command returns an error similar to the following, the disk requires a wipe:
To wipe the disk, run wipefs -a with the disk device path. This is a destructive operation that erases all partitioning and label data on the disk. Verify you have the correct device path before running this command.
Example response:
After the wipe completes, retry the expand step.

Script Reference

The following is the content of expand_raid0_pool_to_device.sh. Copy the entire script when following the steps in this procedure.

Next Steps

Redundant Storage

Information on configuring RAID levels in EVE-OS at installation time.

Node Details

Review a node’s storage and hardware details in the console.