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

    Storage size under Disk Information wrong

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    8
    2.8k
    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.
    • M
      madeyem
      last edited by

      Hi everyone,

      I use FOG 0.32 on Ubuntu Server 10.04 LTS.

      The RAID 5EE on my FOG server failed, I replaced 3 disks and created a new RAID 6. After partitioning (with cfdisk) and formatting (ext4) my array, the web interface doesn’t show the right storage size under “Disk information”. It should be about 9985 GB, but it only shows 1035 GB.
      If I check the partition size in Ubuntu terminal (fdisk -l), it shows the correct size, so it has to be something with FOG. The settings for FOG haven’t changed. If I remember correctly, someone had a similar problem, but unfortunately I wasn’t able to find the thread.

      Can someone help?
      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • Jaymes DriverJ
        Jaymes Driver Developer
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • Jaymes DriverJ
          Jaymes Driver Developer
          last edited by

          Edit the file freespace.php in your web-root (/var/www/fog/status/) (on centos 6 see /var/www/html/fog/status):
          define( “SPACE_DEFAULT_STORAGE”, “/home/fog/images/” );
          You may also need to modify the permissions for the /home/fog directory. It is suggested that you use:
          chmod 701 /home/fog

          Create .mntcheck file in your new “images” and “dev” folders :
          touch .mntcheck

          1 Reply Last reply Reply Quote 0
          • M
            madeyem
            last edited by

            Hi James,

            thanks, but the path in freespace.php was already correct. In my case the folder is “/images”. The permissions on /images, /dev and .mntcheck are all set to 777.

            1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott
              last edited by

              Check that the storagenode is pointing to the right location.

              When you say it’s not displaying properly, have you verified that the system actually recognizes the right size?

              [code]df -h[/code]

              Is your new drives a part of the root system and is /images supposed to be mounted on it’s own?

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              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
              • M
                madeyem
                last edited by

                Sorry, my fault. I thought I had created one partition for the whole array, but apparently the system only created a 1,1 TB partition and left the rest unpartitioned.

                1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott
                  last edited by

                  So you know how to take care of this from here?

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  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
                  • M
                    madeyem
                    last edited by

                    Yes, thanks. I will use parted now. Apparently using cfdisk to create partitions is not good for me. 😉 😄

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post

                    206

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project