Official GlusterFS documentation suggests us use XFS for filesystem metadata storage. So, let's install it. Before we start let's take two machines ( glusterfs1, glusterfs2 ). All actions we'll do on one machine. You shoud do it on both machines. root@glusterfs1:~# apt-get install xfsprogs Specify clusters machines addresses in hosts file: root@glusterfs1:~# vi /etc/hosts 192.168.56.122 glusterfs1.example.com glusterfs1 192.168.56.123 glusterfs2.example.com glusterfs2 Attach block device to your machine. Let's assume that it would be /dev/sdb. Format it with XFS. root@glusterfs1:~# mkfs.xfs -i size=512 /dev/sdb Create directory for glusterfs metad...
Published ago by ochirkov

Install glusterfs client and change hosts file: root@glusterclient:~# apt-get install glusterfs-client root@glusterclient:~# vi /etc/hosts 192.168.56.122 glusterfs1.example.com glusterfs1 192.168.56.123 glusterfs2.example.com glusterfs2 Mount glusterfs metadata root@glusterclient:~# mount -t glusterfs glusterfs1:/gv0 /mnt/gluster Look into mounted dir: root@glusterclient:~# root@ansible:~# ls -l /mnt/gluster total 1228800 drwxr-xr-x 2 root root 6 Mar 3 16:41 mfs Add test file to mounted dir and check it on any glusterfs server: root@glusterclient:~# dd if=/dev/zero of=/mnt/gluster/testbinary bs=2M count=200 root@glusterfs2:~# ls -l /mnt/glusterb...

Add server to the trusted storage pool. Peer status. Detaching peer. root@glusterfs2:/root# gluster peer probe mysql1 Probe successful root@glusterfs2:/root# gluster peer status Number of Peers: 2 Hostname: glusterfs1 Uuid: a9d8022a-3835-4190-964b-92395c0c3bc6 State: Peer in Cluster (Connected) Hostname: mysql1 Uuid: ce0a67a9-4ddd-4a69-b7a5-1b5bf74dbdb8 State: Peer in Cluster (Connected) root@glusterfs2:/root# gluster peer detach mysql1 Detach successful  

Volumes types: • Distributed - Distributed volumes distributes files throughout the bricks in the volume. You can use distributed volumes where the requirement is to scale storage and the redundancy is either not important or is provided by other hardware/software layers.  • Replicated – Replicated volumes replicates files across bricks in the volume. You can use replicated volumes in environments where high-availability and high-reliability are critical.  • Striped – Striped volumes stripes data across bricks in the volume. For best results, you should use striped volumes only in high concurrency environments accessing very large files.&n...
Published ago by ochirkov

Python
Web development
Review Linux
Administration
Provisioning CVS
Windows AWS
Continuous Integration
NoSql Logging Web Servers FileSystems Scala
accurev ansible apach2 apache api application approaches architecture archivation argparse arguments artifactory automation awk aws backup bash batch-scripting beaver block build built-in caching call captcha cartridge case certificates cgi chain client cloud cloudformation cluster cmd coding collections command-line commands compression conditionals conversion convert cookbook copy counter cron crud css cut cygwin daemon datatype date dd debpackage decorator delattr deploy deque dict distributed-file-systems django DNS domain driver dropbox dump elasticcache elasticsearch encryption exit ext4 extra-tags failover file filename filters for form format freetds functions gerrit getattribute gid git globals glusterfs hardware hook iam indexing inheritance init install job-interview jquery ldap linux list locals logging logs logstash lookup magicmethods mail main-menu metadata metalogger mongodb moosefs mount mssql multiplatform multithreading mysql netcat nginx nosql open-ssh openldap openshift os packaging parse partition path pattern patterns permissions pid pil pip pipe playbook pool post post-commit processes production provisioning proxy putty python python-mysql recursively redirection redis register replication repr restore return review rotation scala script search selenium server setattr settings setup shipper signals singleton slots snapshot socket splunk ssh ssh-key ssl storage str string style subprocess sugar super switch syntactic syntaxhighlighter systeminfo tail tar templatetags time tls tune2fs tuple ubuntu unicode unique unix unixodbc usage usecases uuid uwsgi variable vars version vi virtualenv volume web web-server windows with_items __getattr__