My machine which OS is CentOS7
have to backup 50G data into MySQL. But, there is no space left on the device. But there are many spaces on /home
. How can I make user that there are enough space for MySQL to store data. I think there is no space in /dev/mapper/centos-root
, how can I move space to from /home
to /
.
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 50G 50G 20K 100% /
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 84K 7.8G 1% /dev/shm
tmpfs 7.8G 2.6G 5.2G 34% /run
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/mapper/centos-home 500G 20G 480G 4% /home
/dev/sda1 497M 241M 257M 49% /boot
tmpfs 1.6G 16K 1.6G 1% /run/user/42
tmpfs 1.6G 0 1.6G 0% /run/user/0
tmpfs 1.6G 4.0K 1.6G 1% /run/user/1000
And g++
compile code failed.
$ g++ test.cpp
Cannot create temporary file in /tmp/: No space left on device
[1] 6642 abort (core dumped) g++ test.cpp