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

Problem of deployment of an old image

Scheduled Pinned Locked Moved
FOG Problems
3
13
3.4k
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.
  • N
    nicolas.illi
    last edited by Oct 26, 2017, 8:43 AM

    @Wayne-Workman Thank you for your reactivity and your answer.
    I had thought of doing that, but I wanted to know if there were not other solutions or if it were necessary to configure various parameters for the old images.

    1 Reply Last reply Reply Quote 0
    • N
      nicolas.illi
      last edited by Oct 26, 2017, 8:55 AM

      @Sebastian-Roth Thank you you for your help !

      Here the result of the order gdisk -l :

      [root@srv-fog2 Lenovo_T450s_W81]# gdisk -l d1.mbr
      GPT fdisk (gdisk) version 0.8.6
      
      Warning! Disk size is smaller than the main header indicates! Loading
      secondary header from the last sector of the disk! You should use 'v' to
      verify disk integrity, and perhaps options on the experts' menu to repair
      the disk.
      Caution: invalid backup GPT header, but valid main header; regenerating
      backup header from main header.
      
      Caution! After loading partitions, the CRC doesn't check out!
      Warning! Error 25 reading partition table for CRC check!
      Warning! One or more CRCs don't match. You should repair the disk!
      
      Partition table scan:
        MBR: not present
        BSD: not present
        APM: not present
        GPT: damaged
      
      Found invalid MBR and corrupt GPT. What do you want to do? (Using the
      GPT MAY permit recovery of GPT data.)
       1 - Use current GPT
       2 - Create blank GPT
      
      Your answer:
      

      Can you tell me how to set up the parameters of the kernel for this host ?

      Thanks a lot

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Oct 26, 2017, 10:21 AM

        @nicolas-illi Just edit the host’s settings in the web UI and simply add to the field kernel parameters what I posted last.

        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 0
        • N
          nicolas.illi
          last edited by Oct 26, 2017, 1:27 PM

          @Sebastian-Roth You will find below the screenshot of the deployment with the Kernel parameters " isdebug=yes ismajordebug=1"

          0_1509024277250_IMG_20171026_150848835.jpg

          0_1509024344752_IMG_20171026_150957785.jpg

          0_1509024360186_IMG_20171026_151054236.jpg

          0_1509024370973_IMG_20171026_151104632.jpg

          Thanks for your help !

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Sebastian Roth Oct 26, 2017, 9:39 PM Oct 27, 2017, 2:53 AM

            @nicolas-illi Ok, I need to have a look at the d1.mbr myself. Please upload that small file to dropbox or google drive and post a link here.

            Comparing the “save/restore MBR/partition layout” code in 1.2.0 and 1.4.4 I can’t actually see why there should be a problem (reference for myself: (1.2.0 up/sgdisk -b, 1.2.0 down/sgdisk -gel - 1.4.4 up, 1.4.4 down) . So I need to check the d1.mbr to get an idea.

            As well I need disk information of both machines, the master machine you uploaded this image from and the destination host you are trying to deploy this to. For both schedule a debug upload/download (either will do) task and when you get to the shell run fdisk -l /dev/sda and gdisk -l /dev/sda and post pictures of it all.

            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

            N 1 Reply Last reply Oct 30, 2017, 11:11 AM Reply Quote 0
            • N
              nicolas.illi @Sebastian Roth
              last edited by Oct 30, 2017, 11:11 AM

              @sebastian-roth Hello, here the link for the download of the file d1.mbr : link there

              For the screenshot of the computers, I cannot provide you only the pictures of the destination host. I do not have any more the master machine degree.

              There, the pictures of the destination host :

              fdisk -l :

              0_1509361777882_IMG_20171030_115457425.jpg

              gdisk -l :

              0_1509361797063_IMG_20171030_115529948.jpg

              Many thanks,

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Sebastian Roth Oct 30, 2017, 4:53 PM Oct 30, 2017, 10:52 PM

                @nicolas-illi Alright. In your case the so called “protective MBR” was missing in the d1.mbr file. I am not exactly sure but I think this came from FOG 1.2.0 having an older version of the gdisk/sgdisk tools which behaved differently.

                Anyhow, here is a patched version of your d1.mbr file. Make a backup copy of the original file, download the new one and put into your image directory on the FOG server. Then schedule another deploy task, boot up that client and watch it do its job. Should be all working.

                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

                N 1 Reply Last reply Oct 31, 2017, 8:45 AM Reply Quote 0
                • N
                  nicolas.illi @Sebastian Roth
                  last edited by Oct 31, 2017, 8:45 AM

                  @sebastian-roth Hello, thank you very much, the deployment it passed well!

                  Can you give me the procedure allowing of patcher the other old file d1.mdr?

                  I have 11 more images which I had created with FOG 1.2.0.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Sebastian Roth Oct 31, 2017, 3:13 AM Oct 31, 2017, 9:09 AM

                    @nicolas-illi said in Problem of deployment of an old image:

                    I have 11 more images which I had created with FOG 1.2.0.

                    Ahh, I kind of figured that would be the case. But before we get to that let me say that I insist on you taking fresh images after having fixed and deployed those to your machines. Keep a backup copy of the old image files just in case (somewhere on a backup disk) and upload/capture fresh new images using the new FOG server!

                    Ok, so what do you need to do to fix those MBR files. Schedule a debug deploy task, boot up the client and start the process running the fog command when you get to the shell. It will fail and drop you back to the shell. But it also deployed the MBR/partition layout half way. Back to the shell run gdisk /dev/sda and it will tell you about a corrupt GPT and so on but it should also have the correct partition layout and all that. Simply type w and hit ENTER, then y and ENTER again to write changes and correct the whole layout. Now you have a proper MBR/partition layout on that client’s disk which you can check and then get a dump like that:

                    gdisk -l /dev/sda
                    ...
                    ...
                    sgdisk -b /root/d1.mbr /dev/sda
                    

                    Now you only need to get that back to your server’s image directory. The easy way is to plug in a FAT32 formated USB key to your client and run:

                    mkdir -p /media/usb
                    mount /dev/sdb1 /media/usb
                    mv /root/d1.mbr /media/usb
                    umount /media/usb
                    

                    Unplug the USB key, go to your FOG server and save that d1.mbr file into the /images/... directory of that image you just used on that client.

                    Now back to that client - no need to reboot or anything - just run fog again and it should deploy without an issue.

                    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

                    N 1 Reply Last reply Oct 31, 2017, 11:04 AM Reply Quote 1
                    • N
                      nicolas.illi @Sebastian Roth
                      last edited by Oct 31, 2017, 11:04 AM

                      @sebastian-roth Thank you very much! You are brilliant!

                      You saved to me an invaluable time!

                      I carried out the test of your procedure and all functions perfectly.

                      Thank you still for your assistance, and thank you for this software!

                      I love FOG ! It is the best !!

                      1 Reply Last reply Reply Quote 1
                      • 1 / 1
                      1 / 1
                      • First post
                        13/13
                        Last post

                      170

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project