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

FOG Main Server cannot determine free storage from a fog storage node

Scheduled Pinned Locked Moved
FOG Problems
3
11
4.0k
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.
  • X
    x23piracy
    last edited by Jul 31, 2014, 10:03 AM

    Hi,

    i have installed an additional fog storage node (S) imaging and the rest is working but the main fog cannot determine the freespace on the storage node.

    I excepted this will work when using fog as storage node.
    I made some experiments with nfs and ftp without installing fog there i had the same problems but i thougth this will now work out of the box.

    Regards X23

    ║▌║█║▌│║▌║▌█

    1 Reply Last reply Reply Quote 0
    • X
      x23piracy
      last edited by Jul 31, 2014, 10:10 AM

      Hi,

      if i try to connect to the new storage nodes freespace.php i see that:

      [IMG]http://i.imgur.com/9IW6WgF.png[/IMG]
      Why the hell will this displayed? There is no sql database on the storage node (S)…!

      FOG Main is SVN (1.2.0)
      Storage Node is SVN (Today)

      Is that a problem?

      Regards

      ║▌║█║▌│║▌║▌█

      1 Reply Last reply Reply Quote 0
      • X
        x23piracy
        last edited by Jul 31, 2014, 10:18 AM

        Hi,

        i’ve installed same latest svn on both now, and i still get no free disk space:
        If i open freespace.php on new storage node (S) it still want to update a db that isnt existing on a storage node (S).

        Regards

        ║▌║█║▌│║▌║▌█

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Jul 31, 2014, 12:59 PM

          This sounds, to me, like the Storage Nodes /var/www/fog/lib/fog/Config.class.php isn’t looking at the Main FOG Server’s database, as is intended. The way a node works, is it simply links to the main FOG Server and uses the main database.

          If the main FOG Server’s IP is 10.10.10.25, then the Config.class.php should look something like:
          [php] /**
          * db_settings();
          * Defines the database settings for FOG
          * @return void
          */
          private static function db_settings()
          {
          define(‘DATABASE_TYPE’, ‘mysql’); // mysql or oracle
          define(‘DATABASE_HOST’, ‘10.10.10.25’);
          define(‘DATABASE_NAME’, ‘fog’);
          define(‘DATABASE_USERNAME’, ‘fogstorage’);
          define(‘DATABASE_PASSWORD’, ‘fs8816181243’);
          }[/php]

          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

          K 1 Reply Last reply Mar 11, 2024, 9:48 PM Reply Quote 0
          • X
            x23piracy
            last edited by Jul 31, 2014, 1:24 PM

            Hi,

            the Config.class.php is fine:

            [IMG]http://i.imgur.com/9ZeDgXC.png[/IMG]

            fog main (db): 172.19.102.17
            additional storage node (s): 172.19.102.18

            The picture above is taken from 172.19.102.18
            It must be another problem.

            Also: Using the additional storage node is working fine, what is not working is the correct image size on server but that was also wrong with main node, it always shows around 2gb for image on server:

            [IMG]http://i.imgur.com/IAGiC4z.png[/IMG]

            And fog main does not show free space for additional storage node:

            [IMG]http://i.imgur.com/Ex2xWGs.png[/IMG][IMG]http://i.imgur.com/S6J6d3x.png[/IMG]

            I used the following informations from main fog (db) to configure the additional storage node:

            [IMG]http://i.imgur.com/mWpeA4v.png[/IMG]

            Regards X23

            ║▌║█║▌│║▌║▌█

            1 Reply Last reply Reply Quote 0
            • T
              Tom Elliott
              last edited by Jul 31, 2014, 1:27 PM

              From that storage node:

              If you run:
              [code]mysql -u fogstorage -p’fs1139809790’ -h172.19.102.17 fog[/code]

              Does it connect?

              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
              • X
                x23piracy
                last edited by Jul 31, 2014, 1:32 PM

                Hi,

                it seems you found it:

                [IMG]http://i.imgur.com/f74irMV.png[/IMG]

                Hmm but why are the credentials wrong? I used what is display here:

                [IMG]http://i.imgur.com/X1AIqH5.png[/IMG]
                Howto find out correct credentials?

                Edit:

                Hmm it says cannot connect not wrong credentials… hmm db ip is pingable…

                Regards X23

                ║▌║█║▌│║▌║▌█

                1 Reply Last reply Reply Quote 0
                • X
                  x23piracy
                  last edited by Aug 1, 2014, 6:08 PM

                  Hi,

                  this one is also fixed, my fog db was only accessible from 127.0.0.1 like that no additional storage node can connect fogs db, we changed mysql settings to make it accessible from anyone or in special only the storage node.

                  @Tom you did the changes maybe you can go deeper with details?

                  Regards X23

                  ║▌║█║▌│║▌║▌█

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Elliott
                    last edited by Aug 1, 2014, 6:43 PM

                    The only change I did for this issue:

                    Edit the /etc/mysql/my.cnf file (ubuntu)
                    Look for the line that has something along the lines of:
                    [code]bind-address=127.0.0.1[/code]
                    Make it look like:
                    [code]#bind-address=127.0.0.1[/code]

                    Restart mysql:
                    [code]sudo service mysql restart[/code]

                    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
                    • K
                      kamburta @Tom Elliott
                      last edited by Mar 11, 2024, 9:48 PM

                      @Tom-Elliott This is the command I execute for the node to register with the fog master? I wanted to perform the same procedure as the installation script when we chose the storage version and it automatically registers itself on the master.
                      Thank you very much

                      T 1 Reply Last reply Mar 12, 2024, 10:44 AM Reply Quote 0
                      • T
                        Tom Elliott @kamburta
                        last edited by Mar 12, 2024, 10:44 AM

                        @kamburta I am not sure this is the right topic to be trying to bring back from the dead. There has been quite a lot (almost entirely) that’s changed about FOG since 2014.

                        Registering nodes ot the master is, now, automated during the installation process of a new storage node.

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

                        232

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project