{"id":883,"date":"2018-09-11T14:52:13","date_gmt":"2018-09-11T06:52:13","guid":{"rendered":"http:\/\/www.rao-bing.cn\/?p=883"},"modified":"2020-01-06T16:12:14","modified_gmt":"2020-01-06T08:12:14","slug":"glusterfs-install-and-config","status":"publish","type":"post","link":"http:\/\/www.rao-bing.cn\/index.php\/2018\/09\/11\/883\/","title":{"rendered":"GlusterFS  install and config"},"content":{"rendered":"<p>GlusterFS\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\uff0c\u901a\u8fc7 RDMA \u548c TCP\/IP \u65b9\u5f0f\u5c06\u5206\u5e03\u5230\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u7684\u5b58\u50a8\u7a7a\u95f4\u6c47\u96c6\u6210\u4e00\u4e2a\u5927\u7684\u7f51\u7edc\u5e76\u884c\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u7684\u5b89\u88c5\u914d\u7f6e\u7b80\u5355\uff0c\u6269\u5c55\u6027\u548c\u6027\u80fd\u4e5f\u90fd\u8fd8\u4e0d\u9519\uff0c\u4eceOracle DBA\u7684\u89d2\u5ea6\u770b\uff0c\u5728\u6709\u4e9b\u573a\u666f\u4e0b\u8fd8\u662f\u53ef\u4ee5\u8003\u8651\u7684\uff0c\u6bd4\u5982\u5b58\u653eOGG\u7684trail\u6587\u4ef6\uff0c\u6bd4\u5982\u5b58\u653e\u5f52\u6863\u6216\u903b\u8f91\u5907\u4efd\u4ec0\u4e48\u7684\u3002\u672c\u6587\u7b80\u5355\u4ecb\u7ecd\u4e00\u4e0bGlusterFS\u5728RedHat 7\u4e0b\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u3002<\/p>\n<h2><\/h2>\n<h2>\u5b9e\u9a8c\u73af\u5883\uff1a<\/h2>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"186\">\u4e3b\u673a<\/td>\n<td valign=\"top\" width=\"173\">\u7f51\u7edc<\/td>\n<td valign=\"top\" width=\"113\">OS<\/td>\n<td valign=\"top\" width=\"113\">\u5b58\u50a8<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"186\">192.168.0.18 \u670d\u52a1\u5668<\/td>\n<td valign=\"top\" width=\"173\">192.168.0.18 1Gb eth<\/p>\n<p>192.168.1.18 56Gb IB<\/p>\n<p>192.168.2.18 56Gb IB<\/td>\n<td valign=\"top\" width=\"113\">Redhat 7.4<\/td>\n<td valign=\"top\" width=\"113\">\/dev\/sdb<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"186\">192.168.0.19 \u670d\u52a1\u5668<\/td>\n<td valign=\"top\" width=\"173\">192.168.0.19 1Gb eth<\/p>\n<p>192.168.1.19 56Gb IB<\/p>\n<p>192.168.2.19 56Gb IB<\/td>\n<td valign=\"top\" width=\"113\">Redhat 7.4<\/td>\n<td valign=\"top\" width=\"113\">\/dev\/sdb<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"186\">192.168.0.97 \u670d\u52a1\u5668<\/td>\n<td valign=\"top\" width=\"173\">192.168.0.97 1Gb eth<\/p>\n<p>192.168.1.97 56Gb IB<\/p>\n<p>192.168.2.97 56Gb IB<\/td>\n<td valign=\"top\" width=\"113\">Redhat 7.4<\/td>\n<td valign=\"top\" width=\"113\">\/dev\/sdb<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"186\">192.168.0.98 \u670d\u52a1\u5668<\/td>\n<td valign=\"top\" width=\"173\">192.168.0.98 1Gb eth<\/p>\n<p>192.168.1.98 56Gb IB<\/p>\n<p>192.168.2.98 56Gb IB<\/td>\n<td valign=\"top\" width=\"113\">Redhat 7.4<\/td>\n<td valign=\"top\" width=\"113\">\/dev\/sdb<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"186\">192.168.0.17 \u5ba2\u6237\u7aef<\/td>\n<td valign=\"top\" width=\"173\">192.168.0.17 1Gb eth<\/p>\n<p>192.168.1.17 56Gb IB<\/p>\n<p>192.168.2.17 56Gb IB<\/td>\n<td valign=\"top\" width=\"113\">Redhat 7.4<\/td>\n<td valign=\"top\" width=\"113\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><\/h2>\n<h2>\u4ece\u6e90\u7801\u5b89\u88c5<\/h2>\n<p>\u9996\u5148\u662f\u5b89\u88c5\u4f9d\u8d56\u7684\u5305\uff1a<\/p>\n<ul>\n<li>Linux\u53d1\u5e03\u4e2d\u81ea\u5e26\u7684\u5305<\/li>\n<\/ul>\n<p>yum install automake libtool git flex bison openssl-devel libuuid-devel libacl-devel libxml2-devel python-devel libaio-devel sqlite-devel<\/p>\n<ul>\n<li>\u9700\u8981\u5355\u72ec\u4e0b\u8f7d\u7684\u5305<\/li>\n<\/ul>\n<p>userspace-rcu-0.7.16-1.el7.x86_64.rpm<\/p>\n<p>userspace-rcu-devel-0.7.16-1.el7.x86_64.rpm<\/p>\n<p>\u53ef\u4ee5\u5728\u8fd9\u4e2a\u5730\u5740\u627e\u5230\uff1a<a href=\"https:\/\/centos.pkgs.org\/7\/epel-x86_64\/48\/\">https:\/\/centos.pkgs.org\/7\/epel-x86_64\/48\/<\/a><\/p>\n<p>\u4e0d\u8981\u5b89\u88c5\u66f4\u65b0\u7684\u7248\u672c\uff0c\u6bd4\u5982\u4f7f\u7528\u6e90\u7801\u5b89\u88c5userspace-rcu\u76841.0\u7248\u672c\uff0c\u4f1a\u5bfc\u81f4glusterfs\u7f16\u8bd1\u62a5\u9519\u3002<\/p>\n<p>\u4e0b\u8f7dGlusterFS\u6e90\u7801\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/gluster\/glusterfs\/archive\/v4.1.3.zip\">https:\/\/github.com\/gluster\/glusterfs\/archive\/v4.1.3.zip<\/a><\/p>\n<p>\u89e3\u538b\u7f29\uff0c\u5b89\u88c5\uff1a<\/p>\n<p># unzip glusterfs-4.1.3.zip<\/p>\n<p># cd glusterfs-4.1.3<\/p>\n<p># .\/autogen.sh<\/p>\n<p># .\/configure<\/p>\n<p># make<\/p>\n<p># make install<\/p>\n<p>\u5b89\u88c5\u5c31\u5b8c\u6210\u4e86\u3002<\/p>\n<p>\u542f\u52a8glusterd\u670d\u52a1\uff1a<\/p>\n<p># service glusterd start<\/p>\n<p>\u4f7f\u7528\u6e90\u7801\u5b89\u88c5\uff0cserver\u548cclient\u7684\u6b65\u9aa4\u90fd\u662f\u4e00\u6837\u7684\uff0c\u53ea\u662f\u5728\u5ba2\u6237\u7aef\u4e0d\u7528\u542f\u52a8glusterd\u670d\u52a1\u3002<\/p>\n<h2>GlusterFS\u67b6\u6784<\/h2>\n<p>\u4ecb\u7ecd\u914d\u7f6e\u65b9\u6cd5\u4e4b\u524d\uff0c\u5148\u4ecb\u7ecd\u4e00\u4e0b\u57fa\u672c\u6982\u5ff5<\/p>\n<p><b>trusted storage pool\uff08TSP\uff09<\/b><\/p>\n<p>TSP\u5c31\u662f\u7531\u5b58\u50a8\u670d\u52a1\u5668\u7ec4\u6210\u7684\u7f51\u7edc\uff0c\u5728\u5f00\u59cb\u914d\u7f6eGlusterFS\u4e4b\u524d\uff0c\u9700\u8981\u5c06\u6240\u6709\u5b58\u50a8\u670d\u52a1\u5668\u52a0\u5165\u5230\u8fd9\u4e2a\u7f51\u7edc\u3002<\/p>\n<p><b>Peer<\/b><\/p>\n<p>Peer\u5c31\u662f\u6307\u7684\u6bcf\u4e00\u4e2a\u5b58\u50a8\u670d\u52a1\u5668<\/p>\n<p><b>Brick<\/b><\/p>\n<p>Brick\u53ef\u4ee5\u7406\u89e3\u4e3aGlusterFS\u7ba1\u7406\u7684\u5b58\u50a8\u5355\u5143\uff0cbrick\u4e00\u822c\u8868\u73b0\u5f62\u5f0f\u662f\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\uff0cbrick\u5e95\u5c42\u662f\u5982\u4f55\u7ec4\u6210\u7684\uff0cGlusterFS\u4e0d\u7ba1\uff0c\u53ef\u4ee5\u662f\u4e00\u4e2a\u7269\u7406\u78c1\u76d8\uff0c\u4e5f\u53ef\u4ee5\u662f\u505a\u5b8cRAID\u540e\u7684\u903b\u8f91\u78c1\u76d8\uff0c\u4e5f\u53ef\u4ee5\u662fZFS\u5377\u3002<\/p>\n<p><b>Volume<\/b><\/p>\n<p>Volume\u5c31\u662f\u5ba2\u6237\u7aef\u53ef\u4ee5\u4f7f\u7528\u7684\u5b58\u50a8\u5355\u5143\uff0cvolume\u662f\u7531\u591a\u4e2abrick\u7ec4\u6210\u7684\uff0cvolume\u7684\u7c7b\u578b\u6709\u5206\u5e03\uff0c\u590d\u5236\uff0c\u5206\u5e03\u590d\u5236\u7b49\u51e0\u79cd\uff0c3.7\u4ee5\u540e\u6761\u5e26\u7c7b\u578b\u7684\u5377\u6ca1\u6709\u4e86\uff0c\u53d6\u800c\u4ee3\u4e4b\u7684\u662fshard\u7279\u6027\u3002<\/p>\n<p>\u5206\u5e03\u5377\u662f\u5c06\u6587\u4ef6\u5206\u5e03\u5230\u4e0d\u540c\u7684brick\u4e0a\uff0c\u6240\u6709brick\u7ec4\u6210volume\uff0c\u6ca1\u6709\u6570\u636e\u5197\u4f59\uff0c\u6211\u7406\u89e3\u7c7b\u4f3cRAID0\uff0c\u4f46\u662f\uff0c\u6ce8\u610f\u5355\u7eaf\u7684\u5206\u5e03\u5377\u5e76\u4e0d\u505a\u6761\u5e26\u5316\uff0c\u4e5f\u5c31\u662f\u4e0d\u4f1a\u5207\u5272\u5927\u6587\u4ef6\u3002<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2018\/09\/clip_image002.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"clip_image002\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2018\/09\/clip_image002_thumb.png\" alt=\"clip_image002\" width=\"558\" height=\"306\" border=\"0\" \/><\/a><\/p>\n<p>\u590d\u5236\u5377\u5c31\u662f\u5728\u591a\u4e2abrick\u4e0a\u5b58\u653e\u6587\u4ef6\u526f\u672c\uff0c\u6211\u7406\u89e3\u7c7b\u4f3cRAID1\uff0c\u590d\u5236\u5377\u7684\u526f\u672c\u6570\u53ef\u4ee52\u6216\u80053\u3002<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2018\/09\/clip_image004.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 0px; display: inline; background-image: none;\" title=\"clip_image004\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2018\/09\/clip_image004_thumb.png\" alt=\"clip_image004\" width=\"558\" height=\"306\" border=\"0\" \/><\/a><\/p>\n<p>\u5206\u5e03\u590d\u5236\u5377\u5c31\u662f\u65e2\u505a\u590d\u5236\u53c8\u505a\u5206\u5e03\uff0cbrick\u4e2a\u6570\u5fc5\u987b\u662f\u526f\u672c\u6570\u7684\u6574\u6570\u500d\u3002\u6211\u7406\u89e3\u7c7b\u4f3cRAID10<\/p>\n<p><a href=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2018\/09\/clip_image006.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; background-image: none;\" title=\"clip_image006\" src=\"http:\/\/www.rao-bing.cn\/wp-content\/uploads\/2018\/09\/clip_image006_thumb.png\" alt=\"clip_image006\" width=\"558\" height=\"340\" border=\"0\" \/><\/a><\/p>\n<p>\u867d\u7136\u7c7b\u4f3cRAID\uff0c\u4f46\u662f\u6ce8\u610f\u4e0a\u8ff0\u4e09\u79cd\u5377\u90fd\u4e0d\u505a\u6761\u5e26\u5316\uff0cglusterfs 3.7 \u4e4b\u524d\u8fd8\u6709\u4e00\u79cd\u6761\u5e26\u5377\uff0c\u53ef\u4ee5\u505a\u6761\u5e26\u5316\uff0c3.7\u4e4b\u540e\uff0c\u7528shard\u529f\u80fd\u53d6\u4ee3\u4e86\u6761\u5e26\u5377\uff0c\u4e0a\u8ff0\u4e09\u79cd\u5377\u90fd\u53ef\u4ee5\u542f\u7528shard\u529f\u80fd\uff0c\u5c06\u5927\u6587\u4ef6\u5206\u7247\u3002<\/p>\n<h3>\u914d\u7f6e\u6b65\u9aa4<\/h3>\n<ul>\n<li>\u5c06\u5b58\u50a8\u670d\u52a1\u5668\u52a0\u5165TSP<\/li>\n<\/ul>\n<p>\u5728 192.168.0.18\u4e0a\u6267\u884c\uff1a<\/p>\n<p># gluster peer probe 192.168.1.19<\/p>\n<p># gluster peer probe 192.168.1.97<\/p>\n<p># gluster peer probe 192.168.1.98<\/p>\n<p>\u672c\u673a\u4e0d\u7528\u52a0\u5165\uff0c\u76f4\u63a5\u5c31\u5728TSP\u91cc\u9762\uff1a<\/p>\n<p># gluster peer probe 192.168.1.18<\/p>\n<p>peer probe: success. Probe on localhost not needed<\/p>\n<p>\u67e5\u770bpool\u60c5\u51b5\uff1a<\/p>\n<p># gluster pool list<\/p>\n<p>UUID Hostname State<\/p>\n<p>68b97090-fc52-439c-a32d-db003a174676 192.168.1.19 Connected<\/p>\n<p>3b619849-b9b4-41b9-88d5-394fe75670b6 192.168.1.97 Connected<\/p>\n<p>0d33bada-be28-4641-8e19-f693b2c8aea4 192.168.1.98 Connected<\/p>\n<p>42ac25aa-de7c-4853-91c1-a978afd117c4 localhost Connected<\/p>\n<ul>\n<li>\u51c6\u5907bricks<\/li>\n<\/ul>\n<p>\u5728\u6bcf\u53f0\u5b58\u50a8\u670d\u52a1\u5668\u6267\u884c\uff1a<\/p>\n<p># mkfs.xfs \/dev\/sda<\/p>\n<p># mount \/dev\/sda \/gfsdata<\/p>\n<p># mkdir \u2013p \/gfsdata\/data1<\/p>\n<ul>\n<li>\u521b\u5efa\u5377<\/li>\n<\/ul>\n<p>\u521b\u5efa\u4e00\u4e2a\u5206\u5e03\u590d\u5236\u5377\uff1a<\/p>\n<p># gluster volume create gv1 replica 2 transport rdma 192.168.1.97:\/gfsdata\/data1 192.168.1.18:\/gfsdata\/data1 192.168.1.98:\/gfsdata\/data1 192.168.1.19:\/gfsdata\/data1<\/p>\n<p>\u5176\u4e2dreplica 2\uff0c\u4ee3\u8868\u526f\u672c\u6570\u662f2\u3002<\/p>\n<p>\u5176\u4e2dtransport\u7684\u53d6\u503c\u53ef\u4ee5\u662f\u201crdma\u201d \u6216 \u201ctcp\u201d \u6216 \u201ctcp\uff0crdma\u201d\uff0c\u5982\u679c\u4f7f\u7528\u666e\u901a\u4e07\u5146\u7f51\u7edc\uff0c\u5c31\u662ftcp\uff0c\u4f7f\u7528\u5e26RDMA\u529f\u80fd\u7684\u878d\u5408\u4ee5\u592a\u6216ib\uff0c\u5c31\u4f7f\u7528rdma\u6765\u5f97\u5230\u66f4\u597d\u7684\u6027\u80fd\u3002<\/p>\n<p># gluster volume info gv1<\/p>\n<p>Volume Name: gv1<\/p>\n<p>Type: Distributed-Replicate<\/p>\n<p>Volume ID: 2a5466c0-3637-4369-8fe8-2594b8964a8a<\/p>\n<p>Status: Started<\/p>\n<p>Snapshot Count: 0<\/p>\n<p>Number of Bricks: 2 x 2 = 4<\/p>\n<p>Transport-type: rdma<\/p>\n<p>Bricks:<\/p>\n<p>Brick1: 192.168.1.97:\/gfsdata\/data1<\/p>\n<p>Brick2: 192.168.1.18:\/gfsdata\/data1<\/p>\n<p>Brick3: 192.168.1.98:\/gfsdata\/data1<\/p>\n<p>Brick4: 192.168.1.19:\/gfsdata\/data1<\/p>\n<p>Options Reconfigured:<\/p>\n<p>nfs.disable: on<\/p>\n<p>performance.client-io-threads: off<\/p>\n<ul>\n<li>\u542f\u52a8glusterfs\u5377<\/li>\n<\/ul>\n<p># gluster volume start gv1<\/p>\n<ul>\n<li>\u6302\u8f7dglusterfs\u5377<\/li>\n<\/ul>\n<p>\u5728192.168.0.17\u6302\u8f7d\u5377\uff1a<\/p>\n<p># mkdir \/test<\/p>\n<p># mount \u2013t glusterfs \u2013o transport=rdma 192.168.2.97:\/gv1 \/test<\/p>\n<p># df -h<\/p>\n<p>Filesystem Size Used Avail Use% Mounted on<\/p>\n<p>\/dev\/mapper\/ol-root 50G 44G 6.6G 87% \/<\/p>\n<p>devtmpfs 16G 0 16G 0% \/dev<\/p>\n<p>tmpfs 16G 0 16G 0% \/dev\/shm<\/p>\n<p>tmpfs 16G 18M 16G 1% \/run<\/p>\n<p>tmpfs 16G 0 16G 0% \/sys\/fs\/cgroup<\/p>\n<p>\/dev\/sda2 1014M 230M 785M 23% \/boot<\/p>\n<p>\/dev\/sda1 200M 8.5M 192M 5% \/boot\/efi<\/p>\n<p>\/dev\/mapper\/ol-home 491G 26G 466G 6% \/home<\/p>\n<p>tmpfs 3.1G 12K 3.1G 1% \/run\/user\/42<\/p>\n<p>tmpfs 3.1G 0 3.1G 0% \/run\/user\/0<\/p>\n<p>192.168.2.97:\/gv1.rdma 1.8T 638G 1.2T 36% \/test<\/p>\n<p>\u6211\u5728\u8fd9\u91cc\u7528\u4e86\u53e6\u4e00\u4e2aib\u94fe\u8defmount glusterfs\u5377\uff0c\u5bf9\u5e94192.168.2.x\u7684\u5730\u5740\uff0cglusterfs\u5185\u7f51\u4f7f\u7528192.168.1.x \u94fe\u8def\uff0c\u4e5f\u5c31\u662fprivate\u548cpublic\u7f51\u7edc\u5206\u5f00\uff0c\u907f\u514d\u4e89\u7528\u3002<\/p>\n<p>\u4e3a\u4e86\u5f97\u5230\u66f4\u597d\u7684\u5927\u6587\u4ef6\u64cd\u4f5c\u6027\u80fd\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u6253\u5f00shard\u529f\u80fd\uff1a<\/p>\n<p># gluster volume set gv1 features.shard on<\/p>\n<p>volume set: success<\/p>\n<p>\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8ba1\u7b97\u4e00\u4e2a\u5408\u9002\u7684\u5757\u5927\u5c0f\u6765\u505a\u5206\u7247\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u53c2\u6570\u8bbe\u5b9a\u3002<\/p>\n<ul>\n<li>\u6d4b\u8bd5<\/li>\n<\/ul>\n<p>\u521b\u5efa\u4e00\u4e2a\u5927\u6587\u4ef6\uff1a<\/p>\n<p># cd \/test<\/p>\n<p># fallocate \u2013l 100G disk01<\/p>\n<p># ls -l<\/p>\n<p>total 104857600<\/p>\n<p>-rw-r&#8211;r&#8211; 1 root root 107374182400 Aug 30 2018 disk01<\/p>\n<p>\u6587\u4ef6\u5728bricks\u4e0a\u5b58\u50a8\u4f1a\u88ab\u5206\u7247\uff0c\u5982\u679c\u6ca1\u542f\u7528shard\u529f\u80fd\uff0c\u8fd9\u4e2a100g\u7684\u5927\u6587\u4ef6\u53ea\u4f1a\u5728\u4e24\u4e2abrick\u4e0a\u5b58\u5728\uff0c\u56e0\u4e3a\u5206\u5e03\u590d\u5236\u5377\uff0c\u4f1a\u5206\u5e03\u591a\u4e2a\u6587\u4ef6\uff0c\u5355\u4e00\u6587\u4ef6\u662f\u4e0d\u62c6\u6563\u7684\uff0c\u6211\u4eec\u662f4\u4e2abrick\uff0c\u6240\u4ee5\u4f1a\u6709\u4e00\u4e2abrick\u590d\u5236\u8fd9\u4e2a\u6587\u4ef6\uff0c\u6240\u4ee5\u53ea\u6709\u4e24\u4e2abrick\u4e0a\u6709\u8fd9\u4e2a100g\u7684\u5927\u6587\u4ef6\u3002\u5982\u679c\u542f\u7528\u4e86shard\u529f\u80fd\uff0c\u7cfb\u7edf\u4f1a\u5c06\u6587\u4ef6\u5206\u6210\u82e5\u5e72\u4efd\uff0c\u57282\u4e2a\u4e92\u4e3a\u590d\u5236\u7684brick\u4e0a\u53ea\u653e\u6587\u4ef6\u7684\u7b2c\u4e00\u4e2a\u5206\u7247\uff0c\u5176\u4ed6\u5206\u7247\u4f1a\u5747\u5300\u7b2c\u5206\u5e03\u5230\u6240\u6709\u7684brick\u4e0a\uff0c\u5b58\u653e\u5728brick\u5bf9\u5e94\u7684\u76ee\u5f55\u4e0b\u7684\u9690\u85cf\u76ee\u5f55.shard\u4e0b\u3002<\/p>\n<p>\u6211\u4eec\u5230192.168.0.18\u4e0a\u67e5\u770b\uff1a<\/p>\n<p># pwd<\/p>\n<p>\/gfsdata\/data1<\/p>\n<p># ls -al<\/p>\n<p>total 65620<\/p>\n<p>drwxr-xr-x 4 root root 52 Aug 28 23:36 .<\/p>\n<p>drwxr-xr-x 4 root root 31 Aug 28 18:57 ..<\/p>\n<p>-rw-r&#8211;r&#8211; 2 root root 67108864 Aug 28 23:36 disk01<\/p>\n<p>drw&#8212;&#8212;- 263 root root 8192 Aug 28 23:36 .glusterfs<\/p>\n<p>drwxr-xr-x 2 root root 45056 Aug 28 23:36 .shard<\/p>\n<p># cd .\/.shard<\/p>\n<p># du -sh<\/p>\n<p>49G .<\/p>\n<p>\u53ef\u4ee5\u770b\u5230.\/shard\u76ee\u5f55\u4e0b\u5927\u6982\u662f49G\u7684\u6587\u4ef6\uff0c\u52a0\u4e0a\u6587\u4ef6\u7684\u7b2c\u4e00\u4e2a\u5206\u7247\uff0c2\u4e2a\u8282\u70b9100G\uff0c\u53cc\u526f\u672c\uff0c\u6240\u4ee5\u6bcf\u4e2a\u8282\u70b9\u90fd\u4f1a\u670950G\u5de6\u53f3\u7684\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GlusterFS\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\uff0c\u901a\u8fc7 RDMA \u548c TCP\/IP \u65b9\u5f0f\u5c06\u5206\u5e03\u5230\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u7684\u5b58\u50a8\u7a7a\u95f4\u6c47\u96c6\u6210\u4e00\u4e2a\u5927\u7684\u7f51\u7edc\u5e76\u884c\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u7684\u5b89\u88c5\u914d\u7f6e\u7b80\u5355\uff0c\u6269&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"http:\/\/www.rao-bing.cn\/index.php\/2018\/09\/11\/883\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-883","post","type-post","status-publish","format-aside","hentry","category-uncategorized","post_format-post-format-aside"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p8gSFq-ef","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":480,"url":"http:\/\/www.rao-bing.cn\/index.php\/2017\/01\/22\/480\/","url_meta":{"origin":883,"position":0},"title":"\u901a\u8fc7RDS\u5907\u4efd\uff1aOracle Secure Backup\u7b80\u4ecb","author":"raobing","date":"2017-01-22","format":"aside","excerpt":"\u00a0 \u80cc\u666f \u6700\u65e9\u542c\u8bf4\u8fd9\u4e2a\u540d\u5b57\u662f\u5728\u51e0\u5e74\u524d\u5b9e\u65bd\u7b2c\u4e00\u53f0EXADATA\u7684\u65f6\u5019\uff0c\u5f53\u65f6\u53ea\u662f\u5728\u6295\u6807\u6587\u4ef6\u91cc\u8ba4\u2026","rel":"","context":"\u5728\u201cOracle\u201d\u4e2d","block_context":{"text":"Oracle","link":"http:\/\/www.rao-bing.cn\/index.php\/category\/oracle\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/Oracle-Security-Backup.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":16123,"url":"http:\/\/www.rao-bing.cn\/index.php\/2020\/06\/23\/16123\/","url_meta":{"origin":883,"position":1},"title":"\u795e\u821f\u901a\u7528\u6570\u636e\u5e93\u53cc\u673a\u5207\u6362\u73af\u5883\u642d\u5efa","author":"raobing","date":"2020-06-23","format":"aside","excerpt":"\u795e\u821f\u901a\u7528\u7684\u53cc\u673a\u5207\u6362\u73af\u5883\u539f\u7406\u793a\u610f\u56fe\uff1a \u795e\u901a\u6570\u636e\u5e93\u7684\u53cc\u673a\u70ed\u5907\u539f\u7406\uff0c\u4eceOracle DBA\u7684\u89d2\u5ea6\uff0c\u5176\u5b9e\u4e0d\u96be\u2026","rel":"","context":"\u5728\u201c\u53bbO\u201d\u4e2d","block_context":{"text":"\u53bbO","link":"http:\/\/www.rao-bing.cn\/index.php\/tag\/de-oracle\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2020\/06\/lio_thumb.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2020\/06\/lio_thumb.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2020\/06\/lio_thumb.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2020\/06\/lio_thumb.png?resize=700%2C400 2x"},"classes":[]},{"id":699,"url":"http:\/\/www.rao-bing.cn\/index.php\/2017\/05\/18\/699\/","url_meta":{"origin":883,"position":2},"title":"\u91ca\u653eNVMe\u95ea\u5b58\u7684\u6027\u80fd &#8211;NVMe over Fabrics\u5728Oracle RAC\u4e2d\u7684\u5e94\u7528\u5b9e\u6d4b","author":"raobing","date":"2017-05-18","format":"aside","excerpt":"\u6982\u8ff0 \u4f17\u6240\u5468\u77e5\uff0cOracle RAC\u7684\u67b6\u6784\u662fShare Disk\uff0c\u5171\u4eab\u5b58\u50a8\u7684\u6027\u80fd\u5bf9\u7cfb\u7edf\u6574\u4f53\u8868\u73b0\u6765\u8bf4\u81f3\u2026","rel":"","context":"\u5728\u201cOracle\u201d\u4e2d","block_context":{"text":"Oracle","link":"http:\/\/www.rao-bing.cn\/index.php\/category\/oracle\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/05\/clip_image002.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/05\/clip_image002.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/05\/clip_image002.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":397,"url":"http:\/\/www.rao-bing.cn\/index.php\/2017\/01\/20\/397\/","url_meta":{"origin":883,"position":3},"title":"\u5728vSphere\u73af\u5883\u4e0b\u5b89\u88c5RUEI\u6d4b\u8bd5\u73af\u5883","author":"raobing","date":"2017-01-20","format":"aside","excerpt":"(\u6574\u7406\u4ee5\u524d\u5199\u8fc7\u7684\u8001\u6587\u7ae0\uff0c\u73b0\u5728\u4e5f\u8fd8\u6709\u4ef7\u503c\uff09 RUEI\u7684\u5b66\u4e60\u6d4b\u8bd5\u73af\u5883\u9700\u8981\u6709\u652f\u6301\u7aef\u53e3\u955c\u50cf\u7684\u4ea4\u6362\u673a\uff0c\u4ee5\u5f80\u6211\u4eec\u2026","rel":"","context":"\u5728\u201cOracle\u201d\u4e2d","block_context":{"text":"Oracle","link":"http:\/\/www.rao-bing.cn\/index.php\/category\/oracle\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image006_thumb.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image006_thumb.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/clip_image006_thumb.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":16168,"url":"http:\/\/www.rao-bing.cn\/index.php\/2020\/10\/18\/16168\/","url_meta":{"origin":883,"position":4},"title":"two node RAC can not start after reboot\uff08SUSE Linux 12.3\uff09","author":"raobing","date":"2020-10-18","format":"aside","excerpt":"\u5ba2\u6237\u7684\u4e00\u5957\u90e8\u7f72\u5728SUSE linux \u4e0a\u7684\u4e24\u8282\u70b9RAC\uff0c\u7a33\u5b9a\u8fd0\u884c\u4e00\u5e74\u591a\u4e86\uff0c\u5728\u4f8b\u884c\u7ef4\u62a4\u91cd\u542f\u540e\uff0c\u51fa\u73b0\u4e86C\u2026","rel":"","context":"\u5728\u201cOracle\u201d\u4e2d","block_context":{"text":"Oracle","link":"http:\/\/www.rao-bing.cn\/index.php\/category\/oracle\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":305,"url":"http:\/\/www.rao-bing.cn\/index.php\/2017\/01\/19\/305\/","url_meta":{"origin":883,"position":5},"title":"Zabbix\u57fa\u672c\u914d\u7f6e\u53ca\u76d1\u63a7\u4e3b\u673a","author":"raobing","date":"2017-01-19","format":"aside","excerpt":"\u76d1\u63a7\u4e3b\u673a\u4e00\u7248\u9700\u8981\u5728\u88ab\u76d1\u63a7\u7684\u4e3b\u673a\u4e0a\u5b89\u88c5Zabbix Agent \u76d1\u63a7\u4e3b\u673a \u5b89\u88c5zabbix-agent\u2026","rel":"","context":"\u5728\u201cTools\u201d\u4e2d","block_context":{"text":"Tools","link":"http:\/\/www.rao-bing.cn\/index.php\/category\/tools\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/011917_0223_Zabbix5.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/011917_0223_Zabbix5.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/011917_0223_Zabbix5.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/011917_0223_Zabbix5.png?resize=700%2C400 2x, https:\/\/i0.wp.com\/www.rao-bing.cn\/wp-content\/uploads\/2017\/01\/011917_0223_Zabbix5.png?resize=1050%2C600 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/posts\/883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/comments?post=883"}],"version-history":[{"count":2,"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/posts\/883\/revisions"}],"predecessor-version":[{"id":907,"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/posts\/883\/revisions\/907"}],"wp:attachment":[{"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/media?parent=883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/categories?post=883"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.rao-bing.cn\/index.php\/wp-json\/wp\/v2\/tags?post=883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}