Linux Operating System (MOSC)

MOSC Banner

Configure /var to another partition

edited Jun 6, 2023 11:09PM in Linux Operating System (MOSC) 6 commentsAnswered

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center