we have a VM that host our docker and is currently out of space, I've tried everything on the net and nothing worked out yet, it is so full that I can't even run yum autremove
The system type is XFS, and I'm trying to fix this problem without having to remove the partition and create another one. My last solution if I couldn't figure it out is to recover the image from a previous vm version.
I apologize if I have any lack of knowledge in describing this issue and terminology, appreciate any help.
df -h shows below
Filesystem Size Used Avail Use% Mounted on
devtmpfs 24G 0 24G 0% /dev
tmpfs 24G 0 24G 0% /dev/shm
tmpfs 24G 18M 24G 1% /run
tmpfs 24G 0 24G 0% /sys/fs/cgroup
/dev/mapper/centos-root 39G 39G 20K 100% /
/dev/sda1 1014M 197M 818M 20% /boot
/dev/sdb1 4.0T 275G 3.5T 8% /data/prom_tsdb
/dev/mapper/centos-home 19G 33M 19G 1% /home
tmpfs 4.8G 0 4.8G 0% /run/user/0
ls -la from /dev/mapper
total 0
drwxr-xr-x 2 root root 120 Feb 27 17:10 .
drwxr-xr-x 20 root root 3280 Feb 27 17:10 ..
lrwxrwxrwx 1 root root 7 Feb 27 17:10 centos-home -> ../dm-2
lrwxrwxrwx 1 root root 7 Feb 27 17:10 centos-root -> ../dm-0
lrwxrwxrwx 1 root root 7 Feb 27 17:10 centos-swap -> ../dm-1
crw------- 1 root root 10, 236 Feb 27 17:10 control
lsblk -f outputs this
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 xfs 8f8242f9-7c24-4b84-a63e-bdf525dc1050 /boot
├─sda2 LVM2_member RoHLXd-Co1E-4UZ5-TeTD-JXx0-ySlG-hPjR7m
│ ├─centos-root xfs 1329ba02-4819-43a6-b98c-64af4881b353 /
│ ├─centos-swap swap f9dfdb0b-1f24-45a9-939b-2ee49ace1461 [SWAP]
│ └─centos-home xfs 33f236ac-07aa-4552-916c-1eb34d273fab /home
└─sda3
sdb
└─sdb1 ext4 c897a887-7bdc-4ba8-b134-f76a3e96efc4 /data/prom_tsdb
sr0 iso9660 CentOS 7 x86_64 2020-11-02-15-15-23-00