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

FOG restore only one partition

Scheduled Pinned Locked Moved Solved
FOG Problems
5
83
39.1k
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.
  • P
    plegrand @Tom Elliott
    last edited by Feb 25, 2016, 10:30 AM

    @Tom-Elliott Hello
    does that mean that with the latest version it will work ?
    Do you want i try ?
    Thanks for your help

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Feb 25, 2016, 12:16 PM

      @plegrand Yes, would be great if you can upgrade to the latest version and see if it’s fixed. Please report back!

      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

      P 1 Reply Last reply Feb 25, 2016, 12:38 PM Reply Quote 0
      • P
        plegrand @Sebastian Roth
        last edited by plegrand Feb 25, 2016, 6:50 AM Feb 25, 2016, 12:38 PM

        @Sebastian-Roth
        i have to capture again before deploy ?

        Just to be clearer, here is my configuration :

        On my own pxe server(dhcp and tftp) 192.168.151.247
        dhcp is configured like that :

         next-server 192.168.151.247;
         filename "pxelinux.0";
        

        then on my tftp server i’ve got pxelinux.0 into the tftp root directory
        and
        this configuration

        LABEL FOG_ETUDIANTS
        KERNEL fog/ipxe.krn dhcp && chain http://192.168.39.243/fog/service/ipxe/boot.php?mac=${net0/mac}
        
        

        192.168.39.243 is the fog ip address
        Do i have to put on my tftp server the new ipxe.krn file ?

        T 1 Reply Last reply Feb 25, 2016, 1:00 PM Reply Quote 0
        • T
          Tom Elliott @plegrand
          last edited by Feb 25, 2016, 1:00 PM

          @plegrand you should not have to re upload the 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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          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

          P 1 Reply Last reply Feb 26, 2016, 9:36 AM Reply Quote 0
          • P
            plegrand @Tom Elliott
            last edited by Feb 26, 2016, 9:36 AM

            @Tom-Elliott Hello
            Fog 6427 / 4874

            here is the tests i made

            • Restore the station with an old symantec ghost image
            • List partitions with diskpart
            DISKPART> list disk
             Disque ###  Statut      Taille     Libre     Dyn  Gpt
             --------  ---------  -----------  --------   ---  ---
             Disque 0    Connecté     149 GB      0 B
            
             DISKPART> select disk 0
             Le disque 0 est maintenant le disque sélectionné.
            
             DISKPART> list partition
             Partition ###  Type              Taille     Décalage
             -------------  ----------------  -------  -----------
             Partition 1    OEM                126 MB    20 KB
             Partition 2    Principale          49 GB   126 MB
             Partition 3    Principale         100 GB    49 GB
            
            
            • Defragmentation of all the partition
            • On fog create a image :
            	default: Windows 2000/XP
            	Single Disk - Resizable
            	Everything
            
            • Assign the new image to the host
            • On fog create a new capture task for the station as a debug task
            • Launch the task
            • Capture works fine
              On the server fog :
            	d1.fixed_size_partitions
            	d1.minimum.partitions
            	d1.original.fstypes
            	d1.original.swapuuids
            	d1p1.img
            	d1p2.img
            	d1p3.img
            	d1.partitions
            
            	cat d1.fixed_size_partitions 
            	1:
            
            	cat d1.minimum.partitions 
            	label: dos
            	label-id: 0x2bd2c32a
            	device: /dev/sda
            	unit: sectors
            
            	/dev/sda1 : start=          40, size=      257480, type=de
            	/dev/sda2 : start=      257520, size=    31386360, type=7, bootable
            	/dev/sda3 : start=   102657680, size=      779520, type=7
            
            	cat d1.original.fstypes 
            	/dev/sda2 ntfs
            	/dev/sda3 ntfs
            
            
            	cat d1.partitions 
            	label: dos
            	label-id: 0x2bd2c32a
            	device: /dev/sda
            	unit: sectors
            
            	/dev/sda1 : start=          40, size=      257480, type=de
            	/dev/sda2 : start=      257520, size=   102400160, type=7, bootable
            	/dev/sda3 : start=   102657680, size=   209839360, type=7
            

            At reboot, the station stay displaying “Booting…”

            Then i try to deploy the image

            • Create a new deploy task for the host

            During the restauration of /dev/sda1, i’ve got the following error message from partclone

            Target partition size (132MB) is smaller than source 132 MB. 
            Use option -C to disable size checking (Dangerous)
            
            

            And just after

            Image failed to restore and exited with exit code 0 (writeImage)
            Args passed /images/test/d1p1 img* /dev/sda1
            
            

            Then the only solution is to redeploy the old ghost image 😉

            T 1 Reply Last reply Feb 26, 2016, 12:29 PM Reply Quote 0
            • T
              Tom Elliott @plegrand
              last edited by Feb 26, 2016, 12:29 PM

              @plegrand have you tried after updating to the latest.

              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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              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

              P 2 Replies Last reply Feb 26, 2016, 1:02 PM Reply Quote 0
              • P
                plegrand @Tom Elliott
                last edited by Feb 26, 2016, 1:02 PM

                @Tom-Elliott
                no
                do i have to capture again or just deploy ?

                1 Reply Last reply Reply Quote 0
                • P
                  plegrand @Tom Elliott
                  last edited by plegrand Feb 29, 2016, 3:16 AM Feb 26, 2016, 1:45 PM

                  @Tom-Elliott hello
                  i just made the following test with latest version : 6476 / 4895
                  just create deploy task
                  same problem

                  After upgrade, Do i have to put on my own tftp server the new ipxe.krn file ?

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Mar 1, 2016, 2:23 PM

                    @plegrand As Tom said, could you please upgrade to the latest version. He is saying that you don’t need to re-upload. But I’d say it wouldn’t hurt anyway.

                    You don’t need to update ipxe.krn on your TFTP server if booting the client works fine. The iPXE binary is not related to the error you see AFAIK!

                    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

                    P 1 Reply Last reply Mar 1, 2016, 3:26 PM Reply Quote 1
                    • P
                      plegrand @Sebastian Roth
                      last edited by Mar 1, 2016, 3:26 PM

                      @Sebastian-Roth Same problem

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Mar 1, 2016, 3:37 PM

                        @plegrand Please boot that client you tried to write the image to in debug deploy again (schedule a normal deploy task but tick “Schedule task as a debug task” in the advanced settings box just before you hit the button “CREATE DEPLOY TASK FOR …”).

                        When you get to the shell please run sfdisk -d /dev/sda and post a picture of the output here (we need the exact numbers!!).

                        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

                        P 1 Reply Last reply Mar 1, 2016, 3:56 PM Reply Quote 0
                        • P
                          plegrand @Sebastian Roth
                          last edited by Mar 1, 2016, 3:56 PM

                          @Sebastian-Roth

                          label: dos
                          label-id: 0x2bd2c32a
                          device: /dev/sda
                          unit: sectors
                          
                          /dev/sda1 : start = 63,         size = 257024,    type = de
                          /dev/sda2 : start = 257087,     size = 102401024, type = 7, Bootable
                          /dev/sda3 : start = 102658111,  size = 209841152, type = 7
                          
                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by Mar 1, 2016, 5:22 PM

                            @plegrand Did you copy&paste the numbers or typed them from the screen? I hope there is no typo in them! 😉

                            If the figures are correct this is simple maths. The original first partition (as seen further down) starts at sector 40 and ends at 257480. Makes 257440 in total. After writing to the new disk the first partition starts at 63 (which should not be an issue) but ends at 257024. Makes a total of 256961 sectors for the first partition. Slightly smaller than the original one.

                            I guess our re-sizing logic is still hating those recovery partitions (type=de)!

                            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

                            P 1 Reply Last reply Mar 2, 2016, 7:10 AM Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Mar 1, 2016, 5:23 PM

                              I think I found where the issue is. Please give me some more time to see why things go wrong…

                              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
                              • S
                                Sebastian Roth Moderator
                                last edited by Sebastian Roth Mar 1, 2016, 4:54 PM Mar 1, 2016, 10:53 PM

                                @plegrand Can you please do a debug UPLOAD task on the original client you pull the image from. You don’t need to do the full upload. I just need to get some information. Run the following command when you get to the shell and post the full output here: blkid -po udev /dev/sda1

                                You can simply delete the task in the web interface and shutdown that client after you got the information.

                                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

                                P 1 Reply Last reply Mar 2, 2016, 7:10 AM Reply Quote 0
                                • P
                                  plegrand @Sebastian Roth
                                  last edited by Mar 2, 2016, 7:10 AM

                                  @Sebastian-Roth

                                  ID_PART_ENTRY_SCHEME=dos
                                  ID_PART_ENTRY_UUID=2bd2c32a-01
                                  ID_PART_ENTRY_TYPE=0xde
                                  ID_PART_ENTRY_NUMBER=1
                                  ID_PART_ENTRY_OFFSET=63
                                  ID_PART_ENTRY_SIZE=257024
                                  ID_PART_ENTRY_DISK=8:0
                                  
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    plegrand @Sebastian Roth
                                    last edited by Mar 2, 2016, 7:10 AM

                                    @Sebastian-Roth said:

                                    @plegrand Did you copy&paste the numbers or typed them from the screen? I hope there is no typo in them! 😉

                                    no typo !!

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by Sebastian Roth Mar 2, 2016, 6:45 AM Mar 2, 2016, 12:44 PM

                                      @plegrand Thanks for posting all the details. They were really helpful in finding the issue and being able to replicate this on my test system. Tom and I have been working on a fix and it is up now. Please upgrade to the latest version and re-run the installer! No need to re-upload. Just try deploying to your machine and let us know if things are 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

                                      P 1 Reply Last reply Mar 3, 2016, 7:16 AM Reply Quote 0
                                      • P
                                        plegrand @Sebastian Roth
                                        last edited by Mar 3, 2016, 7:16 AM

                                        @Sebastian-Roth Hello
                                        I updated fog to the version 4919 / 6527 and i cant deploy image :

                                        Failed to create deployment tasking for the following hosts
                                        You must first upload an image to create a download task
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by Mar 3, 2016, 7:20 AM

                                          @plegrand That’s a different issue… We’ve seen this reported by another user yesterday. I think @Tom-Elliott is onto it already. Stay tuned.

                                          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

                                          P 1 Reply Last reply Mar 3, 2016, 8:43 AM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 2 / 5
                                          2 / 5
                                          • First post
                                            38/83
                                            Last post

                                          154

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project