Skip to main content
added 1178 characters in body
Source Link

enter image description here

[root@hpmaincs mapper]# lsblk --output NAME,KNAME,TYPE,SIZE,MOUNTPOINT
NAME            KNAME TYPE  SIZE MOUNTPOINT
fd0             fd0   disk    4K
sda             sda   disk  100G
├─sda1          sda1  part    1G /boot
└─sda2          sda2  part   99G
  ├─centos-root dm-0  lvm    50G /
  ├─centos-swap dm-1  lvm   7.9G [SWAP]
  └─centos-home dm-2  lvm  41.1G /home
sdb             sdb   disk  100G
sr0             sr0   rom  1024M
[root@hpmaincs mapper]# df -H
Filesystem                                     Size  Used Avail Use% Mounted on
/dev/mapper/centos-root                         54G   54G   21k 100% /
devtmpfs                                       8.4G     0  8.4G   0% /dev
tmpfs                                          8.4G     0  8.4G   0% /dev/shm
tmpfs                                          8.4G  801M  7.6G  10% /run
tmpfs                                          8.4G     0  8.4G   0% /sys/fs/cgroup
/dev/sda1                                      1.1G  228M  836M  22% /boot
/dev/mapper/centos-home                         45G   38M   45G   1% /home
ytr.itm.com:/Media                             34T   26T  8.0T  77% /root/cvmedia
tmpfs                                          1.7G     0  1.7G   0% /run/user/0

enter image description here

[root@hpmaincs mapper]# lsblk --output NAME,KNAME,TYPE,SIZE,MOUNTPOINT
NAME            KNAME TYPE  SIZE MOUNTPOINT
fd0             fd0   disk    4K
sda             sda   disk  100G
├─sda1          sda1  part    1G /boot
└─sda2          sda2  part   99G
  ├─centos-root dm-0  lvm    50G /
  ├─centos-swap dm-1  lvm   7.9G [SWAP]
  └─centos-home dm-2  lvm  41.1G /home
sdb             sdb   disk  100G
sr0             sr0   rom  1024M
[root@hpmaincs mapper]# df -H
Filesystem                                     Size  Used Avail Use% Mounted on
/dev/mapper/centos-root                         54G   54G   21k 100% /
devtmpfs                                       8.4G     0  8.4G   0% /dev
tmpfs                                          8.4G     0  8.4G   0% /dev/shm
tmpfs                                          8.4G  801M  7.6G  10% /run
tmpfs                                          8.4G     0  8.4G   0% /sys/fs/cgroup
/dev/sda1                                      1.1G  228M  836M  22% /boot
/dev/mapper/centos-home                         45G   38M   45G   1% /home
ytr.itm.com:/Media                             34T   26T  8.0T  77% /root/cvmedia
tmpfs                                          1.7G     0  1.7G   0% /run/user/0
Source Link

Freshly Provisioned Cent-OS occupies a lot of space for "/dev/mapper/centos-root"

I created a fresh VM, however I started facing space issues as soon as it got created. From the du and lsblk command I see /dev/mapper/centos-root is occupying a lot of space. I tried running tree command on root to filter all files occupying large space. But the command takes forever.

How do I figure out what exactly is occupying space and delete them from system.

Here is the output of command.

enter image description here