Difference between revisions of "HA NFS on Amazon Linux 2"

From Michael's Information Zone
Jump to navigation Jump to search
Line 12: Line 12:
  
 
sudo systemctl enable --now pcsd.service
 
sudo systemctl enable --now pcsd.service
 +
 +
sudo pvcreate /dev/nvme1n1
 +
sudo vgcreate data /dev/nvme1n1
 +
sudo lvcreate --size 195G --name gluster data
 +
sudo mkfs.ext4 /dev/mapper/data-gluster
 
</pre>
 
</pre>

Revision as of 10:54, 15 December 2020

[1]

  • Will be using two t3a.larg instances in an active/passive config.
sudo yum upgrade -y && sudo reboot -h now
sudo yum install pcs pacemaker fence-agents-all -y

 sudo passwd hacluster
Changing password for user hacluster.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

sudo systemctl enable --now pcsd.service

sudo pvcreate /dev/nvme1n1
sudo vgcreate data /dev/nvme1n1
sudo lvcreate --size 195G --name gluster data
sudo mkfs.ext4 /dev/mapper/data-gluster