# Swap Manager

Swap Manager is an Unraid plugin that lets users create and manage a swapfile or ZFS (Zettabyte File System) zvol from the Web UI, controlling size, location, autostart, and enable/disable state. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/7665/swap-manager

## Description

Swap Manager is an Unraid plugin that lets users create and manage a swapfile or ZFS (Zettabyte File System) zvol from the Web UI, controlling size, location, autostart, and enable/disable state. It supports XFS, ext4, and single-device Btrfs pools or disks, as well as ZFS zvols. Swap follows the array lifecycle, starting after the array starts and stopping before it stops, so a swapfile on a pool does not block unmounting. Locations that the mover would move are refused. An optional swap usage history graph is available on the settings page and dashboard. Configure it under Settings - User Utilities - Swap Manager.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

43/100 (Fair), based on 3 of 4 factors.
- Maintained: 75 (last commit 8 days ago)
- Popular: 6 (1 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)

## Links

- Unraid: https://ca.unraid.net/apps/app_f93571b3a0dc9ebb
- GitHub: https://github.com/sognix/unraid-swap-manager

## Common questions

### How do I install Swap Manager on Unraid?

Search for Swap Manager in Community Applications and install it. Alternatively, use Plugins to install the plugin file from the GitHub repository.

### How do I change the swapfile size after it has been created?

Disable swap first, change the size, then create the swapfile. There is no resize; creating a new swapfile replaces the old one and is only possible while swap is disabled.

### Can I put the swapfile under /mnt/user on Unraid?

No, /mnt/user is a FUSE/shfs overlay and is not block-based, so the kernel refuses it and the plugin blocks creation. Use a supported block-based location instead.

### Can Unraid stop the array if Swap Manager has a swapfile on a pool?

No, swap follows the array lifecycle: it is enabled after array start and disabled before array stop, so a swapfile on a pool never blocks unmounting.

---
Source: Our Local Host (https://ourlocalhost.com/app/7665/swap-manager), the self-hosted and open-source app directory.
