\u9996\u5148\uff0c\u6211\u4eec\u521b\u5efa\u201cdata01_pool\u201d\u7684\u6c60\u3002\u5c06\/dev\/sda,\/dev\/sdb,\/dev\/sdc,\/dev\/sdd\u6dfb\u52a0\u5230\u8be5\u6c60\u4e2d\uff1a<\/p>\n
\r\n[root@localhost ~]# stratis pool create data01_pool \/dev\/sd{a..d}\r\n[root@localhost ~]# stratis pool list \r\n[root@localhost ~]# stratis blockdev list \r\n<\/pre>\n
\n\u4e0a\u9762\u547d\u4ee4\u521b\u5efa\"data01_pool\"\u6c60\u3001\u67e5\u770b\u6c60\u3001\u67e5\u770b\u5757\u8bbe\u5907\u3002<\/p>\n
\u4e0b\u9762\u4ece\u201cdata01_pool\u201d\u6c60\u4e2d\u521b\u5efa\u4e24\u4e2a\u6587\u4ef6\u7cfb\u7edf\uff1a<\/p>\n
\r\n[root@localhost ~]# stratis filesystem create data01_pool user_data01\r\n[root@localhost ~]# stratis filesystem create data01_pool user_data02\r\n<\/pre>\n\u4e0b\u9762\u547d\u4ee4\u5217\u51fa\u521b\u5efa\u7684\u6587\u4ef6\u7cfb\u7edf\uff1a<\/p>\n
\r\n[root@localhost ~]# stratis filesystem list \r\n\u6216\u8005\r\n[root@localhost ~]# stratis fs list\r\n<\/pre>\n
\n\u4e0a\u56fe\u4e2d\u5217\u51fa\u7684\u6587\u4ef6\u7cfb\u7edf\u4e2d\uff0c\u5b57\u6bb5Device<\/code>\u662fstratis\u8bbe\u5907\u7684\u4f4d\u7f6e\u3002<\/p>\n\u6302\u8f7d\u521b\u5efa\u597d\u7684\u6587\u4ef6\u7cfb\u7edf<\/strong><\/div>\n\u4e00\u65e6\u4ece\u6c60\u4e2d\u521b\u5efa\u4e86\u6587\u4ef6\u7cfb\u7edf\uff0c\u8bf7\u521b\u5efa\u4e00\u4e2a\u6302\u8f7d\u70b9\u5e76\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5728\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\u65f6\uff0c\u5b83\u5c06\u4f7f\u7528XFS\u6587\u4ef6\u7cfb\u7edf\u5bf9\u5176\u8fdb\u884c\u683c\u5f0f\u5316\u3002<\/p>\n
\r\n# \u521b\u5efa\u6302\u8f7d\u70b9\r\n[root@localhost ~]# mkdir \/user_data01\r\n[root@localhost ~]# mkdir \/user_data02\r\n# \u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf\r\n[root@localhost ~]# mount \/stratis\/data01_pool\/user_data01 \/user_data01\/\r\n[root@localhost ~]# mount \/stratis\/data01_pool\/user_data02 \/user_data02\/\r\n<\/pre>\n
\n\u4f7f\u7528df -h<\/code>\u67e5\u770b\u6302\u8f7d\u7684\u60c5\u51b5\uff1a<\/p>\n\r\n[root@localhost ~]# df -h \/user_data*\r\nFilesystem Size Used Avail Use% Mounted on\r\n\/dev\/mapper\/stratis-1-359fd7072d8349d390741a1a71f885fb-thin-fs-0657c26979ed443aa4d3a70c15606e1c 1.0T 7.2G 1017G 1% \/user_data01\r\n\/dev\/mapper\/stratis-1-359fd7072d8349d390741a1a71f885fb-thin-fs-b91b970f23d94eb6b2ed56f347f770d2 1.0T 7.2G 1017G 1% \/user_data02\r\n<\/pre>\n
\n\u5e0c\u671b\u4f60\u5df2\u7ecf\u89c2\u5bdf\u5230\u6211\u4eec\u6ca1\u6709\u683c\u5f0f\u5316\u6587\u4ef6\u7cfb\u7edf\u3002Stratis\u7a0b\u5e8f\u4e3a\u6211\u4eec\u89e3\u51b3\u4e86\u8fd9\u4e00\u95ee\u9898\uff0c\u5e76\u521b\u5efa\u4e86XFS\u7c7b\u578b\u7684\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n
\u540c\u6837\uff0c\u7531\u4e8e\u81ea\u52a8\u7cbe\u7b80\u914d\u7f6e\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5b83\u5c06\u663e\u793a\u6587\u4ef6\u7cfb\u7edf\u5927\u5c0f\u4e3a1 TB\uff0c\u5e76\u4e14\u8be5\u5927\u5c0f\u4ec5\u662f\u865a\u62df\u7684\uff0c\u800c\u4e0d\u662f\u5b9e\u9645\u7684\u3002\u8981\u68c0\u67e5\u5b9e\u9645\u5927\u5c0f\uff0c\u60a8\u5c06\u5fc5\u987b\u4f7f\u7528Stratis\u547d\u4ee4<\/p>\n
\u4f7f\u7528df -hT \/user*<\/code>\u5339\u914d\u51fauser_data01\u548cuser_data02\u6302\u8f7d\u70b9\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u53ef\u4ee5\u770b\u5230\u4ed6\u4eec\u7684\u7c7b\u578b\u90fd\u662fXFS\u683c\u5f0f\u3002
\n<\/p>\n\u5728\/etc\/fstab\u4e2d\u6dfb\u52a0\u5f00\u673a\u6302\u8f7d\u7684\u6761\u76ee<\/strong><\/div>\n\u9996\u5148\u9700\u8981\u83b7\u53d6\u6587\u4ef6\u7cfb\u7edf\u7684UUID\uff0c\u6709\u4e24\u79cd\u65b9\u5f0f\uff1a<\/p>\n
\u7b2c\u4e00\u79cd\u65b9\u5f0f\uff0c\u662f\u901a\u8fc7\u4f7f\u7528stratis fs list<\/code>\u5c31\u53ef\u4ee5\u83b7\u53d6\u5230\u6587\u4ef6\u7cfb\u7edf\u7684UUID\u3002<\/p>\n\r\n[root@localhost ~]# stratis fs list\r\n<\/pre>\n
\n\u7b2c\u4e8c\u79cd\u65b9\u5f0f\uff0c\u4f7f\u7528blkid\u83b7\u53d6\u5757\u5b58\u50a8\u7684uuid\uff0c\u8fc7\u6ee4\u51fastratis\u6587\u4ef6\u7cfb\u7edf\uff1a<\/p>\n
\r\n[root@localhost ~]# blkid|grep stratis\r\n<\/pre>\n
\n\u4e0b\u9762\u5c31\u662f\u5c06\u6302\u5728\u4fe1\u606f\u5199\u5165\u5230\/etc\/fstab<\/code>\u4e2d\uff1a<\/p>\n\r\n[root@localhost ~]# echo \"UUID=0657c26979ed443aa4d3a70c15606e1c \/user_data01 xfs defaults,x-systemd.requires=stratis.service 0 0\" >> \/etc\/fstab \r\n[root@localhost ~]# echo \"UUID=b91b970f23d94eb6b2ed56f347f770d2 \/user_data02 xfs defaults,x-systemd.requires=stratis.service 0 0\" >> \/etc\/fstab \r\n<\/pre>\n<\/p>\n
\u68c0\u67e5Stratis\u5b88\u62a4\u7a0b\u5e8f\u7248\u672c<\/strong><\/div>\n\u5982\u679c\u9700\u8981\u68c0\u67e5Stratis\u8fd0\u884c\u7684\u5b88\u62a4\u8fdb\u7a0b\u7248\u672c\uff0c\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n
\r\n[root@localhost ~]# stratis daemon version \r\n2.1.0\r\n<\/pre>\n<\/p>\n
\u603b\u7ed3<\/strong><\/div>\nStratis\u662fRHEL8\/Centos8\u4e2d\u63d0\u4f9b\u7684\u4e00\u4e2a\u65b0\u7684\u672c\u5730\u5b58\u50a8\u7ba1\u7406\u5de5\u5177\uff0c\u5b83\u5c06\u6709\u52a9\u4e8e\u5728\u5757\u8bbe\u5907\u4e0a\u521b\u5efa\u5206\u5c42\u5b58\u50a8\u3002\u5728RHEL8\/Centos8\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5\u4e24\u4e2a\u8f6f\u4ef6\u5305\u83b7\u5f97Stratis\u3002\u6587\u7ae0\u7b2c\u4e8c\u90e8\u5206\uff1ahttps:\/\/lrxjmw.cn\/?p=213460<\/p>\n","protected":false},"excerpt":{"rendered":"
\u4e3a\u4e86\u5f00\u59cb\u4f7f\u7528Stratis\uff0c\u6211\u4eec\u9700\u8981\u6dfb\u52a0\u4e00\u4e9b\u78c1\u76d8\u8bbe\u5907\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u5355\u72ec\u7684\u6c60\uff0c\u5728\u4e00\u4e2aStratis\u6c60\u4e2d\uff0c\u53ef\u4ee5\u521b\u5efa\u591a […]<\/p>\n","protected":false},"author":309,"featured_media":213445,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-213444","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/213444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/309"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=213444"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/213444\/revisions"}],"predecessor-version":[{"id":213462,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/213444\/revisions\/213462"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/213445"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=213444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=213444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=213444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}