{"id":252237,"date":"2015-03-02T20:10:02","date_gmt":"2015-03-02T16:10:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=252237"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=252237","title":{"rendered":"\u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0432 GlusterFS"},"content":{"rendered":"<p>     \t\u041d\u0430\u0448\u0435\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 GlusterFS, \u043d\u043e \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u043d\u0438\u0447\u0435\u0433\u043e \u043e \u0442\u0438\u043f\u0430\u0445 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0438 \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u044f \u0434\u043e\u043b\u0433\u043e \u0438\u0433\u0440\u0430\u043b\u0441\u044f. \u041e \u0447\u0435\u043c \u0438 \u043f\u043e\u0439\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435. <\/p>\n<p>  GlusterFS \u2014 \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0438 \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f FUSE \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044e, \u0442.\u0435. \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0432\u0435\u0440\u0445 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u041e\u0421 Ubuntu 12.04.<\/p>\n<p>  \u0411\u0443\u0434\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c (\u0442\u0435\u0441\u0442\u0438\u0442\u044c) \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0435. \u0418\u043c\u0435\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:<br \/>\n        IP<br \/>\n    Hostname<br \/>\n    Short name<br \/>\n        192.168.1.100  server1.example.com  server1      192.168.1.101  server2.example.com  server2      192.168.1.102  client1.example.com  client1      <\/p>\n<p>  1. \u041e\u0431\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<br \/>\n  \u0421\u043d\u0430\u0447\u0430\u043b\u0430, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u0441\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u0432 \u0445\u043e\u0441\u0442\u044b \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435.<br \/>\n  root@server1:~# cat \/etc\/hosts 127.0.0.1       localhost 192.168.1.100   server1.example.com     server1 192.168.1.101   server2.example.com     server2 192.168.1.102   client1.example.com     client1  root@server2:~# cat \/etc\/hosts 127.0.0.1       localhost 192.168.1.100   server1.example.com     server1 192.168.1.101   server2.example.com     server2 192.168.1.102   client1.example.com     client1  root@client1:~# cat \/etc\/hosts 127.0.0.1       localhost 192.168.1.100   server1.example.com     server1 192.168.1.101   server2.example.com     server2 192.168.1.102   client1.example.com     client1 <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f firewall, \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c TCP \u043f\u043e\u0440\u0442\u044b 111, 24007-24050 \u043d\u0430 \u0432\u0441\u0435\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u044e\u0442 \u0432 \u0440\u043e\u043b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 (\u0434\u0432\u0443\u0445, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0438).<\/p>\n<p>  2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 (\u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430)<br \/>\n  \u041d\u0430 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c gluster-server. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0430\u043c\u0430\u044f \u0441\u0432\u0435\u0436\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u2013 3.5.2. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 ppa \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432.<br \/>\n  root@server1:~#apt-get install python-software-properties root@server1:~#add-apt-repository ppa:semiosis\/ubuntu-glusterfs-3.5 root@server1:~#apt-get update root@server1:~#apt-get install glusterfs-server -\u0443  root@server2:~#apt-get install python-software-properties root@server2:~#add-apt-repository ppa:semiosis\/ubuntu-glusterfs-3.5 root@server2:~#apt-get update root@server2:~# apt-get install glusterfs-server -\u0443<br \/>\n  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440.<br \/>\n  root@server1:~# gluster peer probe server2.example.com Probe successful <\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0441\u0442\u0430\u0442\u0443\u0441:<br \/>\n  root@server1:~# gluster peer status Number of Peers: 1  Hostname: server2.example.com Uuid: 0f3aa4f4-f9dd-4cd2-a7a5-126606fbab33 State: Peer in Cluster (Connected)  <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, server2 \u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0438 \u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0443\u0441 \u2013 Connected. \u0422\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u0441\u0435 \u043e\u043a.<br \/>\n  root@server2:~# gluster peer status Number of Peers: 1  Hostname: 192.168.1.100 Uuid: ae4e6766-787f-4d0c-8b96-8fc9523ef346 State: Peer in Cluster (Connected)  <\/p>\n<p>  GlusterFS \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 5 \u0442\u0438\u043f\u043e\u0432 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0451\u043d\u043d\u043e\u0433\u043e \u0432 volume:<br \/>\n    Distributed (\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439)  Replicated (\u0440\u0435\u043f\u043b\u0438\u0446\u0438\u0440\u0443\u0435\u043c\u044b\u0439)  Striped (\u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u043e \u0447\u0430\u0441\u0442\u044f\u043c)  Distributed Striped (\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u043e \u0447\u0430\u0441\u0442\u044f\u043c)  Distributed Replicated (\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u0438 \u0440\u0435\u043f\u043b\u0438\u0446\u0438\u0440\u0443\u0435\u043c\u044b\u0439)  <\/p>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043f \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0438 \u043f\u043e\u0442\u043e\u043c \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u0435 5 volum-\u043e\u0432 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432. <\/p>\n<p>  2.1 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 distributed volume<br \/>\n  \u041f\u0440\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043c\u0435\u0436\u0434\u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u043f\u043a\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0445\u043e\u0434\u0438\u0432 \u0432 volume.<br \/>\n  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u0430\u043a\u0438 dist1, dist2, \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u2013 dist3, dist4.<br \/>\n  root@server1:~# mkdir \/mnt\/dist{1,2} root@server2:~# mkdir \/mnt\/dist{3,4}<br \/>\n  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u0441\u0442\u0430\u0440\u0442\u0430\u043d\u0443\u0442\u044c volume.<br \/>\n  root@server1:~# gluster volume create distributed transport tcp server1:\/mnt\/dist1 server1:\/mnt\/dist2 server2:\/mnt\/dist3 server2:\/mnt\/dist4 force         Creation of volume distributed has been successful. Please start the volume to access data. root@server1:~# gluster volume start distributed Starting volume distributed has been successful <\/p>\n<p>  2.2 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 replicated volume<br \/>\n  \u041f\u0440\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u043e (\u043a\u0430\u043a RAID1) \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u043f\u043a\u043e\u0439 (\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0445\u043e\u0434\u0438\u0432 \u0432 volume. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u043f\u043e\u043a(\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432) \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 volume \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043a\u0440\u0430\u0442\u043d\u043e \u0440\u0435\u043f\u043b\u0438\u043a\u0435(replica).<br \/>\n  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u0430\u043a\u0438 repl1, repl2, \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u2013 repl3, repl4.<br \/>\n  root@server1:~# mkdir \/mnt\/repl{1,2} root@server2:~# mkdir \/mnt\/repl{3,4} <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u0441\u0442\u0430\u0440\u0442\u0430\u043d\u0443\u0442\u044c volume.<br \/>\n  root@server1:~# gluster volume create replicated replica 4 transport tcp server1:\/mnt\/repl1 server2:\/mnt\/repl3 server1:\/mnt\/repl2 server2:\/mnt\/repl4 force                    Multiple bricks of a replicate volume are present on the same server. This setup is not optimal. Do you still want to continue creating the volume?  (y\/n) y volume create: replicated: success: please start the volume to access data root@server1:~# gluster volume start replicated volume start: replicated: success  <\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0438 \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0435\u043f\u043b\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0432\u0441\u0435 4 \u043f\u0430\u043f\u043a\u0438. \u0422.\u0435. \u0432\u043e \u0432\u0441\u0435\u0445 \u043f\u0430\u043f\u043a\u0430\u0445 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043a\u043e\u043d\u0442\u0435\u043d\u0442. <\/p>\n<p>  2.3 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 striped volume<br \/>\n  \u041f\u0440\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0447\u0430\u0441\u0442\u0438 \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u0443\u0441\u043e\u043a \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u043f\u0430\u043f\u043e\u043a \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 volume. \u0422\u0430\u043a\u043e\u0439 \u0442\u0438\u043f \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0435\u043c\u043a\u043e\u0441\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c (\u0432\u0438\u0434\u0435\u043e\u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0432 \u0445\u043e\u0440\u043e\u0448\u0435\u043c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443). \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u043f\u043e\u043a \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 volume \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e stripe. \u0422.\u0435. \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 5 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u0442\u043e \u0444\u0430\u0439\u043b \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 5 \u0447\u0430\u0441\u0442\u0435\u0439 \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0435\u0433\u043e \u043a\u0443\u0441\u043e\u0447\u0435\u043a \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0432\u0441\u0435\u0445 5 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445.<br \/>\n  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u0430\u043a\u0438 strip1, strip2, \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u2013 strip3, strip4.<br \/>\n  root@server1:~# mkdir \/mnt\/strip{1,2} root@server2:~# mkdir \/mnt\/strip{3,4} <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u0441\u0442\u0430\u0440\u0442\u0430\u043d\u0443\u0442\u044c volume.<br \/>\n  root@server1:~# gluster volume create striped stripe 4 transport tcp server1:\/mnt\/strip1 server1:\/mnt\/strip2 server2:\/mnt\/strip3 server2:\/mnt\/strip4 force                    Creation of volume striped has been successful. Please start the volume to access data. root@server1:~# gluster volume start striped Starting volume striped has been successful  <\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 4-\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432(\u043f\u0430\u043f\u043e\u043a) \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u043a\u0443\u0441\u043e\u0447\u043a\u0443 \u0437\u0430\u043b\u0438\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430. <\/p>\n<p>  2.4 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 distributed striped volume<br \/>\n  \u041f\u0440\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0447\u0430\u0441\u0442\u0438 \u0438 \u043a\u0443\u0441\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u043e \u043f\u0430\u043f\u043a\u0430\u043c \u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043d\u0438\u0445. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u043f\u043e\u043a \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 volume \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043a\u0440\u0430\u0442\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e stripe. \u0422.\u0435. \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 8 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 stripe \u0440\u0430\u0432\u043d\u043e 4, \u0442\u043e \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 4 \u0447\u0430\u0441\u0442\u0438 \u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0438\u043b\u0438 \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 4-\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u0438\u043b\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 4-\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432. \u0422\u0430\u043a \u0436\u0435 \u0441\u0430\u043c\u043e, \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 4 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 stripe \u0440\u0430\u0432\u043d\u043e 2, \u0442\u043e \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 2 \u0447\u0430\u0441\u0442\u0438 \u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 2-\u0445 \u0438\u043b\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 2-\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445.<br \/>\n  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u0430\u043a\u0438 dist-strip1, dist-strip2, \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u2013 dist-strip3, dist-strip4.<br \/>\n  root@server1:~# mkdir \/mnt\/dist-strip{1,2} root@server2:~# mkdir \/mnt\/dist-strip{3,4} <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u0441\u0442\u0430\u0440\u0442\u0430\u043d\u0443\u0442\u044c volume. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438\u0433\u0440\u0430\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0440\u043e\u043b\u044c: \u0447\u0430\u0441\u0442\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u0430\u0440\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 (\u043f\u0440\u0438 stripe=2), \u0438\u043b\u0438 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0435\u0442\u0432\u0435\u0440\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 (\u043f\u0440\u0438 stripe=4), \u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0432\u043e\u0439 \u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0430\u0440\u043e\u0439 \u0438\u043b\u0438 \u0447\u0435\u0442\u0432\u0435\u0440\u043a\u043e\u0439 \u0438 \u0442.\u043f.<br \/>\n  root@server1:~# gluster volume create distributed-striped stripe 2 transport tcp server1:\/mnt\/dist-strip1 server2:\/mnt\/dist-strip3 server1:\/mnt\/dist-strip2 server2:\/mnt\/dist-strip4 force Creation of volume distributed-striped has been successful. Please start the volume to access data. root@server1:~# gluster volume start distributed-striped Starting volume distributed-striped has been successful  <\/p>\n<p>  2.5 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 distributed replicated volume<br \/>\n  \u041f\u0440\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043c\u0435\u0436\u0434\u0443 \u043f\u0430\u043f\u043a\u0430\u043c\u0438 \u0438 \u043a\u0430\u0436\u0434\u0430\u044f \u043f\u0430\u043f\u043a\u0430 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u044e \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u043f\u043e\u043a \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 volume \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043a\u0440\u0430\u0442\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e replica. \u0422.\u0435. \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 4 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 replica \u0440\u0430\u0432\u043d\u043e 2, \u0442\u043e \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u043e 2-\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u0430 2 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 \u0434\u0432\u0443\u0445. \u0415\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 8 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 replica \u0440\u0430\u0432\u043d\u043e 4, \u0442\u043e \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u043e\u0434\u043d\u043e \u0437\u0435\u0440\u043a\u0430\u043b\u043e \u0438\u0437 4-\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432.<br \/>\n  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u0430\u043a\u0438 dist-repl1, dist-repl2, \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u2013 dist-repl3, dist-repl4.<br \/>\n  root@server1:~# mkdir \/mnt\/dist-repl{1,2} root@server2:~# mkdir \/mnt\/dist-repl{3,4} <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u0441\u0442\u0430\u0440\u0442\u0430\u043d\u0443\u0442\u044c volume. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438\u0433\u0440\u0430\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0440\u043e\u043b\u044c: \u043f\u0435\u0440\u0432\u0430\u044f \u043f\u0430\u0440\u0430(\u0447\u0435\u0442\u0432\u0435\u0440\u043a\u0430) \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0434\u043d\u0443 \u0440\u0435\u043f\u043b\u0438\u043a\u0443. \u0422.\u0435. \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 8 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 replica \u0440\u0430\u0432\u043d\u0430 4, \u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0435 4 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u043e\u0434\u0438\u043d \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442, \u0430 \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0435\u0442\u0432\u0435\u0440\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442, \u0438 \u0442.\u043f. <\/p>\n<p>  root@server1:~# gluster volume create distributed-replicated replica 2 transport tcp server1:\/mnt\/dist-repl1 server2:\/mnt\/dist-repl3 server1:\/mnt\/dist-repl2 server2:\/mnt\/dist-repl4 force     Creation of volume distributed-replicated has been successful. Please start the volume to access data. root@server1:~# gluster volume start distributed-replicated Starting volume distributed-replicated has been successful  <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043a\u0430\u043a\u0438\u0435 volum-\u044b \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438.<br \/>\n  root@server1:~# gluster volume info   Volume Name: distributed Type: Distribute Volume ID: 01622619-fd93-4ee1-85ad-ca8cf1d85f7e Status: Started Number of Bricks: 4 Transport-type: tcp Bricks: Brick1: server1:\/mnt\/dist1 Brick2: server1:\/mnt\/dist2 Brick3: server2:\/mnt\/dist3 Brick4: server2:\/mnt\/dist4   Volume Name: replicated Type: Replicate Volume ID: 67afcb89-7e5d-4a02-b4ac-0c2de7cd97be Status: Started Number of Bricks: 1 x 4 = 4 Transport-type: tcp Bricks: Brick1: server1:\/mnt\/repl1 Brick2: server2:\/mnt\/repl3 Brick3: server1:\/mnt\/repl2 Brick4: server2:\/mnt\/repl4   Volume Name: striped Type: Stripe Volume ID: e9ef42bf-8265-4973-85de-4cafd2a68fec Status: Started Number of Bricks: 1 x 4 = 4 Transport-type: tcp Bricks: Brick1: server1:\/mnt\/strip1 Brick2: server1:\/mnt\/strip2 Brick3: server2:\/mnt\/strip3 Brick4: server2:\/mnt\/strip4   Volume Name: distributed-striped Type: Distributed-Stripe Volume ID: aa70dd67-3ca9-48cb-865b-b10f8ca1ccad Status: Started Number of Bricks: 2 x 2 = 4 Transport-type: tcp Bricks: Brick1: server1:\/mnt\/dist-strip1 Brick2: server2:\/mnt\/dist-strip3 Brick3: server1:\/mnt\/dist-strip2 Brick4: server2:\/mnt\/dist-strip4   Volume Name: distributed-replicated Type: Distributed-Replicate Volume ID: 59a819c4-6e84-4c49-9e90-23daa59d12ee Status: Started Number of Bricks: 2 x 2 = 4 Transport-type: tcp Bricks: Brick1: server1:\/mnt\/dist-repl1 Brick2: server2:\/mnt\/dist-repl3 Brick3: server1:\/mnt\/dist-repl2 Brick4: server2:\/mnt\/dist-repl4 <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0443 \u043d\u0430\u0441 5 volum-\u043e\u0432 \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c \u0442\u0438\u043f\u043e\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430. \u041c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438. <\/p>\n<p>  3. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<br \/>\n  \u041d\u0430 \u0432\u0441\u0435\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u0445 \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c gluster-client \u0438\u0437 ppa \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432.<br \/>\n  root@client1:~#apt-get install python-software-properties root@client1:~#add-apt-repository ppa:semiosis\/ubuntu-glusterfs-3.5 root@client1:~#apt-get update root@client1:~#apt-get install glusterfs-client  <\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e volum-a. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c IP \u0438\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0440\u043e\u043b\u0438 \u043d\u0435 \u0438\u0433\u0440\u0430\u0435\u0442, \u0442.\u0435. \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 10 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u043e\u0434\u0438\u043d \u043a\u043b\u0430\u0441\u0442\u0435\u0440, \u0442\u043e \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u043c\u043e\u0436\u043d\u043e \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0448\u0430\u0440\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043b\u044e\u0431\u043e\u0439 \u0438\u0437 10-\u0442\u0438 IP, \u0438\u043c\u044f volum-a \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043c \u0436\u0435. <\/p>\n<p>  3.1 \u041c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0442\u0435\u0441\u0442 distributed volume<br \/>\n  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c distributed volume.<br \/>\n  root@client1:~# mkdir \/mnt\/distrib  root@client1:~# mount.glusterfs server1:\/distributed \/mnt\/distrib\/ root@client1:~# df -h Filesystem            Size  Used Avail Use% Mounted on \/dev\/sda1             7.3G  1.5G  5.5G  21% \/ udev                  236M  4.0K  236M   1% \/dev tmpfs                  49M  280K   49M   1% \/run none                  5.0M     0  5.0M   0% \/run\/lock none                  245M     0  245M   0% \/run\/shm server1:\/distributed   30G  6.3G   22G  23% \/mnt\/distrib <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0443 \u043d\u0430\u0441 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0441\u043a \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 30\u0413\u0431(\u0441\u0443\u043c\u043c\u0430\u0440\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0438\u0441\u043a\u043e\u0432 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 volume). \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432.<br \/>\n  root@client1:~# seq 1 10 | while read line; do echo &quot;This is File${line}&quot; &gt; \/mnt\/distrib\/file${line};done root@client1:~# ls \/mnt\/distrib\/  file1  file10  file2  file3  file4  file5  file6  file7  file8  file9 <\/p>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043f\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c.<br \/>\n  root@server1:~# ls \/mnt\/dist[0-9]\/ \/mnt\/dist1\/: file10  file3  file4  file9  \/mnt\/dist2\/: file7  root@server2:~# ls \/mnt\/dist[0-9]\/ \/mnt\/dist3\/: file1  file2  \/mnt\/dist4\/: file5  file6  file8 <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0444\u0430\u0439\u043b\u044b \u0440\u0430\u0441\u043a\u0438\u0434\u0430\u043b\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0447\u0435\u0442\u044b\u0440\u0435\u043c \u043f\u0430\u043f\u043a\u0430\u043c, \u043a\u0430\u043a\u0438\u0435 \u0432\u0445\u043e\u0434\u0438\u043b\u0438 \u0432 distributed volume. <\/p>\n<p>  3.2 \u041c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0442\u0435\u0441\u0442 replicated volume<br \/>\n  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c replicated volume.<br \/>\n  root@client1:~# mkdir \/mnt\/replica root@client1:~# mount.glusterfs server1:\/replicated \/mnt\/replica\/ root@client1:~# df -h Filesystem           Size  Used Avail Use% Mounted on \/dev\/sda1            7.3G  1.5G  5.5G  21% \/ udev                 131M  4.0K  131M   1% \/dev tmpfs                 28M  280K   28M   1% \/run none                 5.0M     0  5.0M   0% \/run\/lock none                 140M     0  140M   0% \/run\/shm server1:\/replicated  7.3G  1.9G  5.1G  28% \/mnt\/replica  <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0443 \u043d\u0430\u0441 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0441\u043a \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 7.3\u0413\u0431(\u0441\u0443\u043c\u043c\u0430\u0440\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0438\u0441\u043a\u043e\u0432 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 volume \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u0447\u0438\u0441\u043b\u043e \u0440\u0435\u043f\u043b\u0438\u043a). \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432.<br \/>\n  root@client1:~# seq 1 10 | while read line; do echo &quot;This is File${line}&quot; &gt; \/mnt\/replica\/file${line};done root@client1:~# ls \/mnt\/replica\/  file1  file10  file2  file3  file4  file5  file6  file7  file8  file9 <\/p>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043f\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c.<br \/>\n  root@server1:~# ls \/mnt\/repl* \/mnt\/repl1: file1  file10  file2  file3  file4  file5  file6  file7  file8  file9  \/mnt\/repl2: file1  file10  file2  file3  file4  file5  file6  file7  file8  file9   root@server2:~# ls \/mnt\/repl* \/mnt\/repl3: file1  file10  file2  file3  file4  file5  file6  file7  file8  file9  \/mnt\/repl4: file1  file10  file2  file3  file4  file5  file6  file7  file8  file9 <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0444\u0430\u0439\u043b\u044b \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0432 \u043a\u0430\u0436\u0434\u0443\u044e \u043f\u0430\u043f\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0445\u043e\u0434\u0438\u043b\u0438 \u0432 replicated volume.<\/p>\n<p>  3.3 \u041c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0442\u0435\u0441\u0442 striped volume<br \/>\n  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c striped volume.<br \/>\n  root@client1:~# mkdir \/mnt\/strip root@client1:~# mount.glusterfs server1:\/striped \/mnt\/strip\/ root@client1:~# df -h Filesystem        Size  Used Avail Use% Mounted on \/dev\/sda1         7.3G  1.5G  5.5G  21% \/ udev              131M  4.0K  131M   1% \/dev tmpfs              28M  280K   28M   1% \/run none              5.0M     0  5.0M   0% \/run\/lock none              140M     0  140M   0% \/run\/shm server1:\/striped   30G  6.3G   22G  23% \/mnt\/strip  <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0443 \u043d\u0430\u0441 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0441\u043a \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 30\u0413\u0431(\u0441\u0443\u043c\u043c\u0430\u0440\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0438\u0441\u043a\u043e\u0432 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 volume). \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0430\u0440\u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443.<br \/>\n  root@client1:~# dd if=\/dev\/urandom of=test2.bin bs=30M count=10 root@client1:~# dd if=\/dev\/urandom of=test1.bin bs=30M count=10 root@client1:~# cp test* \/mnt\/strip\/ root@client1:~# ls -lh \/mnt\/strip\/ total 601M -rw-r&#8212;r&#8212; 1 root root 300M Mar  2 14:13 test1.bin -rw-r&#8212;r&#8212; 1 root root 300M Mar  2 14:13 test2.bin <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0443 \u043d\u0430\u0441 \u0432 \u043f\u0430\u043f\u043a\u0435 \u043b\u0435\u0436\u0438\u0442 2 \u0444\u0430\u0439\u043b\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 300\u041c\u0431. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043f\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c.<br \/>\n  root@server1:~# ls -lh \/mnt\/strip* \/mnt\/strip1: total 151M -rw-r&#8212;r&#8212; 2 root root  75M Mar  2 14:13 test1.bin -rw-r&#8212;r&#8212; 2 root root  75M Mar  2 14:13 test2.bin  \/mnt\/strip2: total 151M -rw-r&#8212;r&#8212; 2 root root  75M Mar  2 14:13 test1.bin -rw-r&#8212;r&#8212; 2 root root  75M Mar  2 14:13 test2.bin    root@server2:~# ls -lh \/mnt\/strip* \/mnt\/strip3: total 151M -rw-r&#8212;r&#8212; 2 root root  75M Mar  2 14:13 test1.bin -rw-r&#8212;r&#8212; 2 root root  75M Mar  2 14:13 test2.bin  \/mnt\/strip4: total 151M -rw-r&#8212;r&#8212; 2 root root  75M Mar  2 14:13 test1.bin -rw-r&#8212;r&#8212; 2 root root  75M Mar  2 14:13 test2.bin  <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0444\u0430\u0439\u043b\u044b \u0431\u044b\u043b\u0438 \u0440\u0430\u0437\u0431\u0438\u0442\u044b \u043d\u0430 \u0440\u0430\u0432\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u0438 \u043f\u043e 75\u041c\u0431 \u0438 \u0440\u0430\u0437\u0431\u0440\u043e\u0441\u0430\u043d\u044b \u043f\u043e \u0432\u0441\u0435\u043c \u0447\u0435\u0442\u044b\u0440\u0435\u043c \u043f\u0430\u043f\u043a\u0430\u043c, \u043a\u0430\u043a\u0438\u0435 \u0432\u0445\u043e\u0434\u0438\u043b\u0438 \u0432 striped volume. <\/p>\n<p>  3.4 \u041c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0442\u0435\u0441\u0442 distributed striped volume<br \/>\n  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c distributed striped volume.<br \/>\n  root@client1:~# mkdir \/mnt\/distrib-strip root@client1:~# mount.glusterfs server1:\/distributed-striped \/mnt\/distrib-strip\/ root@client1:~# df -h Filesystem                    Size  Used Avail Use% Mounted on \/dev\/sda1                     7.3G  1.8G  5.2G  25% \/ udev                          131M  4.0K  131M   1% \/dev tmpfs                          28M  280K   28M   1% \/run none                          5.0M     0  5.0M   0% \/run\/lock none                          140M     0  140M   0% \/run\/shm server1:\/distributed-striped   30G  6.9G   21G  26% \/mnt\/distrib-strip  <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0443 \u043d\u0430\u0441 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0441\u043a \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 30\u0413\u0431(\u0441\u0443\u043c\u043c\u0430\u0440\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0438\u0441\u043a\u043e\u0432 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 volume). \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0430\u0440\u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443.<br \/>\n  root@client1:~# dd if=\/dev\/urandom of=test2.bin bs=30M count=10 root@client1:~# dd if=\/dev\/urandom of=test1.bin bs=30M count=10 root@client1:~# cp test* \/mnt\/distrib-strip\/ root@client1:~# ls -lh \/mnt\/distrib-strip\/ total 600M -rw-r&#8212;r&#8212; 1 root root 300M Mar  2 14:35 test1.bin -rw-r&#8212;r&#8212; 1 root root 300M Mar  2 14:34 test2.bin  <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0443 \u043d\u0430\u0441 \u0432 \u043f\u0430\u043f\u043a\u0435 \u043b\u0435\u0436\u0438\u0442 2 \u0444\u0430\u0439\u043b\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 300\u041c\u0431. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043f\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c.<br \/>\n  root@server1:~# ls -lh \/mnt\/dist-strip*   \/mnt\/dist-strip1: total 151M -rw-r&#8212;r&#8212; 2 root root 150M Mar  2 14:35 test1.bin  \/mnt\/dist-strip2: total 151M -rw-r&#8212;r&#8212; 2 root root 150M Mar  2 14:34 test2.bin  root@server2:~# ls -lh \/mnt\/dist-strip*   \/mnt\/dist-strip3: total 151M -rw-r&#8212;r&#8212; 2 root root 150M Mar  2 14:35 test1.bin  \/mnt\/dist-strip4: total 151M -rw-r&#8212;r&#8212; 2 root root 150M Mar  2 14:34 test2.bin <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0444\u0430\u0439\u043b\u044b \u0431\u044b\u043b\u0438 \u0440\u0430\u0437\u0431\u0440\u043e\u0441\u0430\u043d\u044b \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u0430\u043f\u043a\u0430\u043c \u0438 \u0440\u0430\u0437\u0431\u0438\u0442\u044b \u043d\u0430 \u0440\u0430\u0432\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u0438 \u043f\u043e 150\u041c\u0431. <\/p>\n<p>  3.5 \u041c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0442\u0435\u0441\u0442 distributed replicated volume<br \/>\n  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c distributed replicated volume.<br \/>\n  root@client1:~# mkdir \/mnt\/distrib-repl root@client1:~# mount.glusterfs server1:\/distributed-replicated \/mnt\/distrib-repl\/ root@client1:~# df -h Filesystem                       Size  Used Avail Use% Mounted on \/dev\/sda1                        7.3G  1.8G  5.1G  27% \/ udev                             131M  4.0K  131M   1% \/dev tmpfs                             28M  280K   28M   1% \/run none                             5.0M     0  5.0M   0% \/run\/lock none                             140M     0  140M   0% \/run\/shm server1:\/distributed-replicated   15G  4.4G  9.5G  32% \/mnt\/distrib-repl  <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0443 \u043d\u0430\u0441 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0441\u043a \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 15\u0413\u0431(\u0441\u0443\u043c\u043c\u0430\u0440\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0438\u0441\u043a\u043e\u0432 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 volume \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u0447\u0438\u0441\u043b\u043e \u0440\u0435\u043f\u043b\u0438\u043a). \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432.<br \/>\n  root@client1:~# seq 1 10 | while read line; do echo &quot;This is File${line}&quot; &gt; \/mnt\/distrib-repl\/file${line};done     root@client1:~# ls \/mnt\/distrib-repl\/ file1  file10  file2  file3  file4  file5  file6  file7  file8  file9  <\/p>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043f\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c.<br \/>\n   root@server1:~# ls \/mnt\/dist-repl* \/mnt\/dist-repl1: file10  file3  file4  file7  file9  \/mnt\/dist-repl2: file1  file2  file5  file6  file8   root@server2:~# ls \/mnt\/dist-repl* \/mnt\/dist-repl3: file10  file3  file4  file7  file9  \/mnt\/dist-repl4: file1  file2  file5  file6  file8  <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438\u043c\u0435\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043a\u0430\u043a \u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0437\u0431\u0440\u043e\u0441\u0430\u043d\u043d\u044b\u0439 \u043f\u043e \u043f\u0430\u043f\u043a\u0430\u043c. <\/p>\n<p>  4. \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<br \/>\n  \u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043a\u0430\u0436\u0434\u0430\u044f \u043f\u0430\u043f\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0434\u0438\u0441\u043a\u043e\u043c (\u043d\u0435 \u0440\u0443\u0442\u043e\u0432\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439). \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u0442\u0438\u043f\u043e\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 glusterFS. <\/p>\n<p>  GlusterFS \u0445\u043e\u0440\u043e\u0448\u043e \u0441\u0435\u0431\u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u044f\u0445 \u043f\u0440\u0438 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435, \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u043f\u043e \u0441\u0442\u0440\u0430\u043d\u0430\u043c \u0434\u0430\u0442\u0430\u0446\u0435\u043d\u0442\u0440\u0430\u0445, \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u044e\u043d\u0438\u043d\u0433 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043a\u0430\u043a \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0442\u0430\u043a \u0438 \u043f\u0440\u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435, \u043e \u0447\u0435\u043c \u043f\u043e\u0439\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.      \t \t   \thttp:\/\/habrahabr.ru\/post\/251931\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u041d\u0430\u0448\u0435\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 GlusterFS, \u043d\u043e \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u043d\u0438\u0447\u0435\u0433\u043e \u043e \u0442\u0438\u043f\u0430\u0445 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0438 \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u044f \u0434\u043e\u043b\u0433\u043e \u0438\u0433\u0440\u0430\u043b\u0441\u044f. \u041e \u0447\u0435\u043c \u0438 \u043f\u043e\u0439\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435. <\/p>\n<p>  GlusterFS \u2014 \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0438 \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f FUSE \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044e, \u0442.\u0435. \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0432\u0435\u0440\u0445 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u041e\u0421 Ubuntu 12.04.<\/p>\n<p>  \u0411\u0443\u0434\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c (\u0442\u0435\u0441\u0442\u0438\u0442\u044c) \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0435. \u0418\u043c\u0435\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:<br \/>\n        IP<br \/>\n    Hostname<br \/>\n    Short name<br \/>\n        192.168.1.100  server1.example.com  server1      192.168.1.101  server2.example.com  server2      192.168.1.102  client1.example.com  client1      <\/p>\n<p>  1. \u041e\u0431\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<br \/>\n  \u0421\u043d\u0430\u0447\u0430\u043b\u0430, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u0441\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u0432 \u0445\u043e\u0441\u0442\u044b \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435.<br \/>\n  root@server1:~# cat \/etc\/hosts 127.0.0.1       localhost 192.168.1.100   server1.example.com     server1 192.168.1.101   server2.example.com     server2 192.168.1.102   client1.example.com     client1  root@server2:~# cat \/etc\/hosts 127.0.0.1       localhost 192.168.1.100   server1.example.com     server1 192.168.1.101   server2.example.com     server2 192.168.1.102   client1.example.com     client1  root@client1:~# cat \/etc\/hosts 127.0.0.1       localhost 192.168.1.100   server1.example.com     server1 192.168.1.101   server2.example.com     server2 192.168.1.102   client1.example.com     client1 <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f firewall, \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c TCP \u043f\u043e\u0440\u0442\u044b 111, 24007-24050 \u043d\u0430 \u0432\u0441\u0435\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u044e\u0442 \u0432 \u0440\u043e\u043b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 (\u0434\u0432\u0443\u0445, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0438).<\/p>\n<p>  2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 (\u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430)<br \/>\n  \u041d\u0430 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c gluster-server. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0430\u043c\u0430\u044f \u0441\u0432\u0435\u0436\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u2013 3.5.2. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 ppa \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432.<br \/>\n  root@server1:~#apt-get install python-software-properties root@server1:~#add-apt-repository ppa:semiosis\/ubuntu-glusterfs-3.5 root@server1:~#apt-get update root@server1:~#apt-get install glusterfs-server -\u0443  root@server2:~#apt-get install python-software-properties root@server2:~#add-apt-repository ppa:semiosis\/ubuntu-glusterfs-3.5 root@server2:~#apt-get update root@server2:~# apt-get install glusterfs-server -\u0443<br \/>\n  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440.<br \/>\n  root@server1:~# gluster peer probe server2.example.com Probe successful <\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0441\u0442\u0430\u0442\u0443\u0441:<br \/>\n  root@server1:~# gluster peer status Number of Peers: 1  Hostname: server2.example.com Uuid: 0f3aa4f4-f9dd-4cd2-a7a5-126606fbab33 State: Peer in Cluster (Connected)  <\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, server2 \u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0438 \u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0443\u0441 \u2013 Connected. \u0422\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u0441\u0435 \u043e\u043a.<br \/>\n  root@server2:~# gluster peer status Number of Peers: 1  Hostname: 192.168.1.100 Uuid: ae4e6766-787f-4d0c-8b96-8fc9523ef346 State: Peer in Cluster (Connected)  <\/p>\n<p>  GlusterFS \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 5 \u0442\u0438\u043f\u043e\u0432 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0451\u043d\u043d\u043e\u0433\u043e \u0432 volume:<br \/>\n    Distributed (\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439)  Replicated (\u0440\u0435\u043f\u043b\u0438\u0446\u0438\u0440\u0443\u0435\u043c\u044b\u0439)  Striped (\u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u043e \u0447\u0430\u0441\u0442\u044f\u043c)  Distributed Striped (\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043f\u043e \u0447\u0430\u0441\u0442\u044f\u043c)  Distributed Replicated (\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u0438 \u0440\u0435\u043f\u043b\u0438\u0446\u0438\u0440\u0443\u0435\u043c\u044b\u0439)  <\/p>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043f \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0438 \u043f\u043e\u0442\u043e\u043c \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u0435 5 volum-\u043e\u0432 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432. <\/p>\n<p>  2.1 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 distributed volume<br \/>\n  \u041f\u0440\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043c\u0435\u0436\u0434\u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u043f\u043a\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0445\u043e\u0434\u0438\u0432 \u0432 volume.<br \/>\n  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u0430\u043a\u0438 dist1, dist2, \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u2013 dist3, dist4.<br \/>\n  root@server1:~# mkdir \/mnt\/dist{1,2} root@server2:~# mkdir \/mnt\/dist{3,4}<br \/>\n  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u0441\u0442\u0430\u0440\u0442\u0430\u043d\u0443\u0442\u044c volume.<br \/>\n  root@server1:~# gluster volume create distributed transport tcp server1:\/mnt\/dist1 server1:\/mnt\/dist2 server2:\/mnt\/dist3 server2:\/mnt\/dist4 force         Creation of volume distributed has been successful. Please start the volume to access data. root@server1:~# gluster volume start distributed Starting volume distributed has been successful <\/p>\n<p>  2.2 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 replicated volume<br \/>\n  \u041f\u0440\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u043e (\u043a\u0430\u043a RAID1) \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u043f\u043a\u043e\u0439 (\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0445\u043e\u0434\u0438\u0432 \u0432 volume. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u043f\u043e\u043a(\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432) \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 volume \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043a\u0440\u0430\u0442\u043d\u043e \u0440\u0435\u043f\u043b\u0438\u043a\u0435(replica).<br \/>\n  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u0430\u043a\u0438 repl1, repl2, \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u2013 repl3, repl4.<br \/>\n  root@server1:~# mkdir \/mnt\/repl{1,2} root@server2:~# mkdir \/mnt\/repl{3,4} <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u0441\u0442\u0430\u0440\u0442\u0430\u043d\u0443\u0442\u044c volume.<br \/>\n  root@server1:~# gluster volume create replicated replica 4 transport tcp server1:\/mnt\/repl1 server2:\/mnt\/repl3 server1:\/mnt\/repl2 server2:\/mnt\/repl4 force                    Multiple bricks of a replicate volume are present on the same server. This setup is not optimal. Do you still want to continue creating the volume?  (y\/n) y volume create: replicated: success: please start the volume to access data root@server1:~# gluster volume start replicated volume start: replicated: success  <\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0438 \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0435\u043f\u043b\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0432\u0441\u0435 4 \u043f\u0430\u043f\u043a\u0438. \u0422.\u0435. \u0432\u043e \u0432\u0441\u0435\u0445 \u043f\u0430\u043f\u043a\u0430\u0445 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043a\u043e\u043d\u0442\u0435\u043d\u0442. <\/p>\n<p>  2.3 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 striped volume<br \/>\n  \u041f\u0440\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0447\u0430\u0441\u0442\u0438 \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u0443\u0441\u043e\u043a \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u043f\u0430\u043f\u043e\u043a \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 volume. \u0422\u0430\u043a\u043e\u0439 \u0442\u0438\u043f \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0435\u043c\u043a\u043e\u0441\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c (\u0432\u0438\u0434\u0435\u043e\u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0432 \u0445\u043e\u0440\u043e\u0448\u0435\u043c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443). \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u043f\u043e\u043a \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 volume \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e stripe. \u0422.\u0435. \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 5 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u0442\u043e \u0444\u0430\u0439\u043b \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 5 \u0447\u0430\u0441\u0442\u0435\u0439 \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0435\u0433\u043e \u043a\u0443\u0441\u043e\u0447\u0435\u043a \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0432\u0441\u0435\u0445 5 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445.<br \/>\n  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u0430\u043a\u0438 strip1, strip2, \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u2013 strip3, strip4.<br \/>\n  root@server1:~# mkdir \/mnt\/strip{1,2} root@server2:~# mkdir \/mnt\/strip{3,4} <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u0441\u0442\u0430\u0440\u0442\u0430\u043d\u0443\u0442\u044c volume.<br \/>\n  root@server1:~# gluster volume create striped stripe 4 transport tcp server1:\/mnt\/strip1 server1:\/mnt\/strip2 server2:\/mnt\/strip3 server2:\/mnt\/strip4 force                    Creation of volume striped has been successful. Please start the volume to access data. root@server1:~# gluster volume start striped Starting volume striped has been successful  <\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 4-\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432(\u043f\u0430\u043f\u043e\u043a) \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u043a\u0443\u0441\u043e\u0447\u043a\u0443 \u0437\u0430\u043b\u0438\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430. <\/p>\n<p>  2.4 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 distributed striped volume<br \/>\n  \u041f\u0440\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0447\u0430\u0441\u0442\u0438 \u0438 \u043a\u0443\u0441\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u043e \u043f\u0430\u043f\u043a\u0430\u043c \u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043d\u0438\u0445. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0430\u043f\u043e\u043a \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 volume \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043a\u0440\u0430\u0442\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e stripe. \u0422.\u0435. \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 8 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 stripe \u0440\u0430\u0432\u043d\u043e 4, \u0442\u043e \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 4 \u0447\u0430\u0441\u0442\u0438 \u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0438\u043b\u0438 \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 4-\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u0438\u043b\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 4-\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432. \u0422\u0430\u043a \u0436\u0435 \u0441\u0430\u043c\u043e, \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 4 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 stripe \u0440\u0430\u0432\u043d\u043e 2, \u0442\u043e \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 2 \u0447\u0430\u0441\u0442\u0438 \u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 2-\u0445 \u0438\u043b\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 2-\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445.<br \/>\n  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u0430\u043a\u0438 dist-strip1, dist-strip2, \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u2013 dist-strip3, dist-strip4.<br \/>\n  root@server1:~# mkdir \/mnt\/dist-strip{1,2} root@server2:~# mkdir \/mnt\/dist-strip{3,4} <\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u0441\u0442\u0430\u0440\u0442\u0430\u043d\u0443\u0442\u044c volume. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438\u0433\u0440\u0430\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0440\u043e\u043b\u044c: \u0447\u0430\u0441\u0442\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u0430\u0440\u0435<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-252237","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/252237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=252237"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/252237\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}