Benutzer-Werkzeuge

Webseiten-Werkzeuge


glusterfs-installation

====== GlusterFS-Installation ====== ===== GLusterFS - Ubuntu 14.04 ===== * [[https://www.howtoforge.com/how-to-install-glusterfs-with-a-replicated-volume-over-2-nodes-on-ubuntu-14.04]] * [[http://www.gluster.org/community/documentation/index.php/Getting_started_wrap_up]] * [[http://www.gluster.org/wp-content/uploads/2012/05/Gluster_File_System-3.3.0-Administration_Guide-en-US.pdf]] ==== Installation ==== > aptitude install glusterfs-server > aptitude search glusterfs i A glusterfs-client - clustered file-system (client package) i A glusterfs-common - GlusterFS common libraries and translator modules p glusterfs-dbg - GlusterFS debugging symbols i glusterfs-server - clustered file-system (server package) > vi /etc/hosts ... 192.168.40.147 gluster1.domain.net gluster1 192.168.40.148 gluster2.domain.net gluster2 root@gluster1:~# gluster peer probe gluster1 peer probe: success: on localhost not needed root@gluster1:~# gluster peer probe gluster2 peer probe: success root@gluster2:~# gluster peer probe gluster1 peer probe: success root@gluster2:~# gluster peer probe gluster2 peer probe: success: on localhost not needed ==== Bricks Erstellen ==== > mkdir -p /gluster root@gluster1:~# gluster volume create dokuwiki replica 2 transport tcp gluster1:/gluster gluster2:/gluster force volume create: dokuwiki: success: please start the volume to access data root@gluster2:~# gluster volume create dokuwiki replica 2 transport tcp gluster1:/gluster gluster2:/gluster force volume create: dokuwiki: failed: Volume dokuwiki already exists root@gluster1:~# gluster volume start dokuwiki 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: tcp Bricks: Brick1: gluster1:/gluster Brick2: gluster2:/gluster root@gluster1:~# gluster peer status 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

glusterfs-installation.txt · Zuletzt geändert: 2016/04/13 00:50 (Externe Bearbeitung)