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 theexpand_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
-
Connect to the node as root:
For example:Example response:
-
Run
eve enterto enter the pillar namespace:Example response: -
Before making changes, review the current pool state and size:
Example response:Example response:
Find the Unused Disk
-
Copy the script content from the Script Reference section into a file on the node. The following example uses
vi:Pressito enter insert mode, paste the script content, pressEsc, then type:wqto save and exit. -
Make the script executable:
-
Run the script with the
-dflag 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
-
Run the script with the
-eflag and the device path of the disk you want to add: -
When prompted, enter the device path again to confirm:
A successful expansion returns:
-
Exit the pillar namespace and your SSH session:
Verify the Expansion
Runzpool status and zpool list to confirm the disk was added and the pool size increased.
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: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.
Script Reference
The following is the content ofexpand_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.