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

The future of partclone and therefore FOG as it is

Scheduled Pinned Locked Moved
General
6
122
51.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.
  • Q
    Quazz Moderator
    last edited by Aug 2, 2019, 3:05 PM

    I’m preparing a build with Buildroot version 2019.02.4 and one with that Buildroot version + partclone 3.12, will test and post them on Monday probably.

    G 1 Reply Last reply Aug 2, 2019, 3:17 PM Reply Quote 2
    • G
      george1421 Moderator @Quazz
      last edited by Aug 2, 2019, 3:17 PM

      @Quazz Here are the edits (not in diff format but george shorthand) that junkhacker recommended to take advantage of new features in pigz and zstd for data dedup systems

      vi fog.upload
      partclone.imager -aX0 -c -s "$hd" -O /tmp/pigz1 -N -f 1
      
      vi funcs.sh
      pigz --rsyncable $PIGZ_COMP < $fifo | split -a 3 -d -b 200m - ${file}. &
      pigz --rsyncable $PIGZ_COMP < $fifo > ${file}.000 &
      
      zstdmt --rsyncable -B128 --ultra $PIGZ_COMP < $fifo | split -a 3 -d -b 200m - ${file}. &
      zstdmt --rsyncable -B128 --ultra $PIGZ_COMP < $fifo > ${file}.000 &
      
      partclone.$fstype -aX0 -n "Storage Location $storage        , Image name $img" -cs $part -O $fifoname -Nf 1
      
      remove --ignore_crc
      
      

      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!

      Q 1 Reply Last reply Aug 2, 2019, 3:27 PM Reply Quote 2
      • Q
        Quazz Moderator @george1421
        last edited by Aug 2, 2019, 3:27 PM

        @george1421 Thanks, I had already done some of that, got all of it in there now.

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Aug 3, 2019, 6:42 AM

          @george1421 said in The future of partclone and therefore FOG as it is:

          OK I’ll hold off until I get the green light from you.

          Totally forgot to let you know that it’s been done - weeks ago already (ref).

          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
          • Q
            Quazz Moderator
            last edited by Quazz Aug 5, 2019, 3:10 AM Aug 5, 2019, 9:05 AM

            Okay, so I can’t believe I never noticed this, but -aX0 is an invalid parameter, it should be -a0

            Source: https://github.com/Thomas-Tsai/partclone/blob/master/src/partclone.c

            		"    -aX  --checksum-mode=X  Checksum formula to use to add error detection\n"
            		"                            where X:\n"
            		"                            0: No checksum (no slowdown, smallest image)\n"
            		"                            1: CRC32 (Fast to compute, basic detection)\n"
            

            Hopefully the source of the funky problem I was having, rebuilding now.

            1 Reply Last reply Reply Quote 2
            • Q
              Quazz Moderator
              last edited by Quazz Aug 5, 2019, 7:40 AM Aug 5, 2019, 1:39 PM

              The error I was getting seems to be originating from zstdmt, it doesn’t have an rsyncable option in the included version. Would have thought that would be bundled by now, grrr.

              G 1 Reply Last reply Aug 5, 2019, 1:51 PM Reply Quote 0
              • G
                george1421 Moderator @Quazz
                last edited by george1421 Aug 5, 2019, 12:24 PM Aug 5, 2019, 1:51 PM

                @Quazz I think in my dev environment I change the BR package to download zstd 1.4.0. My build environment server had bad ssd, so I’m going to rebuild it. I can’t get to the files at the moment to confirm through.

                edit: Yes zstd 1.4.0
                zstd.mk: ZSTD_VERSION = v1.4.0

                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!

                Q 1 Reply Last reply Aug 6, 2019, 12:56 PM Reply Quote 0
                • Q
                  Quazz Moderator @george1421
                  last edited by Aug 6, 2019, 12:56 PM

                  @george1421 I decided to go for 1.4.2 since it includes a couple of performance improvements and bug fixes.

                  Took a while longer because I forgot to include the hash file.

                  It’s finally compiling successfully, time for some more tests.

                  1 Reply Last reply Reply Quote 2
                  • Q
                    Quazz Moderator
                    last edited by Quazz Aug 6, 2019, 9:55 AM Aug 6, 2019, 2:39 PM

                    Currently it fails to capture msftres partitions, throwing exit code 139 (presumably zstd’s error code). msftres is captured with partclone.imager

                    It’s difficult to see what’s going on because the screen breaks up, but it seems to not recognize any size on this type of partition on partclone 3.12 which is a regression compared to 2.89

                    edit: Adding a strategic debugPause tells me there is a segmentation fault on line 2041 in funcs.sh

                    Even stranger is that it is talking about line 2053, yet for some reason mentions line 2041???

                    Though not sure why this occurs…

                    edit2: Seems to be down to the fact that it writes to /tmp/pigz1

                    Direct writing to /images works fine

                    edit3: Welp, it seems to come and go as it pleases, not sure what the actual cause is!

                    edit4: My suspicion lies on B128 option being the culprit (initial test is promising), recompiling, will test tomorrow.

                    1 Reply Last reply Reply Quote 1
                    • Q
                      Quazz Moderator
                      last edited by Quazz Aug 7, 2019, 4:40 AM Aug 7, 2019, 8:50 AM

                      Removing the -B128 option seems to allow it to capture, finally!

                      64 bit init.xz Buildroot 2019.02.4 + ZSTD 1.4.2 + Partclone 0.3.12 (with APFS support)

                      32 bit init.xz Buildroot 2019.02.4 + ZSTD 1.4.2 + Partclone 0.3.12 (with APFS support)

                      Give it a whirl if you’re interested.

                      Current status:

                      • Specifying the -B128 option gives issues in certain scenarios (special partitions/raw/very small ones???), so we can’t reliably use that.

                      • In order to use --rsyncable, zstd had to be updated to a minimum of 1.3.8 (chosen the latest version of 1.4.2 to include performance improvements and bug fixes)

                      • Minor Buildroot update means config doesn’t have to be updated, it’s just bugfixes

                      • Added APFS support so that we can offer some better support for newer Macs (if they decide to PXE boot that is) (potentially gptfdisk package should be updated to 1.0.4 (adds typecodes for APFS and others), haven’t tested anything in this direction!)

                      G 1 Reply Last reply Aug 7, 2019, 11:55 AM Reply Quote 3
                      • Q
                        Quazz Moderator
                        last edited by Quazz Aug 7, 2019, 4:49 AM Aug 7, 2019, 10:48 AM

                        I’m also wondering if we should look into updating other packages that FOG either overrides or provides manually. (eg testdisk is on 6.14 as opposed to 7.1 and even pigz is at 2.3.4 instead of 2.4 (although pigz seems to have introduced potentially backwards incompatible changes))

                        1 Reply Last reply Reply Quote 0
                        • G
                          george1421 Moderator @Quazz
                          last edited by Aug 7, 2019, 11:55 AM

                          @Quazz Great news that you got it to compile. Also APFS support was a current topic wondering if it was going to be supported. So good idea to add that support. To make use of that will the web gui need to be updated to for a different operating system type?

                          I’ll download the inits a bit later today to try them in my environment. I’m still running FOG 1.5.5 FWIW.

                          As for updating other packages… (understand this is just my opinion) You installed buildroot 2019.02.1 which is the same as what the developers are using. Every time you deviate from the standard buildroot package you run the risk of introducing unexpected bugs. I would say unless there is a compelling reason (fog needs a feature of the update package or to fix a bug fog is hitting) don’t upgrade packages at random. Let the buildroot devs do that leg work. I also saw that pigz had an updated version and I think I saw the incompatibility statements so I decided to not update that in my build. That was simply because pigz supported the resyncable flag that we were looking to implement. So I would recommend that unless we are trying to solve a problem, I would say hold off on updating any packages beyond the buildroot stream. I would rather want stable over new unneeded features.

                          Great job on getting the inits compiled and working!! I’ll let you know how it works on my stuff.

                          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!

                          Q 1 Reply Last reply Aug 7, 2019, 12:02 PM Reply Quote 1
                          • Q
                            Quazz Moderator @george1421
                            last edited by Quazz Aug 7, 2019, 6:03 AM Aug 7, 2019, 12:02 PM

                            @george1421 I agree for vital packages that waiting on Buildroot where possible is preferable, but something like Testdisk (which doesn’t come from Buildroot) could surely use a bump since that doesn’t break anything 🙂

                            You installed buildroot 2019.02.1

                            2019.02.4 actually, which doesn’t fundamentally changes any packages, just a bunch of bugfixes!

                            G 2 Replies Last reply Aug 7, 2019, 12:12 PM Reply Quote 0
                            • G
                              george1421 Moderator @Quazz
                              last edited by Aug 7, 2019, 12:12 PM

                              @Quazz said in The future of partclone and therefore FOG as it is:

                              which doesn’t come from Buildroot

                              Ah so its a fog supplied package. Well then that changes the equation a bit. If its fog project supplied and its tested then there is probably no reason why we should not update. My concern is deviating from the norm that buildroot devs create.

                              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 1
                              • G
                                george1421 Moderator @Quazz
                                last edited by george1421 Aug 7, 2019, 7:47 AM Aug 7, 2019, 1:46 PM

                                @Quazz You might want to include the nvme package in your build too. Hopefully that will help us solve the issue with the nvme disk swapping. Its not important for this new init testing, but it may be of some use in the future.

                                Symbol: BR2_PACKAGE_NVME [=n] x x
                                x x Type : bool x x
                                x x Prompt: nvme x x
                                x x Location: x x
                                x x -> Target packages x x
                                x x -> Hardware handling x x
                                

                                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 2
                                • Q
                                  Quazz Moderator
                                  last edited by Quazz Aug 27, 2019, 5:26 AM Aug 26, 2019, 3:45 PM

                                  Had a kernel error of rootfs can’t mount blablabla on a device today, normal init works fine. Ramdisk size is at 275000 currently.

                                  Unsure why this happened.

                                  edit: Might just be a machine issue as it seems to be acting up in other ways too (namely freezing)

                                  1 Reply Last reply Reply Quote 0
                                  • Q
                                    Quazz Moderator
                                    last edited by Aug 27, 2019, 1:24 PM

                                    Would be great if we could come to a satisfactory answer on this matter. Unfortunately I reached the limit on what I can test on my end (all good), but obviously we want to be sure it works at least as well as the older version for everyone.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by Aug 27, 2019, 3:28 PM

                                      @Quazz Sorry for staying away from this so far. Guess there is not much I can add as I can only test on VirtualBox. I’ll still do that later on an get back to you. Is it still the download links you posted 20 days ago?

                                      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

                                      Q 1 Reply Last reply Aug 27, 2019, 3:31 PM Reply Quote 0
                                      • Q
                                        Quazz Moderator @Sebastian Roth
                                        last edited by Aug 27, 2019, 3:31 PM

                                        @Sebastian-Roth Those should still work yes. Also created a PR on github, so through that way people could check it out too I suppose.

                                        We only really have consumer grade hardware here, rarely anything special, so I know it will work in most scenarios, just need to know if it also works in those other scenarios!

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by Sep 6, 2019, 5:24 AM

                                          @george1421 @Junkhacker We had to sort through a couple of things in the pull request and I was just able to merge it all in. It’s build and everyone can test the binaries build from current master here: https://dev.fogproject.org/blue/organizations/jenkins/fos/detail/master/95/artifacts

                                          I will try to do my testing on the weekend. Would be great if you find the time to do tests on your systems in the next days as well.

                                          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

                                          JunkhackerJ 1 Reply Last reply Sep 6, 2019, 2:13 PM Reply Quote 1
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 7
                                          • 6 / 7
                                          • First post
                                            Last post

                                          169

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project