LinuxCommandLibrary

stratis

Managed pool-based Linux storage

TLDR

Create a storage pool

$ sudo stratis pool create [pool_name] [/dev/sdX] [/dev/sdY]
copy
Create a filesystem in a pool
$ sudo stratis filesystem create [pool_name] [volume_name]
copy
List all filesystems
$ sudo stratis filesystem list
copy
Add a device to existing pool
$ sudo stratis pool add-data [pool_name] [/dev/sdZ]
copy
Create a snapshot
$ sudo stratis filesystem snapshot [pool_name] [source_fs] [snapshot_name]
copy
Destroy a filesystem
$ sudo stratis filesystem destroy [pool_name] [volume_name]
copy
List pools
$ sudo stratis pool list
copy

SYNOPSIS

stratis command [subcommand] [arguments]

DESCRIPTION

stratis is a local storage management tool providing ZFS/Btrfs-like features using Linux devicemapper and XFS. It simplifies storage management by abstracting pools of block devices that can be dynamically allocated to thin-provisioned XFS filesystems.
The stratisd daemon must be running before using stratis commands. Filesystems appear at /dev/stratis/pool_name/filesystem_name and support features like snapshots, thin provisioning, and pool expansion.

COMMANDS

pool create name devices...

Create storage pool from block devices
pool list
List existing pools
pool add-data pool device
Add device to pool
pool destroy pool
Remove a pool (requires no filesystems)
pool rename old new
Rename a pool
pool init-cache pool devices
Initialize SSD cache tier
filesystem create pool name
Create thin filesystem from pool
filesystem list
List filesystems
filesystem snapshot pool source name
Create filesystem snapshot
filesystem destroy pool name
Remove filesystem
filesystem rename pool old new
Rename filesystem
blockdev list
List block devices in pools
daemon version
Show stratisd version

MOUNTING

Mount manually:

$ mount /dev/stratis/pool_name/fs_name /mnt/target
copy
Add to /etc/fstab:
$ /dev/stratis/pool/fs /mnt xfs defaults,x-systemd.requires=stratisd.service 0 0
copy

CAVEATS

Requires stratisd service running. Uses XFS exclusively; other filesystems not supported. Pool devices should be dedicated; partitions with existing data will be overwritten. Snapshots share space with source until modified.

HISTORY

Stratis was developed by Red Hat starting around 2017 to provide easy-to-use storage management for Linux. It was designed to deliver modern storage features without the complexity of LVM or the kernel integration requirements of Btrfs/ZFS. Stratis became available in Fedora 28 and RHEL 8.

SEE ALSO

lvm(8), btrfs(8), xfs(5), systemctl(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community