Hello Experts,
We have SLES12 Virtual Machine with default partitioning as shown below,
Quote:
devtmpfs 7,8G 8,0K 7,8G 1% /dev
tmpfs 7,8G 80K 7,8G 1% /dev/shm
tmpfs 7,8G 307M 7,5G 4% /run
tmpfs 7,8G 0 7,8G 0% /sys/fs/cgroup
/dev/sda2 41G 23G 18G 58% /
/dev/sda2 41G 23G 18G 58% /var/lib/libvirt/images
/dev/sda2 41G 23G 18G 58% /var/cache
/dev/sda2 41G 23G 18G 58% /boot/grub2/x86_64-efi
/dev/sda2 41G 23G 18G 58% /boot/grub2/i386-pc
/dev/sda3 86G 33M 86G 1% /home
/dev/sda2 41G 23G 18G 58% /tmp
/dev/sda2 41G 23G 18G 58% /usr/local
/dev/sda2 41G 23G 18G 58% /opt
/dev/sda2 41G 23G 18G 58% /var/lib/machines
/dev/sda2 41G 23G 18G 58% /var/lib/named
/dev/sda2 41G 23G 18G 58% /.snapshots
/dev/sda2 41G 23G 18G 58% /var/lib/mysql
/dev/sda2 41G 23G 18G 58% /var/opt
/dev/sda2 41G 23G 18G 58% /var/lib/mariadb
/dev/sda2 41G 23G 18G 58% /var/spool
/dev/sda2 41G 23G 18G 58% /var/lib/pgsql
/dev/sda2 41G 23G 18G 58% /var/crash
/dev/sda2 41G 23G 18G 58% /var/lib/mailman
/dev/sda2 41G 23G 18G 58% /srv
/dev/sda2 41G 23G 18G 58% /var/tmp
/dev/sda2 41G 23G 18G 58% /var/log
tmpfs 1,6G 16K 1,6G 1% /run/user/483
tmpfs 1,6G 0 1,6G 0% /run/user/10056
tmpfs 1,6G 0 1,6G 0% /run/user/30905
|
One of the partitions under / is /var/tmp which is residing on /dev/sda2.This we wish to move under /home(which is bigger than /var/tmp) due to space contraints. /home is residing on /dev/sda3.
Quote:
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 4208639 4206592 2G 82 Linux swap / Solaris
/dev/sda2 * 4208640 88100863 83892224 40G 83 Linux
/dev/sda3 88100864 268435455 180334592 86G 83 Linux
|
The partitions are having btrfs filesystem. I am new to btrfs filesystem. I read that with btrfs one can easily move / migrate the underlying partitions or subvolumes. so not sure what will be the best case method to achieve this so that /var/tmp will be accessible under /home and the device ids (UUID) will also be taken care of.
Any pointers will be helpful.
Thanks.
-Admin