Difference between revisions of "Gluster"

From Michael's Information Zone
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
==AWS Amazon Linux==
 
==AWS Amazon Linux==
 +
*<b>Decided to not move forward with this on Amazon Linux</b>
 
I had moved the NFS backend for several services from EFS to an instance running NFS. This was much faster than EFS, but now my data was on a single instance. A new critical app was being deployed and I needed redundancy. Previously played with gluster many years ago and decided to give it a shot. <s>I wanted to keep the costs low so</s> This will be a <s>two</s> three node data <s>and one node arbiter </s>setup. The instances used are t3a.large for the data and t3a.small for the arbiter, all running Amazon Linux since CentOS is no longer viable. Data nodes will have 200GB SSD storage.
 
I had moved the NFS backend for several services from EFS to an instance running NFS. This was much faster than EFS, but now my data was on a single instance. A new critical app was being deployed and I needed redundancy. Previously played with gluster many years ago and decided to give it a shot. <s>I wanted to keep the costs low so</s> This will be a <s>two</s> three node data <s>and one node arbiter </s>setup. The instances used are t3a.large for the data and t3a.small for the arbiter, all running Amazon Linux since CentOS is no longer viable. Data nodes will have 200GB SSD storage.
 
<pre>
 
<pre>
Line 10: Line 11:
 
sudo mount /dev/mapper/data-gluster /mnt/data
 
sudo mount /dev/mapper/data-gluster /mnt/data
 
sudo mkdir /mnt/data/brick
 
sudo mkdir /mnt/data/brick
sudo yum install glusterfs-cli glusterfs
+
 
 +
<s>sudo yum install glusterfs-cli glusterfs -y</s>
 +
sudo ln -s /usr/lib64/libncurses.so.5 /usr/lib64/libncurses.so.6
 +
sudo ln -s /usr/lib64/libtinfo.so.6 /usr/lib64/libtinfo.so.5
 
</pre>
 
</pre>

Latest revision as of 10:36, 15 December 2020

AWS Amazon Linux

  • Decided to not move forward with this on Amazon Linux

I had moved the NFS backend for several services from EFS to an instance running NFS. This was much faster than EFS, but now my data was on a single instance. A new critical app was being deployed and I needed redundancy. Previously played with gluster many years ago and decided to give it a shot. I wanted to keep the costs low so This will be a two three node data and one node arbiter setup. The instances used are t3a.large for the data and t3a.small for the arbiter, all running Amazon Linux since CentOS is no longer viable. Data nodes will have 200GB SSD storage.

sudo yum upgrade -y
sudo pvcreate /dev/nvme1n1
sudo vgcreate data /dev/nvme1n1
sudo lvcreate --size 195G --name gluster data
sudo mkfs.ext4 /dev/mapper/data-gluster
sudo mkdir /mnt/data
sudo mount /dev/mapper/data-gluster /mnt/data
sudo mkdir /mnt/data/brick

<s>sudo yum install glusterfs-cli glusterfs -y</s>
sudo ln -s /usr/lib64/libncurses.so.5 /usr/lib64/libncurses.so.6
sudo ln -s /usr/lib64/libtinfo.so.6 /usr/lib64/libtinfo.so.5