Red Hat Enterprise Linux 8中,引入新的存储管理系统Stratis。其功能总结以下:缓存
Stratis存储管理创建在Linux Mapper/ LVM及XFS的基础上,提供了便捷的管理功能,从某种程度上看,彷佛就是一个本地版的Glusterfs。要使用Stratis,必需要安装Stratisd、stratis-cli两个软件包。bash
# yum install stratisd stratis-cli # systemctl enable --now stratisd
建立资源池app
# stratis pool create mypool /dev/vdb
在第二块虚拟磁盘/dev/vdb上建立了一个名叫mypool的资源池。性能
建立文件系统加密
# stratis filesystem create mypool myfls
在资源池mypool的基础上建立文件系统myfls.net
挂载code
# mkdir /mnt/myfls # echo '/stratis/mypool/myfls /mnt/myfls xfs defaults 0 0' >> /etc/fstab # mount -a # echo 'Hello, world' > /mnt/myfls/test.txt # cat /mnt/myfls/test.txt
以上操做彷佛少了点什么吧?对,彷佛没有格式化就能够使用了。Stratis文件系统就是这么神奇。不须要你专门来格式化。blog
资源池扩容资源
# stratis pool add-data mypool /dev/vdc
参考资料it
一、https://my.oschina.net/u/589241/blog/3145018
二、https://www.thomas-krenn.com/en/wiki/Linux_Storage_Stack_Diagram