• 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.0k
    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.
    • Wayne WorkmanW
      Wayne Workman @arnaudrigole
      last edited by Wayne Workman

      @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
      • george1421G
        george1421 Moderator @arnaudrigole
        last edited by george1421

        @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!

        arnaudrigoleA 1 Reply Last reply Reply Quote 0
        • arnaudrigoleA
          arnaudrigole @george1421
          last edited by

          @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 ?

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

            @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!

            arnaudrigoleA 1 Reply Last reply Reply Quote 0
            • arnaudrigoleA
              arnaudrigole @george1421
              last edited by arnaudrigole

              @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
              • george1421G
                george1421 Moderator
                last edited by

                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
                • Wayne WorkmanW
                  Wayne Workman @arnaudrigole
                  last edited by Wayne Workman

                  @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/

                  arnaudrigoleA 1 Reply Last reply Reply Quote 0
                  • arnaudrigoleA
                    arnaudrigole @Wayne Workman
                    last edited by arnaudrigole

                    @Wayne-Workman
                    Hi Wayne,
                    What is FOG Replication?

                    I followed the procedure to test FTP, it was a success. I could connect with fog credentials, create and transfer the test.txt file on external /images directory, and download then delete it…

                    @george1421
                    Filezilla displays the logons and actions directly in its console, the “logs” are on page 2, “directory not found” is displayed, because the correspondant directory is not created by fog…

                    What is the part of fog upload script which create that directories in /images ? i’m almost certain thats component is not working, maybe it has no rw rights on /images , but i don’t know which user / process / protocol is used to create it (FTP too ?)

                    Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                    • Wayne WorkmanW
                      Wayne Workman @arnaudrigole
                      last edited by

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

                      What is FOG Replication?

                      The below article is about the location plugin, but contains information about replication.
                      https://wiki.fogproject.org/wiki/index.php?title=Location_Plugin

                      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
                      • Wayne WorkmanW
                        Wayne Workman @Wayne Workman
                        last edited by

                        @Wayne-Workman said in Image hosting on NFS server, process uncompleted?:

                        @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

                        Added to the wiki here:
                        https://wiki.fogproject.org/wiki/index.php?title=Migrate_images_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
                        • 1
                        • 2
                        • 3
                        • 3 / 3
                        • First post
                          Last post

                        219

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project