glusterfs-installation
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| glusterfs-installation [2015-04-02 11:04:35] – manfred | glusterfs-installation [2016-04-12 22:50:01] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== GlusterFS-Installation ====== | ||
| + | |||
| + | |||
| + | ===== GLusterFS - Ubuntu 14.04 ===== | ||
| + | |||
| + | * [[https:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | |||
| + | |||
| + | ==== Installation ==== | ||
| + | |||
| + | > aptitude install glusterfs-server | ||
| + | > aptitude search glusterfs | ||
| + | i A glusterfs-client | ||
| + | i A glusterfs-common | ||
| + | p | ||
| + | i | ||
| + | |||
| + | > vi /etc/hosts | ||
| + | ... | ||
| + | 192.168.40.147 | ||
| + | 192.168.40.148 | ||
| + | |||
| + | root@gluster1: | ||
| + | peer probe: success: on localhost not needed | ||
| + | | ||
| + | root@gluster1: | ||
| + | peer probe: success | ||
| + | | ||
| + | root@gluster2: | ||
| + | peer probe: success | ||
| + | | ||
| + | root@gluster2: | ||
| + | peer probe: success: on localhost not needed | ||
| + | |||
| + | |||
| + | ==== Bricks Erstellen ==== | ||
| + | |||
| + | > mkdir -p /gluster | ||
| + | |||
| + | root@gluster1: | ||
| + | volume create: dokuwiki: success: please start the volume to access data | ||
| + | |||
| + | root@gluster2: | ||
| + | volume create: dokuwiki: failed: Volume dokuwiki already exists | ||
| + | |||
| + | root@gluster1: | ||
| + | volume start: dokuwiki: success | ||
| + | |||
| + | > ps aux | grep gluster | ||
| + | | ||
| + | > netstat -antp | grep glusterfsd | ||
| + | | ||
| + | > gluster volume info | ||
| + | | ||
| + | Volume Name: dokuwiki | ||
| + | Type: Replicate | ||
| + | Volume ID: 6268cb9d-2b26-494a-bc65-f244ea046961 | ||
| + | Status: Started | ||
| + | Number of Bricks: 1 x 2 = 2 | ||
| + | Transport-type: | ||
| + | Bricks: | ||
| + | Brick1: gluster1:/ | ||
| + | Brick2: gluster2:/ | ||
| + | |||
| + | root@gluster1: | ||
| + | Number of Peers: 1 | ||
| + | | ||
| + | Hostname: gluster2 | ||
| + | Uuid: fc8b7b8c-c8a1-4132-813e-49e773b3c8b9 | ||
| + | State: Peer in Cluster (Connected) | ||
| + | |||
| + | |||
| + | ==== Bricks Löschen ==== | ||
| + | |||
| + | > gluster volume stop dokuwiki | ||
| + | Stopping volume will make its data inaccessible. Do you want to continue? (y/n) y | ||
| + | volume stop: dokuwiki: success | ||
| + | |||
| + | > gluster volume delete dokuwiki | ||
| + | Deleting volume will erase all information about the volume. Do you want to continue? (y/n) y | ||
| + | volume delete: dokuwiki: success | ||
