Does CentOS count mounted external drives towards the space used

General support questions
Post Reply
anders_tn
Posts: 10
Joined: 2014/03/10 00:37:28

Does CentOS count mounted external drives towards the space used

Post by anders_tn » 2018/07/11 22:52:19

Hi

I'm having an issue with my virtual server server where it is reporting my root partition (at least as i understand it) as full:

Code: Select all

Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root  7.8G  7.8G   20K 100% /
devtmpfs                 732M     0  732M   0% /dev
tmpfs                    748M     0  748M   0% /dev/shm
tmpfs                    748M   82M  667M  11% /run
tmpfs                    748M     0  748M   0% /sys/fs/cgroup
/dev/sda2               1014M  230M  785M  23% /boot
/dev/sda1                200M  9.5M  191M   5% /boot/efi
tmpfs                    150M   20K  150M   1% /run/user/42
tmpfs                    150M     0  150M   0% /run/user/0
tmpfs                    150M     0  150M   0% /run/user/1000

Code: Select all

0       bin
207M    boot
0       dev
41M     etc
0       lib
0       lib64
0       media
3.2G    mnt
0       opt
0       proc
3.2M    root
82M     run
0       sbin
0       srv
0       sys
8.0K    tmp
3.5G    usr
1.1G    var
8.0G    total
Now this is false as 3.2G of data listed under /mnt is really a result of me having mounted some networked folders and thus is not actually stored within the LVM even so it seems that CentOS considers this to be part of / and hence the drive I assumed would be big enough for a small file server is now full. Is there any way to fix this aside from growing the virtual disk limits and then growing the logical volume and then extending the partition?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Does CentOS count mounted external drives towards the space used

Post by TrevorH » 2018/07/12 01:48:01

According to your df output, you do not have anything mounted on /mnt so that directory is indeed on your root filesystem and is taking up 3.2GB on it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

anders_tn
Posts: 10
Joined: 2014/03/10 00:37:28

Re: Does CentOS count mounted external drives towards the space used

Post by anders_tn » 2018/07/12 16:03:54

Ah. Thank you for the help. I didn't notice that for some reason after a reboot fstab had not mounted my drives hence the application that was using the share just started filling up the disk.

Post Reply