stratis
Manage local storage pools and volumes using the Stratis storage manager. Stratis volumes use the XFS filesystem and require the
stratisdservice. More information: https://stratis-storage.github.io/howto/.
- Start the Stratis service (must be active before managing pools or volumes):
sudo systemctl start stratisd
- Create a storage pool from one or more devices:
sudo stratis pool create
- Create a filesystem (volume) in a pool:
sudo stratis filesystem create
- List all Stratis filesystems:
sudo stratis filesystem list
- Format and mount a Stratis volume manually:
sudo mkfs.xfs /dev/stratis// && sudo mount /dev/stratis//
- Add a volume to
/etc/fstabfor mounting at boot:
echo /dev/stratis// xfs defaults,x-systemd.requires=stratisd.service 0 0 | sudo tee /etc/fstab
- Extend an existing pool by adding a new device:
sudo stratis pool add-data
- Delete a volume:
sudo stratis filesystem destroy
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
