{"id":6911,"date":"2020-05-24T15:00:26","date_gmt":"2020-05-24T07:00:26","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6911"},"modified":"2020-05-24T15:07:52","modified_gmt":"2020-05-24T07:07:52","slug":"stratis","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/stratis","title":{"rendered":"stratis\u547d\u4ee4 – \u7ba1\u7406linux\u5b58\u50a8"},"content":{"rendered":"\n

stratis \u662f\u4e00\u4e2a\u5177\u6709\u4e0e\u00a0ZFS\u00a0\u548c\u00a0Btrfs\u00a0\u76f8\u4f3c\u529f\u80fd\u7684\u5377\u7ba1\u7406\u6587\u4ef6\u7cfb\u7edf\u3002\u540c\u65f6\u53c8\u662f\u4e00\u4e2a\u6613\u4e8e\u4f7f\u7528\u7684 Linux \u5b58\u50a8\u5de5\u5177\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>stratis [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

fs<\/td>\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf<\/td><\/tr>
list<\/td>\u5217\u51fa\u6587\u4ef6\u7cfb\u7edf<\/td><\/tr>
pool<\/td>\u5217\u51fa\u6587\u4ef6\u7cfb\u7edf\u7684\u6c60<\/td><\/tr>
snapshot<\/td>\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\u5feb\u7167<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5b89\u88c5stratis\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# dnf install stratis-cli stratisd<\/pre>\n\n\n\n

\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# stratis fs create mypool myfs1<\/pre>\n\n\n\n

\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\u4f5c\u4e3a\u73b0\u6709\u6587\u4ef6\u7cfb\u7edf\u7684\u5feb\u7167\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# stratis fs snapshot mypool myfs1 myfs1-experiment<\/pre>\n\n\n\n

\u4ee5\u5217\u51fa\u7cfb\u7edf\u4e2d\u7684\u6c60\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# stratis pool list<\/pre>\n\n\n\n

\u5217\u51fa\u6c60\u4e2d\u7684\u6587\u4ef6\u7cfb\u7edf\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# stratis fs list mypool<\/pre>\n","protected":false},"excerpt":{"rendered":"

stratis \u662f\u4e00\u4e2a\u5177\u6709\u4e0e\u00a0ZFS\u00a0\u548c\u00a0Btrfs\u00a0\u76f8\u4f3c\u529f\u80fd\u7684\u5377\u7ba1\u7406\u6587\u4ef6\u7cfb\u7edf\u3002\u540c\u65f6\u53c8\u662f\u4e00\u4e2a\u6613\u4e8e\u4f7f\u7528\u7684 Lin […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6911"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6911"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6911\/revisions"}],"predecessor-version":[{"id":7808,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6911\/revisions\/7808"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}