Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Both sides previous revision Révision précédente
Prochaine révision
Révision précédente
si:glusterfs [2016/12/03 16:22]
heraclide
si:glusterfs [2018/12/11 23:12] (Version actuelle)
heraclide
Ligne 50: Ligne 50:
  
 <​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>​ </​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>​
 +
 +====== Demarrage d'un volume ======
 +<​code>​
 +root@troll4:​~#​ gluster volume start lxc_www1
 +</​code>​
 +
  
 ====== Utilisation d'un volume ====== ====== Utilisation d'un volume ======
Ligne 63: Ligne 88:
 root@troll3:​~#​ mount /​var/​lib/​lxc/​www root@troll3:​~#​ mount /​var/​lib/​lxc/​www
 </​code>​ </​code>​
 +
 
/var/lib/dokuwiki/data/attic/si/glusterfs.1480778549.txt.gz · Dernière modification: 2016/12/03 16:22 par heraclide
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Debian Driven by DokuWiki