Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente Prochaine révision Both sides next revision | ||
si:glusterfs [2016/12/03 16:17] heraclide créée |
si:glusterfs [2016/12/15 14:32] heraclide [Demarrage d'un volume] |
||
---|---|---|---|
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> | ||
+ | |||
+ | ====== 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> | ||
+ | |||
+ | ====== 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> | </code> |