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

Moving Images and changing image location

Scheduled Pinned Locked Moved Solved
General
4
52
36.8k
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.
  • T
    Tim.Trageser
    last edited by May 26, 2015, 3:09 PM

    I have been running FOG on an old Laptop and it doesn’t have much space. I have recently obtained a 1 TB external Drive. I cannot find a process for moving the images from the local HD to the external and telling FOG to look there for images as well as saving new images there.

    I searched the Wiki and found the explanation of Storage Nodes, but it doesn’t really give steps for moving your Main Storage Node from /images to another location.

    Anybody have steps to do this?

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by May 26, 2015, 3:11 PM

      @Tim.Trageser

      I think you’d just copy all the images over to the external drive, and then change your storage management (your node) options to point to the right spot.

      You MIGHT need to update the path for each image. But that should be very easy since you don’t have to type in the whole thing, you’d just be modifying the path.

      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/

      1 Reply Last reply Reply Quote 0
      • T
        Tim.Trageser
        last edited by May 26, 2015, 3:13 PM

        I was thinking something like that too, but when I look at the images only the name of the image in image path is editable. The “/images/” doesn’t appear to be modifiable unless that changes when I change the info in the Node.

        1 Reply Last reply Reply Quote 0
        • W
          Wayne Workman
          last edited by May 26, 2015, 3:15 PM

          Well,

          If you aren’t allowed to change it, and updating the node will not change it,

          You’d just have to re-make the image DB entries. I.E. Create new image -> give it the EXACT name as the old image, same options, ensure path is right.

          And then as long as the paths and names and options are correct, it should use the image you already have in that new spot.

          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/

          1 Reply Last reply Reply Quote 0
          • T
            Tim.Trageser
            last edited by May 26, 2015, 3:32 PM

            Okay, so I went for it and when you change the images path in the Storage Node it changes the Image path for the images. Now I just need to make sure the permissions are correct and that images can be uploaded and downloaded to the new location.

            1 Reply Last reply Reply Quote 0
            • W
              Wayne Workman
              last edited by May 26, 2015, 3:36 PM

              [CODE]sudo chmod -R 777 /your/new/path/to/your/images[/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!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

              1 Reply Last reply Reply Quote 0
              • W
                Wayne Workman
                last edited by May 26, 2015, 5:02 PM

                Also, I’m not sure if FOG will update your /etc/exports automatically when you change the storage node path…

                If it doesn’t, you’ll need to edit that file.
                [CODE]vi /etc/exports[/CODE]

                and just change the paths in there so they are correct. You’ll need to restart NFS and RPC or just reboot your FOG laptop.

                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/

                1 Reply Last reply Reply Quote 0
                • T
                  Tim.Trageser
                  last edited by May 26, 2015, 5:39 PM

                  Hmm… I am thinking I should have reformatted this external Drive. It is formatted with NTFS and the chmod isn’t taking.

                  W 1 Reply Last reply May 26, 2015, 5:49 PM Reply Quote 1
                  • W
                    Wayne Workman @Tim.Trageser
                    last edited by May 26, 2015, 5:49 PM

                    @Tim.Trageser said:

                    Hmm… I am thinking I should have reformatted this external Drive. It is formatted with NTFS and the chmod isn’t taking.

                    most definitely. try to use ext4

                    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/

                    1 Reply Last reply Reply Quote 0
                    • T
                      Tim.Trageser
                      last edited by May 26, 2015, 7:23 PM

                      Okay, formatted external Drive as ext4. Copied over all images, leaving originals in /images. Made sure the image path in the Storage Node pointed at the new images folder on the external drive. Ran both commands below:

                      sudo chmod -R 777 /media/mj/FOGImages
                      sudo touch /media/mj/FOGImages/images/{,dev/} .mntcheck

                      Disk info in FOG shows NaN% for free and used space and when I try and schedule a Download it gives me the “You need to create an image first” error message.

                      Is there a permission or anything I need to add, like on the media folder? Let me know if you need more information.

                      1 Reply Last reply Reply Quote 0
                      • W
                        Wayne Workman
                        last edited by May 26, 2015, 7:30 PM

                        What version of FOG are you running?

                        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/

                        1 Reply Last reply Reply Quote 0
                        • T
                          Tim.Trageser
                          last edited by May 26, 2015, 7:30 PM

                          SVN 3463

                          1 Reply Last reply Reply Quote 0
                          • W
                            Wayne Workman
                            last edited by May 26, 2015, 7:31 PM

                            Check this out.

                            https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP#You_must_first_upload_an_image_to_create_a_download_task

                            When done, try to re-run your installer.

                            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/

                            1 Reply Last reply Reply Quote 0
                            • T
                              Tim.Trageser
                              last edited by May 26, 2015, 7:45 PM

                              Should I change the “storagelocation=” in the .fogsettings to match my new location?

                              W 1 Reply Last reply May 26, 2015, 7:49 PM Reply Quote 0
                              • W
                                Wayne Workman @Tim.Trageser
                                last edited by May 26, 2015, 7:49 PM

                                @Tim.Trageser said:

                                Should I change the “storagelocation=” in the .fogsettings to match my new location?

                                That’s probably a good idea.

                                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/

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Tim.Trageser
                                  last edited by May 26, 2015, 7:50 PM

                                  Thanks. I just want to make sure my brain is not lieing to me.

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    Tim.Trageser
                                    last edited by May 26, 2015, 7:57 PM

                                    So, I did all that and nothing changed. I still have nothing showing in Disk Information and When I try to Download an image it tells me I have to upload an image first.

                                    1 Reply Last reply Reply Quote 0
                                    • W
                                      Wayne Workman
                                      last edited by Wayne Workman May 26, 2015, 2:07 PM May 26, 2015, 8:07 PM

                                      Double Check your storage node credentials, make sure they match the local fog user’s credentials.

                                      Double Check your TFTP_FTP credentials inside FOG Configuration -> FOG Settings

                                      Double Check your /etc/exports file ??

                                      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/

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        Tim.Trageser
                                        last edited by May 26, 2015, 8:19 PM

                                        I have checked all the passwords and the exports file. Everything is set to the same password and the exports file is pointing to the correct folder.

                                        I check the permissions on the external drives folders and everything seems to be set correctly on that.

                                        It has to be something with the way the external drive is set up, it is like FOG can’t see it.

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          Tim.Trageser
                                          last edited by May 27, 2015, 11:48 AM

                                          I restarted my FOG machine and now Apache won’t start I get the below error on the command line:

                                          mj@fog-server:/opt/trunk/bin$ sudo service apache2 start

                                          • Starting web server apache2 *
                                          • The apache2 configtest failed.
                                            Output of config test was:
                                            AH00526: Syntax error on line 12 of /etc/apache2/sites-enabled/001-fog.conf:
                                            SSLCertificateFile: file ‘/var/www/fog/management/other/ssl/srvpublic.crt’ does not exist or is empty
                                            Action ‘configtest’ failed.
                                            The Apache error log may have more information.

                                          Going to the logs now.

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 1 / 3
                                          1 / 3
                                          • First post
                                            1/52
                                            Last post

                                          203

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.3k

                                          Posts
                                          Copyright © 2012-2024 FOG Project