Glusterfs-raid » История » Версия 1
Илья Куликов, 2012-01-24 16:17
| 1 | 1 | Илья Куликов | h1. Glusterfs-raid |
|---|---|---|---|
| 2 | |||
| 3 | Server's config: /etc/glusterfs/glusterfsd.vol |
||
| 4 | <pre> |
||
| 5 | volume posix |
||
| 6 | type storage/posix |
||
| 7 | option directory /home/export |
||
| 8 | end-volume |
||
| 9 | |||
| 10 | volume locks |
||
| 11 | type features/locks |
||
| 12 | subvolumes posix |
||
| 13 | end-volume |
||
| 14 | |||
| 15 | volume brick |
||
| 16 | type performance/io-threads |
||
| 17 | option thread-count 8 |
||
| 18 | subvolumes locks |
||
| 19 | end-volume |
||
| 20 | |||
| 21 | volume server |
||
| 22 | type protocol/server |
||
| 23 | option transport-type tcp |
||
| 24 | option auth.addr.brick.allow 10.12.12.* |
||
| 25 | subvolumes brick |
||
| 26 | end-volume |
||
| 27 | </pre> |
||
| 28 | |||
| 29 | Client's config: /etc/glusterfs/glusterfs.vol |
||
| 30 | <pre> |
||
| 31 | 1: volume remote1 |
||
| 32 | 2: type protocol/client |
||
| 33 | 3: option transport-type tcp |
||
| 34 | 4: option remote-host 10.12.12.19 # panda |
||
| 35 | 5: option remote-subvolume brick |
||
| 36 | 6: end-volume |
||
| 37 | 7: |
||
| 38 | 8: volume remote2 |
||
| 39 | 9: type protocol/client |
||
| 40 | 10: option transport-type tcp |
||
| 41 | 11: option remote-host 10.12.12.20 # monkey |
||
| 42 | 12: option remote-subvolume brick |
||
| 43 | 13: end-volume |
||
| 44 | 14: |
||
| 45 | 15: volume replicate |
||
| 46 | 16: type cluster/replicate |
||
| 47 | 17: subvolumes remote1 remote2 |
||
| 48 | 18: end-volume |
||
| 49 | 19: |
||
| 50 | 20: volume writebehind |
||
| 51 | 21: type performance/write-behind |
||
| 52 | 22: option window-size 1MB |
||
| 53 | 23: subvolumes replicate |
||
| 54 | 24: end-volume |
||
| 55 | 25: |
||
| 56 | 26: volume cache |
||
| 57 | 27: type performance/io-cache |
||
| 58 | 28: option cache-size 512MB |
||
| 59 | 29: subvolumes writebehind |
||
| 60 | 30: end-volume |
||
| 61 | </pre> |
||
| 62 | |||
| 63 | Запуск glusterfsd на сервере : /etc/init.d/glusterfsd start |
||
| 64 | |||
| 65 | Монитрование на стороне клиента (Предварительно создав папку /mnt/glusterfs/) : glusterfs -f /etc/glusterfs/glusterfs.vol /mnt/glusterfs |