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

    Moving images on storage nodes

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    4
    614
    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.
    • S
      sonic136
      last edited by

      Good Afternoon Community

      We have 2 nodes (a nas with slower HDDS and a node in a DC with SSDs)

      We use the nas storage for building and testing images, after this are forced to re-deploy our golden image and then re-capture the image on Fog.

      Is there a way to move the captured image from one storage node to another.

      Both the nodes are set to master so im not sure if the replication would work (as read on a different thread).

      Is there a feature in the console that would allow the moving of images from dev (nas) to production (DC storage)

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

        @sonic136 said in Moving images on storage nodes:

        Both the nodes are set to master so im not sure if the replication would work (as read on a different thread).
        Is there a feature in the console that would allow the moving of images from dev (nas) to production (DC storage)

        In this scenario your only choise would be using external tools like rsync to replicate the image from dev to production. That shouldn’t be too hard to setup using a cron job.

        Image definitions need to be created manually though. There might be a way to query the information and add to the other node using the FOG API but I don’t think it’s worth the time to implement this unless you are really keen.

        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

        S 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator @sonic136
          last edited by

          @sonic136 There is no automated way to do this but it is possible.

          Just so you know a FOG “image” is made of 2 parts.

          1. The raw image files saved in /images/<image_name> directory
          2. The metadata stored in the FOG server database.

          For option 1 you can either use rsync/scp to copy the raw data files between the two servers. OR you can, on your development server, add the deployment server as a storage node in your development server’s storage group. (FWIW you can only have one master node in each storage group, but a master node in storage group A can be a slave node in storage group B). We can leverage this feature to allow the raw file replication between the development server and the deployment server. To control the file copy just be sure to disable replication in the development server’s image definition. Once replication is enabled the raw data files will be sync’d between the two servers.

          For option 2 its less clear. The easiest solution is to just manually create the image definition on the deployment server to match the settings on the development server. The issue is that the metadata copy function doesn’t exist in the FOG replicator because in a normal master node, storage node setup there is only one database and that is on the root FOG server.

          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!

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

            @sebastian-roth Thank you. Will look into it!

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

            175

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project