Linux command
stratis 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Create
sudo stratis pool create [pool_name] [/dev/sdX] [/dev/sdY]
Create
sudo stratis filesystem create [pool_name] [volume_name]
List
sudo stratis filesystem list
Add
sudo stratis pool add-data [pool_name] [/dev/sdZ]
Create
sudo stratis filesystem snapshot [pool_name] [source_fs] [snapshot_name]
Destroy
sudo stratis filesystem destroy [pool_name] [volume_name]
List
sudo stratis pool list
说明
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.
FAQ
What is the stratis command used for?
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.
How do I run a basic stratis example?
Run `sudo stratis pool create [pool_name] [/dev/sdX] [/dev/sdY]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more stratis examples?
This page includes 7 examples for stratis, plus related commands for nearby Linux tasks.