LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-13-2019, 04:05 AM   #1
LinuGeek
Member
 
Registered: Jun 2008
Posts: 70

Rep: Reputation: 0
Linux SLES 12 btrfs Filesystem Free up space


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
 
Old 02-13-2019, 04:31 AM   #2
LinuGeek
Member
 
Registered: Jun 2008
Posts: 70

Original Poster
Rep: Reputation: 0
Update :

On a test system I tried to move /var/tmp to /home. It did move /tmp folder but in the end also gave error can not move /tmp : device or resource busy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] docker on btrfs using much space in /var/lib/docker/btrfs taumeister Linux - Containers 2 01-25-2018 04:13 PM
SLES 12 Unable to IPL the system after resizing "/" btrfs filesystem mikenash Linux - Enterprise 1 01-30-2017 08:47 AM
btrfs filesystem df /mnt/btrfs/ shows bothe data and metdata with raid1 and single. gonus Linux - Software 3 07-17-2014 02:48 PM
ext4 vs btrfs, and with btrfs do I still need to use LVM? blue_k Linux - Software 4 08-17-2012 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration