Glusterfs-raid » История » Версия 3
Илья Куликов, 2012-01-24 17: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 | 3 | Илья Куликов | volume remote1 |
| 32 | type protocol/client |
||
| 33 | option transport-type tcp |
||
| 34 | option remote-host 10.12.12.19 # panda |
||
| 35 | option remote-subvolume brick |
||
| 36 | end-volume |
||
| 37 | |||
| 38 | volume remote2 |
||
| 39 | type protocol/client |
||
| 40 | option transport-type tcp |
||
| 41 | option remote-host 10.12.12.20 # monkey |
||
| 42 | option remote-subvolume brick |
||
| 43 | end-volume |
||
| 44 | |||
| 45 | volume replicate |
||
| 46 | type cluster/replicate |
||
| 47 | subvolumes remote1 remote2 |
||
| 48 | end-volume |
||
| 49 | |||
| 50 | volume writebehind |
||
| 51 | type performance/write-behind |
||
| 52 | option window-size 1MB |
||
| 53 | subvolumes replicate |
||
| 54 | end-volume |
||
| 55 | |||
| 56 | volume cache |
||
| 57 | type performance/io-cache |
||
| 58 | option cache-size 512MB |
||
| 59 | subvolumes writebehind |
||
| 60 | end-volume |
||
| 61 | 1 | Илья Куликов | </pre> |
| 62 | |||
| 63 | Запуск glusterfsd на сервере : /etc/init.d/glusterfsd start |
||
| 64 | |||
| 65 | Монитрование на стороне клиента (Предварительно создав папку /mnt/glusterfs/) : glusterfs -f /etc/glusterfs/glusterfs.vol /mnt/glusterfs |
||
| 66 | 2 | Илья Куликов | |
| 67 | Тестирование: |
||
| 68 | |||
| 69 | 1. Отключение одного из серверов оставляет возможность обращения к бэк-енд хранилищу. Нет таймаутов когда все серверы недоступны, мгновенная ошибка. |
||
| 70 | 2. Синхронизация происходит в момент листинга папки. Если клиент получает разные ответы от серверов по соедржимому, он производит синхронизацию. |
||
| 71 | 3. В случае рассинхронизации хранилищ и удаления какого либо файла со стороны клиента, в последствии удаление произойдет везде. |