virtfs, What can I do to decrease the directory as Disk space nearly 100%

songdapeng

Member
Feb 14, 2023
11
0
1
Laos
cPanel Access Level
Root Administrator
Dear All,

as I use Cpanel and my server disk space only 30GB for website but the virtfs directory use 15GB. I know that this is a important directory of CPanel but there is nothing I can do with this to decrease my space of server?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,307
2,440
363
cPanel Access Level
Root Administrator
Hey there! It's important to note that VirtFS is not actually taking up any space on your machine. We have additional details on this here:


You'll want to look to other areas of the system to decrease your disk usage, and you may find the following article helpful:

 

songdapeng

Member
Feb 14, 2023
11
0
1
Laos
cPanel Access Level
Root Administrator
but my disk server is nearly. Do you mean no need to care about it?

[[email protected] ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 909M 0 909M 0% /dev
tmpfs 919M 0 919M 0% /dev/shm
tmpfs 919M 97M 823M 11% /run
tmpfs 919M 0 919M 0% /sys/fs/cgroup
/dev/vda2 50G 44G 3.1G 94% /
/dev/loop0 2.0G 6.2M 1.9G 1% /tmp
tmpfs 184M 0 184M 0% /run/user/0
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,307
2,440
363
cPanel Access Level
Root Administrator
Thanks for the additional details. I'm not disagreeing that your machine isn't full, but I am saying that you can't delete data from virtfs and that isn't included in the calculations. You'll want to find another area inside / where you can remove data.
 

songdapeng

Member
Feb 14, 2023
11
0
1
Laos
cPanel Access Level
Root Administrator
so If I can do nothing with it, it's mean I lost 50%(15GB) of disk space to Cpanel to store information. why it's so big like that? I think it's just configuration.
Any Configuration to set the information to storing on the VIRTS
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,307
2,440
363
cPanel Access Level
Root Administrator
No, it doesn't mean that at all. VirtFS uses a series of bind mounts and doesn't take up actual disk space on the system. You'll want to find another area where you can clear up data from.

Here is a slightly different explanation of that area on the machine:

 

songdapeng

Member
Feb 14, 2023
11
0
1
Laos
cPanel Access Level
Root Administrator
No, it doesn't mean that at all. VirtFS uses a series of bind mounts and doesn't take up actual disk space on the system. You'll want to find another area where you can clear up data from.

Here is a slightly different explanation of that area on the machine:

I checked my some linux team, It's seem like your virtfs really take up disk space.
my drive has 50GB, but the Virtfs take 30GB. so bad
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,307
2,440
363
cPanel Access Level
Root Administrator
If you try checking a file inside VirtFS and comparing it to a file outside of VirtFS, you'll see they are actually the same inode, so it is not additional disk space used by the system. This is a well-known issue with VirtFS, and not the cause of your system being low on disk space.

It seems your entire server is only 50G, which may just not be enough space for all of your data plus the operating system.
 

songdapeng

Member
Feb 14, 2023
11
0
1
Laos
cPanel Access Level
Root Administrator
If you try checking a file inside VirtFS and comparing it to a file outside of VirtFS, you'll see they are actually the same inode, so it is not additional disk space used by the system. This is a well-known issue with VirtFS, and not the cause of your system being low on disk space.

It seems your entire server is only 50G, which may just not be enough space for all of your data plus the operating system.
Thank you very much for your reply.
Yes, from my checking,
my / path has is 50GB for disk space and /home include all websites exclude virtfs only 11GB and VIRTFS take 30GB
as guide, the virtfs is not take any disk space, but when my disk used 100%, I can't upload any file to it.

I checked the virtfs inside, there're only fews domain account on it, why not store all?
so I can disable any think or do something to make the virtfs resource decrease?