-
-
Save lvnilesh/22abaa62876e22c15e4b7daf8ac4f917 to your computer and use it in GitHub Desktop.
[server]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get install -y software-properties-common python-software-properties | |
sudo add-apt-repository --yes ppa:gluster/glusterfs-3.10; | |
sudo apt-get update | |
sudo apt-get install --yes glusterfs-server xfsprogs | |
sudo apt-get upgrade --yes | |
sudo apt-get -y autoremove |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PEER_HOST=10.8.15.155 | |
sudo gluster peer probe $PEER_HOST |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export FS_TYPE="xfs" | |
export DEVICE_NAME="/dev/xvdb" | |
export MOUNT_DIR="/gfs" | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get update | |
sudo apt-get install --yes xfsprogs | |
sudo -E mkfs.$FS_TYPE -i size=512 $DEVICE_NAME | |
sudo -E mkdir -p $MOUNT_DIR | |
echo "$DEVICE_NAME $MOUNT_DIR $FS_TYPE defaults 0 2" | sudo tee -a /etc/fstab > /dev/null | |
sudo mount -a | |
lsblk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment