• 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.
    • x23piracyX
      x23piracy
      last edited by

      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
      • x23piracyX
        x23piracy
        last edited by

        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
        • Tom ElliottT
          Tom Elliott
          last edited by

          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 Reply Quote 0
          • x23piracyX
            x23piracy
            last edited by

            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
            • Tom ElliottT
              Tom Elliott
              last edited by

              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
              • x23piracyX
                x23piracy
                last edited by

                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
                • x23piracyX
                  x23piracy
                  last edited by

                  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
                  • Tom ElliottT
                    Tom Elliott
                    last edited by

                    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

                      @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

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

                        @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

                        147

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project