Configure /var to another partition
Hello friends.
I'm using Oracle Linux 8.7.
I need to move the /var partition installed on the system / to an external disk in LVM. I'm doing the process below.
- mkdir /mnt/new_var
- mount /dev/vg00/lvol0 /mnt/var_new
- rsync -avHPSAX /var/ /mnt/var_new/
- diff -r /var /mnt/var_new/
- mv /var /var_old
- mkdir /var
- /dev/vg00/lvol0 /var xfs defaults 0 0 (for add to fstab)
- umount /mnt/var_new
- mount /var
When running df -Th, the /var partition appears mounted to /dev/vg00/lvol0, but when I reboot the system, the system won't start... the system is stuck on