Skip to content

Instantly share code, notes, and snippets.

@pavdmyt
Last active June 5, 2019 07:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pavdmyt/81427dbc24a2d215c6c4dc589c992834 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Turn off SWAP
sysctl vm.swappiness=0
echo 'vm.swappiness = 0' >> /etc/sysctl.conf
#!/bin/bash
# Mount PVs
mkdir -p /mnt/lvs/data
mount /dev/mapper/vg-dataPool /mnt/lvs/data/
echo '/dev/mapper/vg-dataPool /mnt/lvs/data xfs defaults,nofail 0 0' >> /etc/fstab
# Turn off SWAP
sysctl vm.swappiness=0
echo 'vm.swappiness = 0' >> /etc/sysctl.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment