Skip to main content

virtfs Mount Just Won't Go Away! Disk Being Wasted

Comments

6 comments

  • 24x7server
    Hello :), Virtfs directory does not use any disk space on the server. Please check the following docs and try to disable it for your user. VirtFS (Jailed Shell) - Documentation - cPanel Documentation
    0
  • cPanelMichael
    It takes up a lot of space in /home/virtfs/username.

    Hello :) A bind mount is a transparent link between two places on the file system. For example, if a user views the contents of /home/virtfs/username/usr/bin, the user actually sees the contents of /usr/bin. Thus, the /home/virtfs/$user directory itself is not actually using up any additional space than already exists. Data is not actually duplicated. Documentation on VirtFS is found at: VirtFS (Jailed Shell) - Documentation - cPanel Documentation Thank you.
    0
  • kray
    An issue needs to be created for the Disk Usage reporting in WHM because it doesn't subtract virtfs mounts which results in unnecessary diskwarns and could have other potential side-effects.
    0
  • cPanelMichael
    New An issue needs to be created for the Disk Usage reporting in WHM because it doesn't subtract virtfs mounts which results in unnecessary diskwarns and could have other potential side-effects.

    Could you provide some more details on this? For instance, where in particular is the usage reported incorrectly, and have you utilized the "du" command to verify the disk space usage via the command line? Are you sure it's not coming from another source? Thank you.
    0
  • kray
    Could you provide some more details on this? For instance, where in particular is the usage reported incorrectly, and have you utilized the "du" command to verify the disk space usage via the command line? Are you sure it's not coming from another source? Thank you.

    The contents of /home/virtfs is reported as used space in the WHM section "Disk Usage" and with ncdu. ncdu shows me very exactly where my disk usage is coming from and reports /home/virtfs as taking up a very large amount of space.
    0
  • cPanelMichael
    The contents of /home/virtfs is reported as used space in the WHM section "Disk Usage" and with ncdu. ncdu shows me very exactly where my disk usage is coming from and reports /home/virtfs as taking up a very large amount of space.

    The following document helps to explain what bind mounts are: What is a bind mount? It explains why it looks like they are taking up space, but really are not. Feel free to open a support ticket using the link in my signature if you want us to verify if disk space is actually miscalculated on your system, as I've been unable to reproduce that behavior. Thank you.
    0

Please sign in to leave a comment.