• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Limit disk space that FOG can use

    Scheduled Pinned Locked Moved
    General
    4
    4
    455
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      DBCountMan
      last edited by

      Is it possible to limit the amount of disk space that FOG can use without partitioning? I built a new Hyper-V server with about 13TB that will host VMs, FOG included, and I will be mounting the images from the host to the VM with an internal switch via SMB. I understand that the FOG UI will show total size available wherever the /images is located, even if you have a network share mounted on /images. So without partitioning the volume, is there a way to tell FOG to limit the available space to use for images?

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @brakcounty said in Limit disk space that FOG can use:

        is there a way to tell FOG to limit the available space to use for images?

        No, not that I am aware of at least.

        I will be mounting the images from the host to the VM with an internal switch via SMB.

        Not sure if this is possible to do (export NFS share on a SMB mount) on the one hand and then if it’s wise to do on the other hand.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • S
          soniya7
          last edited by

          since you mentioned that you do not want to partition the volume, an alternative approach could involve creating a disk quota at the operating system level. Disk quotas are a feature provided by the operating system (in this case, the Hyper-V host) that allows you to set limits on the amount of disk space a specific user or group can consume.
          Set up the network share on the Hyper-V host where you will store the FOG images. Ensure the share is accessible from the FOG VM. Inside the FOG VM, mount the network share to the /images directory, which is where FOG stores the images. You can do this using the mount command or by adding an entry in /etc/fstab for persistent mounting. Configure disk quotas on the Hyper-V host for the user or group associated with the FOG VM. Set the quota limit to the desired amount of disk space you want FOG to use for images.
          Keep in mind that disk quotas are managed at the operating system level and are not specific to FOG. Therefore, this method will not provide real-time monitoring of disk usage within the FOG web interface. You will need to monitor the disk space usage separately on the Hyper-V host.

          D 1 Reply Last reply Reply Quote 0
          • D
            DBCountMan @soniya7
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            173

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project