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

How to Maintain Snapins Folders on 10 Storage Nodes

Scheduled Pinned Locked Moved Solved
FOG Problems
4
11
1.9k
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.
  • J
    Jim Graczyk
    last edited by Aug 18, 2017, 4:29 PM

    Server
    • FOG Version: 1.5.0-RC-8 v12
    • OS: CentOS
    Description

    I’m working on a deployment that involves images and snapins at 10 sites, each site with it’s own FOG Storage Node. We’ve been working on testing for some time and have created and deleted many snapins, renamed snapins and changed the name for the file that’s uploaded to FOG for snapins.

    I’ve known for a while that FOG replication only replicates the file associated with a Snapin, thereby orphaning files if I should rename a file. In previous versions of FOG, deleting a snapin resulted in the deleting of the file associated with the snapin. In 1.5.0, it appears this doesn’t occur, and that nothing is deleted from the snapin folder when a snapin is deleted.

    So, what’s the recommended process for cleaning up the snapins folder on the default node and storage nodes?

    It’s a pain to manually cross-reference every snapin to verify you can delete a specific file, AND it’s a pain to have to delete these files on all storage nodes (of which I’ll have 9).

    Any assistance would be appreciated.

    Thanks,

    Jim

    W 1 Reply Last reply Aug 19, 2017, 12:31 AM Reply Quote 0
    • W
      Wayne Workman @Jim Graczyk
      last edited by Aug 19, 2017, 12:31 AM

      @jim-graczyk said in How to Maintain Snapins Folders on 10 Storage Nodes:

      In 1.5.0, it appears this doesn’t occur, and that nothing is deleted from the snapin folder when a snapin is deleted.

      That’s a bug report.

      for the rest, scripting and ssh certificates are your friends. I understand the pain fully, I once administrated a 15 node fog setup and pushed through every single problem between Trunk 1.3 and release 1.4. It’s a pain yeah, but your on a release candidate also - so some forgiveness is in order.

      I can get you some SQL commands that will ease the comparison process, I’ll post them in a minute.

      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!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      J 1 Reply Last reply Aug 19, 2017, 3:55 AM Reply Quote 0
      • J
        Jim Graczyk @Wayne Workman
        last edited by Aug 19, 2017, 3:55 AM

        @wayne-workman

        Do I need to post this again under Bug Reports? I don’t see a way to move this to a different section of the forum.

        Jim

        W 1 Reply Last reply Aug 19, 2017, 1:37 PM Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Aug 19, 2017, 6:32 AM

          moved…

          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
          • W
            Wayne Workman @Jim Graczyk
            last edited by Wayne Workman Aug 19, 2017, 7:38 AM Aug 19, 2017, 1:37 PM

            @jim-graczyk

            mysql -D fog
            SELECT `sFilePath` FROM `snapins`;
            quit
            

            That will get you a list of all the snapin filenames. Just go from node to node and delete ones not in this list.

            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!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            J 1 Reply Last reply Aug 19, 2017, 4:44 PM Reply Quote 0
            • J
              Jim Graczyk @Wayne Workman
              last edited by Aug 19, 2017, 4:44 PM

              @wayne-workman Thanks…

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Aug 20, 2017, 3:25 PM

                I’m not seeing the problem with deleting the files. I understand that the folders thing, but no “data” deletion has ever deleted the “data” just when the definition was deleted. If you delete a definition, the data still remains more as a safety net.

                There is the “checkbox” to delete “and data” but this only appears, for now, on the individual delete of an item.

                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
                • S
                  Sebastian Roth Moderator
                  last edited by Aug 31, 2017, 2:50 PM

                  @Jim-Graczyk @Wayne-Workman What to do with this? Still a bug or did Tom’s note clear it up? Shall we move it back to FOG problems and mark it solved?

                  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

                  J W 2 Replies Last reply Aug 31, 2017, 2:55 PM Reply Quote 0
                  • J
                    Jim Graczyk @Sebastian Roth
                    last edited by Aug 31, 2017, 2:55 PM

                    @sebastian-roth
                    I’m ok with closing this.

                    I’ll do more testing and see what I can see. Of the problems I have with the current Latest version, this is not high on my list - hence my request for advice on how to maintain a large number of storage nodes. I’m thinking we’ll look at a periodic cleanup process.

                    Thanks,
                    Jim

                    1 Reply Last reply Reply Quote 0
                    • W
                      Wayne Workman @Sebastian Roth
                      last edited by Aug 31, 2017, 5:19 PM

                      @sebastian-roth It’s possible that the files @Jim-Graczyk needed to cleanup were left un-deleted from a previous version of fog that had this problem, and it’s also entirely possible that the people that work where @Jim-Graczyk works just didn’t click the box to “delete files too” when they deleted snapins.

                      Either way, Tom stated he’s not seeing the issue in the current version.

                      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!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

                      J 1 Reply Last reply Aug 31, 2017, 5:25 PM Reply Quote 0
                      • J
                        Jim Graczyk @Wayne Workman
                        last edited by Aug 31, 2017, 5:25 PM

                        @wayne-workman

                        Agreed on all counts, plus I don’t have images that need deleting at present to test, nor time to create images just to test deletion (at this point). I’ll check this as the opportunity presents itself.

                        thanks to all.

                        Jim

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

                        222

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project