Ci-dessous, les différences entre deux révisions de la page.
Both sides previous revision Révision précédente Prochaine révision | Révision précédente | ||
si:glusterfs [2016/12/15 14:32] heraclide [Creation d'un volume] |
si:glusterfs [2018/12/11 23:12] (Version actuelle) heraclide |
||
---|---|---|---|
Ligne 51: | Ligne 51: | ||
<code> | <code> | ||
root@troll4:~# gluster volume create lxc_www1 replica 2 transport tcp troll4.lan.parinux.org:/glusterfs/lxc_www1 troll3.lan.parinux.org:/glusterfs/lxc_www1 force | root@troll4:~# gluster volume create lxc_www1 replica 2 transport tcp troll4.lan.parinux.org:/glusterfs/lxc_www1 troll3.lan.parinux.org:/glusterfs/lxc_www1 force | ||
+ | </code> | ||
+ | |||
+ | ====== Mise en place des options qui vont bien ====== | ||
+ | |||
+ | <code> | ||
+ | root@troll4:~# gluster volume set ${curVol} cluster.readdir-optimize on | ||
+ | root@troll4:~# gluster volume set ${curVol} performance.parallel-readdir on | ||
+ | root@troll4:~# gluster volume set ${curVol} nfs.disable on | ||
+ | root@troll4:~# gluster volume set ${curVol} performance.client-io-threads on | ||
+ | # quand on est pas riche en ram et qu'on monte un truc en local .. | ||
+ | root@troll4:~# gluster volume set ${curVol} performance.io-cache off | ||
+ | </code> | ||
+ | |||
+ | ====== Activation d'un quota ====== | ||
+ | |||
+ | Attention, c'est pas toujours une bonne idee, ni une bonne option .. | ||
+ | <code> | ||
+ | root@troll4:~# gluster volume quota lxc_www1 enable | ||
+ | root@troll4:~# gluster volume quota lxc_www1 limit-usage / 10GB | ||
</code> | </code> | ||
====== Demarrage d'un volume ====== | ====== Demarrage d'un volume ====== | ||
<code> | <code> | ||
- | root@troll4:~#gluster volume start lxc_www1 | + | root@troll4:~# gluster volume start lxc_www1 |
</code> | </code> | ||
Ligne 69: | Ligne 88: | ||
root@troll3:~# mount /var/lib/lxc/www | root@troll3:~# mount /var/lib/lxc/www | ||
</code> | </code> | ||
+ |