Stratis Pools
Stratis
- Red Hat 8 introduced Stratis volume management
- Uses thin provisioning (starts with 546Mb)
- Combines LVM and filesystems onto one system
- Stratis automatically extends the filesystem if space is available
|
dnf install stratis-cli stratisd |
Install stratis and daemon |
|
systemctl enable/start stratisd |
Enable and start the daemon |
|
lsblk -f |
|
|
stratis pool list |
|
|
stratis filesystem list |
|
Creating a Two-Disk Stratis Pool and Filesystem
|
insert two new 5GB disks |
|
|
stratis pool create pool1 /dev/sde |
create stratis pool |
|
stratis pool add-data pool1 /dev/sdf |
extend stratis pool to another disk |
|
stratis filesystem create pool1 fs1 |
create stratis filesystem |
|
mkdir /bigdata |
|
|
mount /dev/stratis/pool1/fs1 /bigdata |
|
|
stratis filesystem snapshot pool1 fs1 fs1-snap |
create a snapshot |
|
nano /etc/fstab … UUID=a6dca899-feab-4663-8028-fe6ce748d268 /bigdata xfs defaults,x-systemd.requires=stratisd.service 0 0 |
tells fstab to not mount this filesystem unless the system starts stratisd daemon (UUID of the filesystem) |