KVM - move /var or other folder to another disk partition
Currently my disk structure is like this
[email protected]:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 395M 752K 394M 1% /run
/dev/vda1 7.3G 6.1G 1.2G 85% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/vdb 98G 43G 51G 46% /home
/dev/vda15 105M 3.4M 102M 4% /boot/efi
tmpfs 395M 0 395M 0% /run/user/0
As you can see the vda1 storage is pretty low now and vdb is still have a lot of space.
My question, how do we move some folder (ex /var ) from vda1 to vdb, especially on KVM environment using Ubuntu.