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

Unable to capture image with raid1 software array

Scheduled Pinned Locked Moved Unsolved
Linux Problems
3
8
264
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.
  • T
    t.schuurmans
    last edited by Aug 28, 2024, 2:04 PM

    Hi all!

    I can’t capture an image on debian 12 with a raid1 configuration via software configuration.

    I have tried so many things and searched so many forums including setting mdraid=true on the host and setting primary disk on /dev/md127 as it showed in the debug terminal.

    also setting the mdraid=true in fogsettings did not make any diffrence, keep getting the same issue:
    3ff5123d-977a-4f26-9e76-26f649b3c519-image.png

    This is currently a virtualmachine as it is easier for me to test with.
    I have changed the disks from VirtiO to sata and scsi but nothing made any diffrence.

    Any ideas?

    T G 2 Replies Last reply Aug 28, 2024, 4:12 PM Reply Quote 0
    • T
      Tom Elliott @t.schuurmans
      last edited by Aug 28, 2024, 4:12 PM

      @t-schuurmans https://forums.fogproject.org/topic/17626/issues-with-capturing-an-image-with-a-raid0-array

      Might help? From last I could tell at least it seemed things were working. I don’t know though.

      Raid imaging support isn’t really baked in as nicely as it probably coudl be (though I imagine it’d be nearly impossible for any system to do so accurately 100% of the time.)

      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
      • G
        george1421 Moderator @t.schuurmans
        last edited by george1421 Aug 28, 2024, 3:14 PM Aug 28, 2024, 9:09 PM

        @t-schuurmans Looking at the error message I can tell you that /dev/vda is the wrong answer in regards to a software raid array.

        There was just another thread in the forum where someone else was doing the exact thing as you.

        Edit: https://forums.fogproject.org/topic/17626/issues-with-capturing-an-image-with-a-raid0-array

        I would suggest the same thing here. Set the global flag for mdraid=truethen schedule a debug capture. At the fos linux command prompt key in lsblk and then see if fos linux assembled the array for you. If yes, find out the correct device name it is for the array. And finally back in the fog web ui, in the host definition set the hard drive to use the same name as what was discovered in the debug console.

        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!

        T 1 Reply Last reply Aug 29, 2024, 8:41 AM Reply Quote 0
        • T
          t.schuurmans @george1421
          last edited by t.schuurmans Aug 29, 2024, 2:43 AM Aug 29, 2024, 8:41 AM

          @george1421 I have read so many forum posts including the one you mentioned
          The thing is i do not make a raid over the whole disks, just a part of the this, whereas i want all the partitons to be cloned.
          62b9eb2b-39c9-4f1b-9f53-34906712cea0-image.png

          So do i need to use /dev/md127 as primary drive? or what should i do to capture both drives in the system completely?

          I am still unable to capture the disks with setting /dev/md127 as primary disk.

          T 1 Reply Last reply Aug 29, 2024, 8:56 AM Reply Quote 0
          • T
            Tom Elliott @t.schuurmans
            last edited by Tom Elliott Aug 29, 2024, 2:59 AM Aug 29, 2024, 8:56 AM

            @t-schuurmans Did you set the host args to mdraid=true AND the drive to /dev/md127?

            There is another post where you may need to create a symbolic link from /dev/md0 -> /dev/md127

            Let me see if I can find out that.

            I believe that is talked about here:
            https://forums.fogproject.org/topic/17257/problem-capturing-right-host-primary-disk-with-intel-vroc-raid1/2

            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

            T 1 Reply Last reply Aug 29, 2024, 1:27 PM Reply Quote 0
            • T
              t.schuurmans @Tom Elliott
              last edited by Aug 29, 2024, 1:27 PM

              @Tom-Elliott
              73686167-d6b5-460e-8cb6-2714e1e11a8d-image.png
              2d2b7ec8-a0df-4a6e-b22c-bb14fcd5998e-image.png

              5953b2b5-2249-4f45-9a2e-9a113a1c39a8-image.png
              4ed6526c-65e1-4055-b5a6-ad0f0352089a-image.png

              Please know that my raid only contains the OS which is 20GB and the rest is empty space.
              Where should i put the postinit script?

              T 1 Reply Last reply Aug 29, 2024, 1:52 PM Reply Quote 0
              • T
                Tom Elliott @t.schuurmans
                last edited by Aug 29, 2024, 1:52 PM

                @t-schuurmans Sorry to give links after links but i think it’s worth while for you to review and learn as we go along too.

                https://forums.fogproject.org/topic/9463/fog-postinit-scripts-before-the-magic-begins

                The long and short of it however would be to edit the file:
                /images/dev/fog.postinit and add the line:

                As I don’t have enough information to narrow it down to just this machine please understand this is a “hack” specific to this one use case:

                rm -rf /dev/md0
                ln -sf /dev/md127 /dev/md0
                

                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

                T 1 Reply Last reply Aug 29, 2024, 2:02 PM Reply Quote 0
                • T
                  t.schuurmans @Tom Elliott
                  last edited by t.schuurmans Aug 29, 2024, 8:12 AM Aug 29, 2024, 2:02 PM

                  @Tom-Elliott

                  No worries, all the help is appriciated!

                  199cd3f7-9311-4f08-80df-dd932845af2d-image.png

                  a6b999ce-4c5b-4462-9181-3746b2972f8a-image.png
                  a900cb0f-9abb-41fa-84b8-cef64c317cc6-image.png

                  6d685e25-ca2f-4c18-8a27-add58d1470e0-image.png

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    4/8
                    Last post

                  163

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project