Skip to content

Instantly share code, notes, and snippets.

@omaciel
Last active July 13, 2016 18:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omaciel/61b4849dd5c999967225 to your computer and use it in GitHub Desktop.
Save omaciel/61b4849dd5c999967225 to your computer and use it in GitHub Desktop.
Tweaks Blades to have more disk space and other changes needed to install products
# Repartitioning of disks to add everything to lv_root
umount /home
lvremove -f /dev/mapper/*home
sed -i '/home/d' /etc/fstab
lvresize -l +100%FREE /dev/mapper/*root
if uname -r | grep -q el6; then resize2fs -f /dev/mapper/*root; else xfs_growfs / && mount / -o inode64,remount; fi
# Get rid of Beaker repos
rm -rf /etc/yum.repos.d/beaker-*
# Fixes /etc/hosts
export ETH=$(ping -c 1 $(hostname) | grep 'icmp_seq' | awk -F '(' '{print $2}' | awk -F ')' '{print $1}')
echo "$ETH $(hostname)" >> /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment