• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.
  • C
    Chris Shipley
    last edited by Aug 30, 2016, 5:02 PM

    I have two FOG hosts at the latest GIT pull. I’m trying to move a single image from server 1 over to server 2. I am able to copy the files fine and I took the steps Tom suggested (in another post to😞

    touch /images/{.mntcheck,dev/.mntcheck}
    chmod 777 -R /images
    

    I then went into the FOG Images area and created a new image, pointing it to the new location in /images/Win7Image (this is not the name of the folder from the original FOG 1 server, I’ve renamed this on FOG 2).

    This is not an operational image. We get an NTFS resize error when trying to deploy it and it gives no bump to the storage chart on the dashboard (still remains the size before copying) and is missing the data for size on Client.

    Any advice on how to troubleshoot this, or properly move files between FOG servers? I’m not looking to replicate all of my images, that’s inappropriate. I just need this one.

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Aug 30, 2016, 5:12 PM

      Perhaps it’s not a resizable image?

      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
      • C
        Chris Shipley
        last edited by Aug 30, 2016, 5:50 PM

        It is, and works fine from FOG 1. Here is a link to the screens that show up to give an error when trying to deploy it:

        0_1472579405224_upload-d01c65df-11b8-482a-b24d-2b3e32f71c4e (this static image also viewable as video here)

        W 1 Reply Last reply Aug 30, 2016, 5:53 PM Reply Quote 0
        • W
          Wayne Workman @Chris Shipley
          last edited by Wayne Workman Aug 30, 2016, 11:54 AM Aug 30, 2016, 5:53 PM

          @Chris-Shipley Then perhaps you didn’t copy over all of the image files? Please give us the output of ls -lahRt /images/Win7Image on the new fog server.

          Also, it’s possible you ran out of space while copying the images over. What is the output of df -h ?

          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 1
          • C
            Chris Shipley
            last edited by Aug 30, 2016, 5:57 PM

            OK wow, it looks like the results of the ls show why, my code for copying was wrong, it put all files into a filename called *. Any way to separate those or do I have to wait for the download to occur again? I was using SCP

            [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 .
            

            and the other command

            [root@localhost Win7Image]# df -h
            Filesystem               Size  Used Avail Use% Mounted on
            /dev/mapper/centos-root   50G  2.5G   48G   5% /
            devtmpfs                 1.4G     0  1.4G   0% /dev
            tmpfs                    1.4G     0  1.4G   0% /dev/shm
            tmpfs                    1.4G   17M  1.4G   2% /run
            tmpfs                    1.4G     0  1.4G   0% /sys/fs/cgroup
            /dev/mapper/centos-home  177G   19G  158G  11% /home
            /dev/sda1                497M  170M  328M  35% /boot
            tmpfs                    282M     0  282M   0% /run/user/0
            
            W 1 Reply Last reply Aug 30, 2016, 5:58 PM Reply Quote 0
            • W
              Wayne Workman @Chris Shipley
              last edited by Wayne Workman Aug 30, 2016, 11:59 AM Aug 30, 2016, 5:58 PM

              @Chris-Shipley Also, your partitions are setup wrong. I’m guessing you used Fedora or CentOS, and did not follow one of our tutorials. At present, this server is limited to 50GB worth of images, and when that fills, the server will crash.

              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
              • C
                Chris Shipley
                last edited by Aug 30, 2016, 6:01 PM

                Nah, /images actually points to the 177 GB volume

                W 1 Reply Last reply Aug 30, 2016, 6:05 PM Reply Quote 0
                • W
                  Wayne Workman @Chris Shipley
                  last edited by Wayne Workman Aug 30, 2016, 12:07 PM Aug 30, 2016, 6:05 PM

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

                  Nah, /images actually points to the 177 GB volume

                  /images means /images, which is limited to 50GB on this new server. Your /etc/exports file indicates this is the location in your first post.

                  The 177GB partition is mounted to /home.

                  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
                  • C
                    Chris Shipley
                    last edited by Aug 30, 2016, 6:07 PM

                    Thanks for the warning, but that’s not the case. /images does indeed point to the 177G volume here in this implementation. There are about 20GB of data in there, and if you were correct I’d have 30G free on the volume you’re concerned about. We’re good in this sense. I just didn’t check my syntax on the SCP command, which admittedly I rarely use, and pushed all the files into a single filename * when I made the copy command. I’ll update after I get the files in and see if I can get it to work.

                    C W 2 Replies Last reply Aug 30, 2016, 6:12 PM Reply Quote 0
                    • C
                      Chris Shipley @Chris Shipley
                      last edited by Aug 30, 2016, 6:12 PM

                      I’ve got this line in my fstab

                      /dev/mapper/centos-home /images                 xfs     defaults        0 0
                      
                      1 Reply Last reply Reply Quote 0
                      • W
                        Wayne Workman @Chris Shipley
                        last edited by Wayne Workman Aug 30, 2016, 12:22 PM Aug 30, 2016, 6:17 PM

                        @Chris-Shipley I don’t think you follow, I’ll explain. /images IS a path, and an absolute path too in Linux terms. When you say “/images points to…” well that statement already says where it is. it means /images, which resides on /, which in your case is limited to 50GB. It’s like me saying my car which is currently in the front yard is in the backyard, or my keyboard which is currently on my desk is not on my desk. My /images are not located at /images makes no sense. Just say images, not /images. because /images is a literal path that literally means /images. /images indeed means /images. What actually is setup might be something else, and might not be /images. And if it is something else, your /etc/exports file needs updated to reflect the true path, your Storage Node’s images path and FTP path needs updated to the true path, and the .mntcheck files and dev folder need made in the true path. And your /opt/fog/.fogsettings file needs updated to reflect the true 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
                        • C
                          Chris Shipley
                          last edited by Aug 30, 2016, 7:06 PM

                          OK, I wasn’t picking up what you’re putting down regarding specifically Linux. The FOG server’s storage is on the 177G volume, let’s leave it at that. It does work, it has images I’ve already captured on it and if it weren’t on that volume, there’d be a lot less free space on the 50G volume now. We’re good, though.

                          W 1 Reply Last reply Aug 30, 2016, 7:09 PM Reply Quote 0
                          • W
                            Wayne Workman @Chris Shipley
                            last edited by Aug 30, 2016, 7:09 PM

                            @Chris-Shipley Ok then. So, I guess it was just a copying issue? I’m not trying to be difficult. Please ask more questions if you need, we’re here to help.

                            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/

                            C 2 Replies Last reply Aug 30, 2016, 7:59 PM Reply Quote 0
                            • C
                              Chris Shipley
                              last edited by Aug 30, 2016, 7:11 PM

                              I’m checking the files you told me to check to make sure the correct path is in them now, though.

                              1 Reply Last reply Reply Quote 0
                              • C
                                Chris Shipley @Wayne Workman
                                last edited by Aug 30, 2016, 7:59 PM

                                @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 Aug 30, 2016, 8:09 PM

                                  @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

                                  C 1 Reply Last reply Aug 30, 2016, 8:15 PM Reply Quote 1
                                  • C
                                    Chris Shipley @Sebastian Roth
                                    last edited by Aug 30, 2016, 8:15 PM

                                    @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 Aug 30, 2016, 8:20 PM

                                      @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
                                      • C
                                        Chris Shipley @Wayne Workman
                                        last edited by Aug 30, 2016, 8:21 PM

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

                                        W 1 Reply Last reply Aug 30, 2016, 8:23 PM Reply Quote 0
                                        • W
                                          Wayne Workman @Chris Shipley
                                          last edited by Wayne Workman Aug 30, 2016, 3:07 PM Aug 30, 2016, 8:23 PM

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

                                          C 1 Reply Last reply Aug 30, 2016, 8:39 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            5/24
                                            Last post

                                          208

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project