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

BTRFS postdownloadscript

Scheduled Pinned Locked Moved
Linux Problems
4
25
3.0k
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.
  • M
    mstabrin
    last edited by Feb 11, 2021, 2:13 PM

    @Tom-Elliott I have to thank you for the fast response 🙂
    I will keep the modifications intact for now and when I encounter problems using it I will come back to you 👍

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Sebastian Roth Feb 20, 2021, 1:05 PM Feb 20, 2021, 7:04 PM

      @mstabrin said in BTRFS postdownloadscript:

      I will keep the modifications intact for now and when I encounter problems using it I will come back to you

      Just wondering if you had time to test this and encountered any issue so far?

      It’s part of the official code and will be in the next release. So it would be good to have some confidence this is working as expected.

      Thanks in advance!

      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

      M 1 Reply Last reply Feb 22, 2021, 3:51 PM Reply Quote 0
      • M
        mstabrin @Sebastian Roth
        last edited by Feb 22, 2021, 3:51 PM

        Hello @sebastian-roth ,

        So far I did not encounter any problems imaging and deploying resizable BTRFS images 🙂

        However, I “only” tested simple examples, i.e., one SSD with EFI, BTRFS, SWAP partitioning.

        But no problems with this setup.
        However, more complex examples will follow soon and I will come back to you in case I encounter some problems.

        1 Reply Last reply Reply Quote 2
        • M
          mstabrin
          last edited by Apr 13, 2021, 4:52 PM

          @Tom-Elliott @george1421 @Sebastian-Roth A quick follow up, so I deployed the image to many different PCs now and so far I did only have minor issues which might not actually be related to BTRFS in the first place.

          I used to have the partition order:

          1. EFI
          2. BTRFS
          3. SWAP 2GB
            on a VM with a 50GB HDD.

          Image options: Single Disk - Resizable - Everything

          Everything worked great if I deployed to HDDs with >=50GB.
          However, it failed when I tried the deployment to an HDD with 40GB.

          It seemed to be something like: The SWAP starting block on the original HDD is on a starting block that is not even present on the 40GB HDD.

          So I moved the partition order to:

          1. EFI
          2. SWAP 2GB
          3. BTRFS

          And everything works as intended.

          I will play around with different approaches though.
          Like separate the partitioning from the actual image deployment.
          We have many different systems requiring different amounts of SWAP space and/or dual/triple/many boot.
          So my idea would be to deploy the partitioning first and afterwards only image the BTRFS partition itself and distribute it to a specified aim partition on the aim PC.

          Thanks again for the help!

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Sebastian Roth Apr 13, 2021, 11:27 AM Apr 13, 2021, 5:24 PM

            @mstabrin Good to hear the BTRFS resize code is working for you! Thanks again for your work on this.

            For a long time FOG would not move partitions if they were recognized as “fixed” because moving e.g. a recovery partition in the old MBR days would render it useless because of static sector addressing in boot loaders and such. Now as we all move towards UEFI and GPT partition layouts we have updated this logic to handle “fixed” partitions as fixed in size but not fixed in position anymore. For more details read this topic: https://forums.fogproject.org/topic/15025/move-partitions-on-gpt-layouts-need-people-to-test

            I did a test with Linux partition layout having SWAP at the end and it was able to shrink it down and deploy to a smaller size disk: https://forums.fogproject.org/post/141373

            To make a long story short, download the latest inits from our webserver (64 bit, 32 bit) and you should have this feature included as well as your BTRFS resize.

            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
            • 1
            • 2
            • 2 / 2
            • First post
              Last post

            249

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project