How to move /var to new partition in CentOS 7
If you need to move you /var to new partition in CentOS 7 you will need commands like below.
Create new directory:
Mount lvm:
Copy and sync content:
Check content in two directories:
Rename /var
:
Create new /var
:
Add fstab entry:
Unmount /mnt/var_new
:
Mount /var
: