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

    Manually copy image between FOG hosts

    Scheduled Pinned Locked Moved Solved
    General
    3
    24
    6.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.
    • Chris ShipleyC
      Chris Shipley @Wayne Workman
      last edited by

      @Wayne-Workman I’ve adjusted the /opt/fog/.fogsettings file to point to /home and removed my fstab entry so I don’t screw up Linux /images any more than I already have 🙂

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @Chris-Shipley said:

        [root@localhost Win7Image]# ls -lahRt /images/Win7Image
        /images/Win7Image:
        total 13G
        -rwxrwxrwx.  1 root   root  13G Aug 26 20:58 *
        drwxrwxrwx. 13 nobody root 4.0K Aug 26 17:34 ..
        drwxrwxrwx.  2 root   root   14 Aug 26 17:31 .
        

        Well that definitely does not seem to be correct! Did you copy/merge all your files together into one? I’ve tried a couple of different ways to end up with the files being copied to a file named * but I couldn’t figure out how you were able to. Please get your partitions right as Wayne suggested and then copy over the files again.

        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

        Chris ShipleyC 1 Reply Last reply Reply Quote 1
        • Chris ShipleyC
          Chris Shipley @Sebastian Roth
          last edited by

          @Sebastian-Roth yeah, SCP syntax for the lose - i’m re copying

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @Chris-Shipley said:

            yeah, SCP syntax for the lose - i’m re copying

            I’d be really interested to see the command you used to copy last time - ending up with just a single file named *. This is very advanced bash foo magic I reckon. I wasn’t able to do this even trying hard.

            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
            • Chris ShipleyC
              Chris Shipley @Wayne Workman
              last edited by

              @Wayne-Workman So, now that I’ve changed the /opt/fog/.fogsettings file, I have this problem in my storage:
              0_1472588151215_upload-0f863287-6fc6-4919-aa43-79415fd5fb1e Where do I these Image Path and FTP Paths? Or should I have kept my /etc/fstab file entry?

              Also, what code do I use to get this red stuff: 0_1472588300846_upload-ce9ddc6c-1936-4d61-87cb-7afebf53bd3a Is there a quick reference for forum codes?

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

                @Chris-Shipley said in Manually copy image between FOG hosts:

                Also, what code do I use to get this red stuff: Is there a quick reference for forum codes?

                The slanted apostrophe looking thing to the left of the 1 key on a U.S. keyboard. Put text in a pair of those and you get red text.

                /etc/exports should have two entries, for the images directory and the dev directory, wherever those are. If you correct storageLocation= inside of /opt/fog/.fogsettings and re-run the installer, it’ll write the exports file correctly. The FTP path and Images path in the web interface should simply be the true path of where the images are.

                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/

                Chris ShipleyC 1 Reply Last reply Reply Quote 0
                • Chris ShipleyC
                  Chris Shipley @Wayne Workman
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • Chris ShipleyC
                    Chris Shipley
                    last edited by Chris Shipley

                    I re-ran the installation after setting the proper path in /opt/fog/.fogsettings but the graphic still shows /images as the Image Path and FTP Path. I look in /etc/exports and see:

                    /home *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
                    /home/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
                    

                    Here is my /opt/fog/.fogsettings:

                    ## Start of FOG Settings
                    ## Created by the FOG Installer
                    ## Version: 1.3.0-RC-8
                    ## Install time: Tue 21 Jun 2016 02:14:52 PM EDT
                    ipaddress='10.10.2.18'
                    interface='enp2s0'
                    submask='255.255.254.0'
                    routeraddress='10.10.2.1'
                    plainrouter='10.10.2.1'
                    dnsaddress='# No dns added'
                    username='fog'
                    password="rFwfWrtWZmX/2nxUy3mvV1R99pOr2iiKvSBErGFXBCA="
                    osid='1'
                    osname='Redhat'
                    dodhcp='N'
                    bldhcp='0'
                    dhcpd='dhcpd'
                    blexports='1'
                    installtype='N'
                    snmysqluser='root'
                    snmysqlpass="somepass"
                    snmysqlhost='127.0.0.1'
                    installlang=''
                    donate='0'
                    storageLocation='/home'
                    fogupdateloaded=
                    docroot='/var/www/html/'
                    webroot='/fog/'
                    caCreated='yes'
                    startrange=''
                    endrange=''
                    bootfilename='undionly.kpxe'
                    packages='curl gcc gcc-c++ gzip httpd lftp m4 make mariadb mariadb-server mod_ssl net-tools nfs-utils php php-bcmath php-cli php-common php-fpm php-gd php-mbstring php-mcrypt php-mysqlnd php-process tar tftp-server vsftpd wget xinetd '
                    noTftpBuild=''
                    notpxedefaultfile=''
                    sslpath='/opt/fog/snapins/ssl/'
                    backupPath=''
                    php_ver=''
                    php_verAdds=''
                    fogguiuser='fog'
                    fogguipass='password'
                    ## End of FOG Settings
                    
                    Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                    • Wayne WorkmanW
                      Wayne Workman @Chris Shipley
                      last edited by Wayne Workman

                      @Chris-Shipley said in Manually copy image between FOG hosts:

                      but the graphic still shows /images as the Image Path and FTP Path.

                      You would just update those via the web interface. The installer doesn’t touch much of anything in the DB, it’ll add a new node for you, and make sure you’re node’s FTP credentials are correct, that’s all it does to the DB for an existing setup - and of course it updates the db schema if necessary. It doesn’t do anything beyond this because there’s no way to know what the admin’s intentions are, or what unique setup there may be. For instance, you might have 3 or even 12 nodes defined all on one server, all with a different path. Imagine the disaster if the installer was programmed to just ‘correct’ all of those for you…

                      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/

                      Chris ShipleyC 1 Reply Last reply Reply Quote 1
                      • Chris ShipleyC
                        Chris Shipley @Wayne Workman
                        last edited by Chris Shipley

                        All set - it was the files being sent to a single filename * - that was just a syntax error on my part for using the Windows cli too often.

                        @Wayne-Workman - i had to change my /opt/fog/.fogsettings file back to pointing the storage at ‘/images’ because the entire imaging process breaks. Also re-added my /etc/fstab line to point /images to the home directory where the 177G volume is. I understand you think my system will fail if I fill up more than the 50G available on the root drive, I’m confident it won’t. Thank you greatly for your assistance, it was the file copy problem.

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

                        219

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project