Difference between revisions of "Fs-gluster"
From Bashlinux
(talk) |
(Redirected page to GlusterFS) |
||
Line 1: | Line 1: | ||
⚫ | |||
− | __NOTOC__ |
||
⚫ | |||
− | Facilitates distributed filesystems across the network, it runs on user space. |
||
− | |||
− | === How to replicate a filesystem across two storage servers === |
||
− | The input file must be from any mount point in the client side, from there the data is split up and send to each storage server. |
||
− | '''Server side''' |
||
− | |||
− | <pre><nowiki> |
||
− | # file: /etc/glusterfs/glusterfsd.vol |
||
− | volume posix |
||
− | type storage/posix |
||
− | option directory /data/export |
||
− | end-volume |
||
− | |||
− | volume locks |
||
− | type features/locks |
||
− | subvolumes posix |
||
− | end-volume |
||
− | |||
− | volume brick |
||
− | type performance/io-threads |
||
− | option thread-count 8 |
||
− | subvolumes locks |
||
− | end-volume |
||
− | |||
− | volume server |
||
− | type protocol/server |
||
− | option transport-type tcp |
||
− | option auth.addr.brick.allow * |
||
− | subvolumes brick |
||
− | end-volume |
||
− | </nowiki></pre> |
||
− | |||
− | |||
− | '''Client side''' |
||
− | |||
− | <pre><nowiki> |
||
− | # file: /etc/glusterfs/glusterfs.vol |
||
− | volume remote1 |
||
− | type protocol/client |
||
− | option transport-type tcp |
||
− | option remote-host storage1.example.com |
||
− | option remote-subvolume brick |
||
− | end-volume |
||
− | |||
− | volume remote2 |
||
− | type protocol/client |
||
− | option transport-type tcp |
||
− | option remote-host storage2.example.com |
||
− | option remote-subvolume brick |
||
− | end-volume |
||
− | |||
− | volume replicate |
||
− | type cluster/replicate |
||
− | subvolumes remote1 remote2 |
||
− | end-volume |
||
− | |||
− | volume writebehind |
||
− | type performance/write-behind |
||
− | option window-size 1MB |
||
− | subvolumes replicate |
||
− | end-volume |
||
− | |||
− | volume cache |
||
− | type performance/io-cache |
||
− | option cache-size 512MB |
||
− | subvolumes writebehind |
||
− | end-volume |
||
− | </nowiki></pre> |
||
− | |||
− | |||
− | The fstab entry for glusterfs client must be: |
||
− | |||
− | <pre><nowiki> |
||
− | /etc/glusterfs/glusterfs.vol /dest/folder glusterfs defaults 0 0 |
||
− | </nowiki></pre> |
Latest revision as of 06:12, 18 June 2015
Redirect to: