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

Moving the Default Image Storage

Scheduled Pinned Locked Moved
FOG Problems
2
2
1.1k
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.
  • T
    TheFunk
    last edited by May 20, 2014, 6:31 PM

    Hi all!

    I’ve been working on moving the default storage location of the newest version of Fog. I followed [URL=‘http://topgearit.net/index.php?title=Change_FOG_Image_Storage_Location’]this guide[/URL] to the letter, and everything is working with the exception of the storage reporting done by the web interface. It looks like the SPACE_DEFAULT_STORAGE variable was moved from the freespace.php file to a different location. Has anyone looked into this? I think I found something similar in one of the files under commons, but I’m not positive it’s the same thing. It should also be noted that the commons directory is now under the /var/www/html/fog directory.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by May 20, 2014, 7:37 PM

      First and foremost, system.php is the file that always defined SPACE_DEFAULT_STORAGE, and at least with 0.32 and higher, has always been defined and located in commons/system.php.

      Second, the SPACE_DEFAULT_STORAGE variable always returned based on that particular setting. This meant, if you had a storage node located at /data/somedir/images rather than /images, the only way to get the data to return was to either change this variable to the proper location on the fog server or create a symbolic link as /images on the system.

      This same applied to other storage nodes. I fixed this issue by just performing a df on the systems proper directory thus limiting the reporting of the SPACE_DEFAULT_STORAGE unless it could not find information on the other nodes.

      It didn’t moved, it never moved, just the means of obtaining the information changed.

      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
      • 1 / 1
      1 / 1
      • First post
        2/2
        Last post

      148

      Online

      12.0k

      Users

      17.3k

      Topics

      155.2k

      Posts
      Copyright © 2012-2024 FOG Project