Skip to main content

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

Comments

20 comments

  • cPRex Jurassic Moderator
    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:
    0
  • songdapeng
    but my disk server is nearly. Do you mean no need to care about it? [root@host ~]# 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
    0
  • songdapeng
    the system show I used 94% and available 3.1GB, You just tell me that I still have 15GB available by not counting the VIRTS directory? /dev/vda2 50G 44G 3.1G 94% /
    0
  • cPRex Jurassic Moderator
    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.
    0
  • songdapeng
    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
    0
  • cPRex Jurassic Moderator
    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:
    0
  • songdapeng
    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:
    0
  • songdapeng
    [root@host ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 909M 0 909M 0% /dev tmpfs 919M 0 919M 0% /dev/shm tmpfs 919M 98M 822M 11% /run tmpfs 919M 0 919M 0% /sys/fs/cgroup /dev/vda2 50G 47G 816M 99% / /dev/loop0 2.0G 4.9M 1.9G 1% /tmp tmpfs 184M 0 184M 0% /run/user/0 [root@host ~]# du -hs /home/ --exclude=virtfs 11G /home/ [root@host ~]#
    0
  • cPRex Jurassic Moderator
    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.
    0
  • songdapeng
    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?
    0
  • songdapeng
    In case I expand my disk space from 50GB to 200GB, I really sure that my website can use only 50GB and VIRTFS will take resource 200GB
    0
  • cPRex Jurassic Moderator
    VirtFS will only get created for users with jailshell access for SSH, so it is normal it may not exist for all users on the machine.
    0
  • songdapeng
    VirtFS will only get created for users with jailshell access for SSH, so it is normal it may not exist for all users on the machine.

    root As I read the user guide for disable and remove the jail shell. but it's not work
    0
  • cPRex Jurassic Moderator
    There is no way to completely remove VirtFS from the system.
    0
  • songdapeng
    There is no way to completely remove VirtFS from the system.

    sure, I just think it should can decrease disk space of virtfs from 14GB to 10GB
    0
  • Futureen
    sure, I just think it should can decrease disk space of virtfs from 14GB to 10GB

    Hello there, did you try checking what exactly occupies your disk via some commands? Like this, for example: du -hsx /* --exclude /home/virtfs 2>/dev/null | sort -rh | head -10
    0
  • songdapeng
    Yes. [QUOTE][root@host ~]# du -hsx /* --exclude /home/virtfs 2>/dev/null | sort -rh | head -10 8.3G /home 6.8G /usr 6.3G /var 802M /opt 348M /boot 309M /root 97M /run 64M /etc 2.6M /tmp 364K /error_log
    0
  • Futureen
    Yes.

    Well, it would appear that you have plenty of free space in case the first "df -h" output in the thread is to believed and you have 50 GB of root partition. What's the exact issue? If If you run "df -h /", does it show that you have around 25GB of disk space free?
    0
  • VincentM

    I am having the same experience as well. Anyone who has a solution.

    0
  • cPRex Jurassic Moderator

    VincentM - can you post the output of "df -h" from your server?

    0

Please sign in to leave a comment.