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

Image hosting on NFS server, process uncompleted?

Scheduled Pinned Locked Moved Solved
FOG Problems
5
45
14.5k
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.
  • A
    arnaudrigole @arnaudrigole
    last edited by May 17, 2016, 4:38 PM

    @Junkhacker
    Is it possible to copy/paste all .img files which are actually on fog local storage, on fog external storage and make em readable for fog webui?
    Is it a procedure to transfer an image?

    W 1 Reply Last reply May 17, 2016, 5:34 PM Reply Quote 0
    • J
      Junkhacker Developer
      last edited by May 17, 2016, 4:41 PM

      i don’t know if there is a procedure, per se, but you can move images to a new storage node. just copy the image (including the directory and all files in it) and update the image profile with the new location

      signature:
      Junkhacker
      We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

      1 Reply Last reply Reply Quote 0
      • W
        Wayne Workman @arnaudrigole
        last edited by Wayne Workman Jun 11, 2016, 12:27 PM May 17, 2016, 5:34 PM

        @arnaudrigole I have some methods documented.

        using lftp:
        lftp -c 'open x.x.x.x; user UserGoesHere PasswordHere; mirror -e /images/TheImagePath /images/TheImagePath; quit'

        using NFS:
        mount x.x.x.x:/<remote directory> <local directory>
        cp -R /mbimages/Optiplex9020UEFI /images/Optiplex9020UEFI
        umount <local directory>

        Using Samba:
        mkdir /tempMount
        mount -t cifs //x.x.x.x/ShareNameGoesHere /tempMount -o username=YourUsernameGoesHere -o password=YourPasswordGoesHere,noexec
        cp -r /tempMount/ImageNameHere /images/ImageNameHere
        umount /tempMount

        using SCP:
        scp -r /images/ImageNameHere root@x.x.x.x:/images/ImageNameHere

        using rsync:
        rsync -a /images/ImageNameHere root@x.x.x.x:/images/ImageNameHere

        wiki worthy

        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/

        A W 3 Replies Last reply May 17, 2016, 7:32 PM Reply Quote 1
        • A
          arnaudrigole @Wayne Workman
          last edited by May 17, 2016, 7:32 PM

          @Wayne-Workman @Junkhacker
          Thank you very much.

          I let you informed about my issue after upgrading to trunk.

          Have a good night 😉

          1 Reply Last reply Reply Quote 0
          • A
            arnaudrigole @Wayne Workman
            last edited by arnaudrigole May 19, 2016, 2:58 AM May 19, 2016, 8:53 AM

            @Wayne-Workman
            Hello Wayne,
            After i’ve transfered all img files on the new location (nfs server), how to index it on fog webgui? (make the image recognized by fog server)

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by May 19, 2016, 11:33 AM

              @arnaudrigole When you put the files in the correct directory FOG will see them. No need to index or anything!

              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

              A W 2 Replies Last reply May 19, 2016, 12:53 PM Reply Quote 0
              • A
                arnaudrigole @Sebastian Roth
                last edited by May 19, 2016, 12:53 PM

                @Sebastian-Roth
                Ok i’ll try :). Thank you.

                1 Reply Last reply Reply Quote 0
                • W
                  Wayne Workman @Sebastian Roth
                  last edited by Wayne Workman May 19, 2016, 8:24 AM May 19, 2016, 2:23 PM

                  @Sebastian-Roth I think he’s talking about the image definitions, in the web gui.

                  If the image definitions are not already there, and the old server was the same version as the new one, you can try to export the images and import them. Otherwise you must create the definitions manually.

                  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
                  • S
                    Sebastian Roth Moderator
                    last edited by May 19, 2016, 2:25 PM

                    Ohhhh, didn’t read properly. If this is a complete new server (and DB) then you need to create the image definition or import those from a DB dump… sorry for that!

                    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 1
                    • G
                      george1421 Moderator
                      last edited by george1421 May 19, 2016, 8:38 AM May 19, 2016, 2:37 PM

                      Or depending on the source FOG server version, export the Image definitions into a csv file and then import them into the new fog server. The image files are already on the target server, what is missing is the db definitions.

                      We have to do something similar in our multi-master/storage node setup (unique configuration for our application. But only when we add new images in our environment).

                      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!

                      A 1 Reply Last reply May 19, 2016, 3:17 PM Reply Quote 0
                      • A
                        arnaudrigole @george1421
                        last edited by May 19, 2016, 3:17 PM

                        @george1421 @Sebastian-Roth @Wayne-Workman

                        Thanks for your help. I haven’t new fog server, i just setup a new storage node on Windows Server 2008R2.

                        Currently, my images are stored on /images on the fog local server, i wanna know if it’s possible to move em on my windows nfs server, like Wayne described : copy all the .img files in fogserver:/images in a directory named exactly as the local fog server directory.

                        I’m currently copying an image (18gb) on nfs server, then i’ll create the correspondant entry on fog webui and will see if it see the image : )

                        W 1 Reply Last reply May 19, 2016, 3:32 PM Reply Quote 0
                        • W
                          Wayne Workman @arnaudrigole
                          last edited by May 19, 2016, 3:32 PM

                          @arnaudrigole Oh. I guess I missed the part about the windows storage node somewhere? Sorry.

                          Guess Sebastian was right to begin with (he doesn’t make mistakes too often).

                          So, if the windows server is configured as a storage node, you’re good to go. Don’t worry about the image definitions.

                          However - You’ll need more than NFS on the windows server, you’ll need FTP too. Windows Server comes with both of these things native, and I would recommend using the windows native tools to set it up.

                          @george1421 has a writeup explaining how to do it all via PowerShell - and I would recommend his instructions. In the past, I’ve tried setting it up via GUI in windows and things just weren’t working.

                          However… I do now have a windows server setup at home, it could be an opportune time to maybe document the process…

                          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/

                          A 1 Reply Last reply May 19, 2016, 3:39 PM Reply Quote 0
                          • A
                            arnaudrigole @Wayne Workman
                            last edited by May 19, 2016, 3:39 PM

                            @Wayne-Workman
                            I just transfered .img files in a directory named “P7510Win7prox64CAO” , exactly like defined in the “image path” on the image i created on fog webgui.

                            Created a storage group for my windows server, and setup this image on that storage group.

                            Fog don’t see the image size, i think it dont recognize it…

                            W G 3 Replies Last reply May 19, 2016, 3:44 PM Reply Quote 0
                            • W
                              Wayne Workman @arnaudrigole
                              last edited by Wayne Workman May 19, 2016, 9:45 AM May 19, 2016, 3:44 PM

                              @arnaudrigole You need to setup FTP on the windows node, create an FTP account called fog, and then give that account full access to the images directory.

                              Also: https://forums.fogproject.org/topic/6941/windows-server-as-fog-storage-node-reboot

                              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
                              • G
                                george1421 Moderator @arnaudrigole
                                last edited by george1421 May 19, 2016, 9:47 AM May 19, 2016, 3:45 PM

                                @arnaudrigole Sorry I’ve been involved with too many threads in the last few days.

                                For the image size bit, you need to have an ftp server setup on that windows storage node since if the storage node doesn’t respond to the http calls as with a normal linux storage node, Tom set it up to default back to the FTP query to get the image size.

                                [edit]
                                Well if Wayne can post a link, so can I: https://forums.fogproject.org/topic/6941/windows-server-as-fog-storage-node-reboot The first post there gives the powershell commands to use the windows built in ftp server for FOG.

                                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!

                                A 1 Reply Last reply May 19, 2016, 3:48 PM Reply Quote 0
                                • A
                                  arnaudrigole @george1421
                                  last edited by May 19, 2016, 3:48 PM

                                  @george1421 @Wayne-Workman
                                  Wayne, remember 🙂 , i’ve already set the complete environment NFS / FTP on my windows server using filezilla & windows nfs . Fog user is already created, with full rw rights on root E: E:/images E:/images/dev

                                  @george1421 I don’t understand what you say ? my ftp server is set up and work ?

                                  G 1 Reply Last reply May 19, 2016, 3:53 PM Reply Quote 0
                                  • G
                                    george1421 Moderator @arnaudrigole
                                    last edited by May 19, 2016, 3:53 PM

                                    @arnaudrigole The fog server talks to the storage nodes (windows or linux).

                                    IF the storage node is a linux server with the fog storage node install this communication is via http calls.

                                    If the storage node doesn’t respond with the proper response to the http calls it will revert back to the old way and use FTP to communicate with the storage node. You need to ensure the ftp user ID and password defined in the storage node configuration matches the ftp user account on the remote storage node. Getting the image size IS a function of the FTP communications. The home server for the FOG FTP account must be the images root on the remote storage node. If this is wrong then the FTP communications won’t work.

                                    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!

                                    A 1 Reply Last reply May 19, 2016, 3:57 PM Reply Quote 0
                                    • A
                                      arnaudrigole @george1421
                                      last edited by arnaudrigole May 19, 2016, 9:58 AM May 19, 2016, 3:57 PM

                                      @george1421
                                      Thanks for that precisions. The credentials used are both the same on webgui & filezilla.

                                      I don’t use built-in ftp server because the procedure described is for 2012, and i don’t master 2008 powershell anymore to find equivalent cmds 😕 … FileZilla looks more simply, and seems working because i can connect on it from any client, write any file or directory on it with no problem. But FOG can’t…

                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        george1421 Moderator
                                        last edited by May 19, 2016, 4:03 PM

                                        ok lets assume that all FTP is equal.

                                        Does filezilla have a log file so you can check to see if the FOG server is actually connecting to it? If there is a way to log what the FOG server is doing it would help us debug this.

                                        Understand this is outside of the standard setup so a lot of this is just guessing.

                                        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
                                        • W
                                          Wayne Workman @arnaudrigole
                                          last edited by Wayne Workman May 19, 2016, 10:05 AM May 19, 2016, 4:05 PM

                                          @arnaudrigole said in Image hosting on NFS server, process uncompleted?:

                                          I just transfered .img files in a directory named “P7510Win7prox64CAO” , exactly like defined in the “image path” on the image i created on fog webgui.

                                          You shouldn’t have had to do the transfer manually. FOG Replication will take care of this - if - FTP is setup correctly.

                                          As a test, from your FOG server, you can try to FTP into the windows storage node using commands found here:
                                          https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_FTP#Try_to_get_a_file_with_Linux:

                                          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/

                                          A 1 Reply Last reply May 20, 2016, 7:17 AM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 3 / 3
                                          3 / 3
                                          • First post
                                            32/45
                                            Last post

                                          174

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project