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

Change default /images directory

Scheduled Pinned Locked Moved Unsolved
FOG Problems
4
13
7.7k
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.
  • F
    finvader
    last edited by Feb 23, 2017, 5:51 PM

    Server
    • FOG Version: 1.3.4
    • OS: Centos 7.3
    Client
    • Service Version:
    • OS:
    Description

    Is there a way during the fog install to change the default /images location? I see the section in the installer.sh where is prompts you to put in the location but when I run the installer, I never see the prompt. I there a command line switch or something. We use /home/images as our centos 7.3 boxes are all built from the same image and we do not wish to maintain another baseline. Our partition where /images defaults to is not large enough.

    V/R

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Tom Elliott Feb 23, 2017, 11:54 AM Feb 23, 2017, 5:53 PM

      You could run the installer with:

      storageLocation=/newpath/to/location storageLocationCapture=/newpath/to/location/dev ./installfog.sh -y
      

      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
      • F
        finvader
        last edited by Feb 23, 2017, 5:54 PM

        Danke! Will give it a go. Not too big a deal as I can change the settings but would be nice to just specify during install.

        T G 2 Replies Last reply Feb 23, 2017, 5:56 PM Reply Quote 0
        • T
          Tom Elliott @finvader
          last edited by Feb 23, 2017, 5:56 PM

          @finvader How are you running the installer?

          The only time, otherwise, that it asks this is fresh install.

          If you’re upgrading, you would need to edit the /opt/fog/.fogsettings file looking for storageLocation.

          Or, of course, you can run as I just suggested.

          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 2
          • G
            george1421 Moderator @finvader
            last edited by Feb 23, 2017, 5:57 PM

            @finvader I would have to ask, what is your goal here (yes I know to change the path, but why?) What is your end game because there may be another way to go about it to keep your fog build sane and still get the results you need.

            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
            • F
              finvader
              last edited by Feb 23, 2017, 5:57 PM

              I was running a fresh install today and I did not see where it asked for storage location.

              G 1 Reply Last reply Feb 23, 2017, 5:58 PM Reply Quote 0
              • G
                george1421 Moderator @finvader
                last edited by Feb 23, 2017, 5:58 PM

                @finvader Ah, OK it was more of a general question…

                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
                • F
                  finvader
                  last edited by Feb 23, 2017, 6:01 PM

                  Long story short. We maintain 1 centos 7.3 image. Our home directory is around 1.5 TB of storage. We create the /home/images directory to store images. In the past, after the install I had to go into the settings and simply change the location of the storage location and dev, now maybe, if we need to rebuild, I can just specify the location during the install. Trying to simplify things as much as possible for those that come behind me to attempt.

                  G 1 Reply Last reply Feb 23, 2017, 6:05 PM Reply Quote 0
                  • G
                    george1421 Moderator @finvader
                    last edited by Feb 23, 2017, 6:05 PM

                    @finvader While this doesn’t speak directly to your current situation, if you ever rebuild your fog server I’ve recommended that you move your images (and if you are a heavy snapin user) off the root partition all together. This way you can prevent a full root partition from taking down your fog server. If you fill up the images partition or disk just that disk has issues and not the OS.
                    https://forums.fogproject.org/topic/6642/moving-fog-s-images-files-off-the-root-partition

                    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!

                    F 1 Reply Last reply Feb 23, 2017, 6:20 PM Reply Quote 1
                    • F
                      finvader @george1421
                      last edited by Feb 23, 2017, 6:20 PM

                      @george1421 The images are not on root partition. Here is our partition setup. This is in a fully STIG compliant secured centos 7.3
                      /root
                      /
                      /home
                      /boot
                      swap
                      /var/log
                      /var/log/audit
                      /tmp

                      Images are stored in /home

                      G 1 Reply Last reply Feb 23, 2017, 6:26 PM Reply Quote 0
                      • G
                        george1421 Moderator @finvader
                        last edited by Feb 23, 2017, 6:26 PM

                        @finvader Right, and all I’m suggesting is that you create a new partition or if this is a virtual machine a new vmdk to hold your images. Your existing validated structure would stay in place.

                        Most users just use the default partitioning structure for the OS and then run into issues when they capture something too big for the available space on the disk. Then the root partition fills up and the OS dies and its hard to recover.

                        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!

                        F 1 Reply Last reply Feb 23, 2017, 6:27 PM Reply Quote 0
                        • F
                          finvader @george1421
                          last edited by Feb 23, 2017, 6:27 PM

                          @george1421 yes definitely, thanks

                          1 Reply Last reply Reply Quote 0
                          • X
                            x23piracy
                            last edited by x23piracy Feb 23, 2017, 4:27 PM Feb 23, 2017, 10:26 PM

                            Hi,

                            in order to @george1421 's post, because of the may incoming space issue i have the main fog server on a vm with only 50gb of storage and an additional physical storage node with 4tb raid storage that will also went on a backup tape each week. our vm’s on esx also have a backup each week.

                            Regards X23

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

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

                            249

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project