Différences

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

Lien vers cette vue comparative

Prochaine révision
Révision précédente
si:glusterfs [2016/12/03 16:17]
heraclide créée
si:glusterfs [2018/12/11 23:12] (Version actuelle)
heraclide
Ligne 42: Ligne 42:
  
 ====== Setup ====== ====== Setup ======
- 
  
 <​code>​ <​code>​
 root@troll4:​~#​ gluster peer probe troll3.lan.parinux.org root@troll4:​~#​ gluster peer probe troll3.lan.parinux.org
 </​code>​ </​code>​
 +
 +====== Creation d'un volume ======
 +
 +<​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
 +</​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 ======
 +
 +<​code>​
 +root@troll4:​~#​ echo "​troll4.lan.parinux.org:/​lxc_www1 /​var/​lib/​lxc/​www glusterfs defaults,​noatime,​user_id=0,​group_id=0,​default_permissions,​allow_other,​max_read=131072 0 0" ​ >> /etc/fstab
 +root@troll4:​~#​ mount /​var/​lib/​lxc/​www
 +</​code>​
 +<​code>​
 +root@troll3:​~#​ echo "​troll3.lan.parinux.org:/​lxc_www1 /​var/​lib/​lxc/​www glusterfs defaults,​noatime,​user_id=0,​group_id=0,​default_permissions,​allow_other,​max_read=131072 0 0" ​ >> /etc/fstab
 +root@troll3:​~#​ mount /​var/​lib/​lxc/​www
 +</​code>​
 +
 
/var/lib/dokuwiki/data/attic/si/glusterfs.1480778267.txt.gz · Dernière modification: 2016/12/03 16:17 par heraclide
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Debian Driven by DokuWiki