From 686b67a30fdd1d9249511278dc3a08b5432ff524 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 7 Mar 2024 10:27:57 +0100 Subject: [PATCH] drop reallocate.sh, nobody needs that --- helpers/reallocate.sh | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 helpers/reallocate.sh diff --git a/helpers/reallocate.sh b/helpers/reallocate.sh deleted file mode 100644 index bbffb25b..00000000 --- a/helpers/reallocate.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# Notes: -# 1. Use this script to move storage space from /home to /root -# 2. This script is designed to work on rhel6 and rhel7 boxes -echo "Reallocating disk space to the home partition" -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 -echo "Successfully completed reallocation"