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

BTRFS: open_ctree failed after ubuntu image deploy

Scheduled Pinned Locked Moved
FOG Problems
4
29
8.6k
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.
  • O
    Oleg @Sebastian Roth
    last edited by Oleg Jun 8, 2016, 10:09 AM Jun 8, 2016, 4:05 PM

    @Sebastian-Roth
    I changed the image to resizable and did an upload. After downloading I stuck on busybox again.
    here are the image-files:
    d1.fixed_size_partitions

    2:3:4:5:6
    

    d1.minimum.partitions:

    label: dos
    label-id: 0x173d9cfe
    device: /dev/sda
    unit: sectors
    
    /dev/sda1 : start=        2048, size=      347702, type=83, bootable
    /dev/sda2 : start=     5859328, size=    15624192, type=82
    /dev/sda3 : start=    21483520, size=    19531776, type=83
    /dev/sda4 : start=    41017342, size=   209051650, type=5
    /dev/sda5 : start=    41017344, size=    19529728, type=83
    /dev/sda6 : start=    60549120, size=   189519872, type=83
    

    d1.partitions:

    label: dos
    label-id: 0x173d9cfe
    device: /dev/sda
    unit: sectors
    
    /dev/sda1 : start=        2048, size=     5857280, type=83, bootable
    /dev/sda2 : start=     5859328, size=    15624192, type=82
    /dev/sda3 : start=    21483520, size=    19531776, type=83
    /dev/sda4 : start=    41017342, size=   209051650, type=5
    /dev/sda5 : start=    41017344, size=    19529728, type=83
    /dev/sda6 : start=    60549120, size=   189519872, type=83
    
    

    d1.original.fstypes:

    /dev/sda1 extfs
    

    d1.original.swapuuids is the same

    and this is how i my busybox look like:
    0_1465402138919_IMG_20160608_175505.jpg

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Jun 8, 2016, 4:25 PM

      @Oleg said:

      and this is how i my busybox look like…

      Good that you posted this picture because, oh well, I guess I was on the wrong track with this. Do you get the same error on non-resizable image type or is it a different error before getting to the busybox shell?

      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

      O 1 Reply Last reply Jun 9, 2016, 9:06 AM Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Sebastian Roth Jun 8, 2016, 10:37 AM Jun 8, 2016, 4:37 PM

        @Oleg To me this looks like it could be an issue in the partclone.btrfs code. Hope it’s not but you never know.

        Here it says:

        Luckily all decent systems that support btrfs (like Ubuntu 14.04) will have btrfs tools included in the initramfs environment, so you can run btrfs commands from there and try to recover from the situation without the need to boot the system form an alternative media, like a live CD.

        So can you please boot up the system after deploy using a live CD and try the following commands:

        btrfs-show-super -a /dev/sda3
        btrfs check /dev/sda3
        btrfs-find-root /dev/sda3
        mkdir -p /mnt/sda3 && mount -t btrfs -o ro,recovery /dev/sda3 /mnt/sda3
        btrfs restore -F -i -D -v /dev/sda3 /dev/null
        

        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
        • O
          Oleg @Sebastian Roth
          last edited by Jun 9, 2016, 9:06 AM

          @Sebastian-Roth said:

          … Do you get the same error on non-resizable image type or is it a different error before getting to the busybox shell?

          This is what i get:0_1465406776405_IMG_20160608_184600.jpg

          The commands doesn’t work for me - will try to repair that. But is it btrfs-problem?
          My system is a completly new with a only a couple files added.

          1 Reply Last reply Reply Quote 0
          • O
            Oleg
            last edited by Jun 9, 2016, 11:11 AM

            I’ve just tried to create an Image with latest clonezilla but it’s the same.

            1 Reply Last reply Reply Quote 0
            • T
              Tom Elliott
              last edited by Jun 9, 2016, 11:13 AM

              Does it upload all the partitions or just /dev/sda1?

              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

              O 1 Reply Last reply Jun 9, 2016, 11:24 AM Reply Quote 0
              • T
                Tom Elliott
                last edited by Jun 9, 2016, 11:16 AM

                Also, just for clarification.

                The first upload broke this system, from what I understand. Are you uploading the broken system or are you ensuring the system is operational between uploads?

                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

                1 Reply Last reply Reply Quote 0
                • O
                  Oleg @Tom Elliott
                  last edited by Jun 9, 2016, 11:24 AM

                  @Tom-Elliott
                  in fog - yes, all partitions have been uploaded
                  0_1465471312131_fog.JPG

                  The system is running fine before uploading.
                  I mean if I setup a clean Ubuntu 16.06 Server with BTRFS and the partition table i mentioned, then i get the same error. Tested with another Fujitsu Computer, which is a couple years old.

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Elliott
                    last edited by Jun 9, 2016, 11:26 AM

                    Then the last question I have, I suppose.

                    Have you updated to the latest FOG Version and retried uploading?

                    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

                    O 1 Reply Last reply Jun 9, 2016, 11:27 AM Reply Quote 0
                    • O
                      Oleg @Tom Elliott
                      last edited by Jun 9, 2016, 11:27 AM

                      @Tom-Elliott
                      sorry, had to mention that at first - last try was with Trunk 8046

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Sebastian Roth Jun 9, 2016, 7:45 AM Jun 9, 2016, 1:44 PM

                        @Oleg said:

                        But is it btrfs-problem? … I’ve just tried to create an Image with latest clonezilla but it’s the same.

                        As you see from your tests it seems to be a partclone/clonezilla issue. This confirms this as well. Although I really wonder why I can’t find anything about this on the web… There should be other people running into this issue!!

                        Possibly I will be able to do some tests over the weekend. Kepp us posted if you find anything new on this.

                        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 Jun 9, 2016, 3:10 PM Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by Jun 9, 2016, 2:51 PM

                          @Oleg Starting to get my VM setup to test your issue I am a bit confused about the partition layout. While I am not saying that this is causing the error I am wondering why:

                          • sda1 (/boot) is about 3 GB - not bad but usually you don’t need that much for it
                          • sda3 (/) is around 9.5 GB - might be enough but I’d use a little more
                          • sda5 (/home) is around 9.5 GB - this is where users store all their data… usually need a lot more
                          • sda6 (/opt) is around 90 GB - usually /opt is for optional software. Do you install that much custom tools?
                            I am not saying that this layout is wrong. Depending on your requirements it might be very useful this way. Just saying that this is not the way I’d partition my disk.

                          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

                          O 1 Reply Last reply Jun 13, 2016, 8:51 AM Reply Quote 0
                          • Q
                            Quazz Moderator @Sebastian Roth
                            last edited by Quazz Jun 9, 2016, 9:13 AM Jun 9, 2016, 3:10 PM

                            @Sebastian-Roth this seems relevant to this discussion as well.

                            Should be fixed in the partclone version FOG uses, but sounds like a btrfsfsck might be useful to try.

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Sebastian Roth Jun 9, 2016, 10:28 AM Jun 9, 2016, 4:25 PM

                              @Quazz Good find man! Although I am wondering if this is the exact same issue as they are talking about an issue with “lzo compressed btrfs volumes” which @Oleg does not seem to have according to his /etc/fstab…

                              I had a bit of time while I was waiting for some other installations today so I setup Ubuntu 16.04 server (should be close enough to the scenario with Oleg’s Ubuntu desktop), booted it a couple of times without an issue, uploaded an image and deployed it again. My Ubuntu server is coming up and seems normal but taking a look at /var/log/kern.log I see a lot of these messages:

                              BTRFS error (device sda3): bad tree block start 0 40345712
                              BTRFS error (device sda3): bad tree block start 0 40484864
                              BTRFS error (device sda3): bad tree block start 0 40091648
                              BTRFS error (device sda3): bad tree block start 0 40108032
                              BTRFS error (device sda3): bad tree block start 0 40042496
                              ...
                              

                              Notice the different numbers at the end of the lines. I am not sure what that means. Guess we need to do some more research on this as it does not seem to be a showstopper in my case. I don’t see the BTRFS: open_ctree failed but I have some other btrfs related messages:

                              BTRFS info (device sda3): read error corrected: ino 1 off 125304832 (dev /dev/sda3 sector 261120)
                              BTRFS info (device sda3): read error corrected: ino 1 off 125308928 (dev /dev/sda3 sector 261128)
                              BTRFS info (device sda3): read error corrected: ino 1 off 125313024 (dev /dev/sda3 sector 261136)
                              BTRFS info (device sda3): read error corrected: ino 1 off 125317120 (dev /dev/sda3 sector 261144)
                              

                              Anyone keen to dig into this and take a look at the partclone code as well. I’d love to but I guess I won’t find the time in the near future.

                              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
                              • O
                                Oleg @Sebastian Roth
                                last edited by Jun 13, 2016, 8:51 AM

                                @Sebastian-Roth
                                Thanks for your suggestion! 🙂 for a normal use yours is better - in our case we have only a couple applications which are storing their data in the /opt. For sda2 and sda3 I think I will follow your suggestion.
                                Yes your right - in my setting I don’t have the “lzo compressed” options in the fstab.
                                In your case the system comes up in my not. Will look further today to confine the issue.

                                I think if it’s a partcone “code-issue”, the solution could take a while?! I’m asking because then I have to switch to another filesystem.

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Tom Elliott
                                  last edited by Jun 13, 2016, 9:51 AM

                                  I feel I should at least kind of chime in a little bit.

                                  The issue here is not in any way, shape, or form, related to the message as described in the title. The “random: nonblocking pool is initialized” is simply a kernel debug statement just telling you the pool to randomize elements in a non-blocking form has been initiated. This is NOT what is causing the failure to boot after upload, nor is it impeding with BTRFS in anyway.

                                  I think @Quazz is right, at least in that we can perform a btrfs filesystem check. I doubt it will fix anything though. See, @Sebastian-Roth has successfully imaged the system using similar layout as yours, and while there are a few concerning error messages, the system is still operation. Maybe something else is causing issues?

                                  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

                                  S 1 Reply Last reply Jun 13, 2016, 12:06 PM Reply Quote 0
                                  • S
                                    Sebastian Roth Moderator @Tom Elliott
                                    last edited by Sebastian Roth Jun 13, 2016, 6:07 AM Jun 13, 2016, 12:06 PM

                                    @Tom-Elliott said in Upload image "random: nonblocking pool is initialized":

                                    See, @Sebastian-Roth has successfully imaged the system using similar layout as yours, and while there are a few concerning error messages, the system is still operation. Maybe something else is causing issues?

                                    While you’re right that my system seemed to boot up properly after cloning I am still very concerned about those messages I posted. I just started up the system again. Booted ok, but I get a couple of these bad tree block start messages every minute now. I am trying to get in contact with the clonezilla developers about this as I think this is not a very special case and will hit is from time to time. I don’t think we should do raw imaging with btrfs filesystems just to circumnavigate this issue.

                                    PS: Tom is right about the title. @Oleg would you mind changing the title to something appropriate?

                                    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 O 2 Replies Last reply Jun 13, 2016, 12:32 PM Reply Quote 0
                                    • Q
                                      Quazz Moderator @Sebastian Roth
                                      last edited by Jun 13, 2016, 12:32 PM

                                      @Sebastian-Roth Have you tried a fsck? There might be some useful info coming out of that if anything, although this seem like a partclone issue, more info is always nice.

                                      S 1 Reply Last reply Jun 13, 2016, 3:22 PM Reply Quote 0
                                      • O
                                        Oleg @Sebastian Roth
                                        last edited by Oleg Jun 13, 2016, 9:26 AM Jun 13, 2016, 1:30 PM

                                        @Sebastian-Roth
                                        no problem - change the topic in something more related to the discussed issue.

                                        today I tried to clone that image with another fstab-mount-options. I remove discard because I read that this option should not be used with BTRFS and also tried with clear_cache and nospace_cache but with no success.

                                        T 1 Reply Last reply Jun 13, 2016, 3:48 PM Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator @Quazz
                                          last edited by Jun 13, 2016, 3:22 PM

                                          @Quazz said in Upload image "random: nonblocking pool is initialized":

                                          Have you tried a fsck? There might be some useful info coming out of that if anything, although this seem like a partclone issue, more info is always nice.

                                          There are about a dozen or so of btrfs-tools (like btrfs, btrfs-find-root, btrfs-debug-tree and some more) to examine and fix those kind of filesystems. Unfortunately I haven’t played with those tools before and don’t really know enough about btrfs to find out what is causing this BTRFS: open_ctree failed.

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

                                          151

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project