<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tohu Wabohu</title>
    <description>The latest articles on DEV Community by Tohu Wabohu (@tohuwabohu).</description>
    <link>https://dev.to/tohuwabohu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1014413%2Faa501c36-9c9c-40f6-a4f7-99da4820edbf.png</url>
      <title>DEV Community: Tohu Wabohu</title>
      <link>https://dev.to/tohuwabohu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tohuwabohu"/>
    <language>en</language>
    <item>
      <title>Add a new Gluster node to existing cluster</title>
      <dc:creator>Tohu Wabohu</dc:creator>
      <pubDate>Wed, 25 Jan 2023 10:23:17 +0000</pubDate>
      <link>https://dev.to/tohuwabohu/add-new-gluster-node-to-existing-cluster-4ko7</link>
      <guid>https://dev.to/tohuwabohu/add-new-gluster-node-to-existing-cluster-4ko7</guid>
      <description>&lt;p&gt;Ansible job for installing GlusterFS package on the new node (node4):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;---
- name: Install dependencies for GlusterFS
  apt:
    name: software-properties-common
    update_cache: yes
    state: present

- name: Add GlusterFS repo
  apt_repository:
    repo: ppa:gluster/glusterfs-10
    state: present

- name: Install GlusterFS package
  apt:
    name: glusterfs-server
    update_cache: yes
    state: present
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Start glusterd service if not running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl start glusterd.service
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Discover and register a remote node as a peer in the cluster (run on any existing node in a cluster):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo gluster peer probe node4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Confirm peer status with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo gluster peer status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Confirm existing volume status:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gluster volume info
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add a fourth brick to an existing volume &lt;em&gt;my_gluste_vol&lt;/em&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo gluster volume add-brick my_gluste_vol replica 4 app01:/my-gluster_brick force
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can check replication status with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo gluster volume heal _my_gluste_vol_ info
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>gratitude</category>
      <category>explainlikeimfive</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
