Difference between revisions of "HA NFS on Amazon Linux 2"
Jump to navigation
Jump to search
Michael.mast (talk | contribs) |
Michael.mast (talk | contribs) |
||
Line 1: | Line 1: | ||
<ref>https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/high_availability_add-on_administration/ch-nfsserver-haaa</ref> | <ref>https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/high_availability_add-on_administration/ch-nfsserver-haaa</ref> | ||
*Will be using two t3a.larg instances in an active/passive config. | *Will be using two t3a.larg instances in an active/passive config. | ||
+ | *Package installation | ||
<pre> | <pre> | ||
sudo yum upgrade -y && sudo reboot -h now | sudo yum upgrade -y && sudo reboot -h now | ||
sudo yum install pcs pacemaker fence-agents-all -y | sudo yum install pcs pacemaker fence-agents-all -y | ||
− | + | </pre> | |
+ | *Authorize nodes<ref>https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/high_availability_add-on_administration/ch-startup-HAAA#s1-clusterinstall-HAAA</ref> | ||
+ | <pre> | ||
sudo passwd hacluster | sudo passwd hacluster | ||
Changing password for user hacluster. | Changing password for user hacluster. | ||
Line 18: | Line 21: | ||
192.168.17.132: Authorized | 192.168.17.132: Authorized | ||
192.168.17.164: Authorized | 192.168.17.164: Authorized | ||
+ | </pre> | ||
+ | <pre> | ||
sudo pvcreate /dev/nvme1n1 | sudo pvcreate /dev/nvme1n1 | ||
sudo vgcreate data /dev/nvme1n1 | sudo vgcreate data /dev/nvme1n1 |
Revision as of 11:23, 15 December 2020
- Will be using two t3a.larg instances in an active/passive config.
- Package installation
sudo yum upgrade -y && sudo reboot -h now sudo yum install pcs pacemaker fence-agents-all -y
- Authorize nodes[2]
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 pcs cluster auth 192.168.17.132 192.168.17.164 Username: hacluster Password: 192.168.17.132: Authorized 192.168.17.164: Authorized
sudo pvcreate /dev/nvme1n1 sudo vgcreate data /dev/nvme1n1 sudo lvcreate --size 195G --name gluster data sudo mkfs.ext4 /dev/mapper/data-gluster