Menu

RAID support removed?

Enrix
2021-08-01
2023-08-01
<< < 1 2 3 > >> (Page 2 of 3)
  • Enrix

    Enrix - 2022-04-01

    In my case, these are Windows 10 systems, so there are only FAT or NTFS partitions. Computers are set to UEFI and the disks are GPT.
    See the attachments below: Two different versions of Clonezilla, older and newer, see the partitions in a slightly different way.
    I booted off a CD in each case so the version is also listed at the bottom.

     
  • Enrix

    Enrix - 2022-04-11

    I downloaded the version you indicated.

    Not sure what the command is supposed to do, but I definitely did not want to overwrite any data. I ran it up to the point where I said "n"

     
  • Christopher Sun

    Christopher Sun - 2022-11-29

    Hello,

    sorry to open this thread again - issue also accurs (again) in v3.0.2-21 as well as 20221103-kinetic as of writing 2022-11-29

     
  • Enrix

    Enrix - 2022-11-29

    Thanks for sharing that 2.7.3.19 works...I had gone all the way back to 20200703 because it was the last version I found to be working.

    I'd hope support for this would carry over to new versions...like always.

     
  • Steven Shiau

    Steven Shiau - 2022-11-29

    Did you try to use "restoreparts" instead of "restoredisk"?
    Actually we switched the type about RAID device for the TUI to be partition, not disk any more.

    Steven

     
  • Enrix

    Enrix - 2022-11-30

    I have tried restoreparts in the past but it didn't work for bootable drives...meaning they wouldn't be bootable after the restore operation. If there is an extra step to fix bootable drives restored with restoreparts it would be useful to know...but it seems a simple "one-step" procedure was taken away with no alternative option.

     
    • Christopher Sun

      Christopher Sun - 2022-11-30

      can confirm that, must be using restoredsk to be fully working and bootable, restoreparts would be "ok" for partial recovery only

       
  • Steven Shiau

    Steven Shiau - 2022-11-30

    OK, got it. So the issue is only the booting mechanism?

    Steven

     
  • Enrix

    Enrix - 2022-11-30

    I wouldn't say the "only" issue...you need to take into account that most operating systems create more than one partition...for example, my current Windows laptop's SSD drive has 3 partitions, EFI, data & recovery. I think that's a typical scheme for Windows.

    My test desktop computer has one multi-boot volume with Windows, Ubuntu and Rocky, so that's a total of 7 partitions (and I would have more if I didn't use LVM in Rocky). So in that case I would need to create 7 separate images.

    With the "old" method it would be just one image for the entire disk.

     
  • Christopher Sun

    Christopher Sun - 2022-11-30

    i agree with Enrix, restoredisk is the only visable solution needed

     
  • Michael McGrath

    Michael McGrath - 2022-11-30

    I hope you don't mind me jumping in here. I too have been struggling with this same issue for some time. I took a look at the code today and I seem to have found a 'fix'. I hesitate to use the word fix as I don't think Steven considers it broken.
    The problem is with a RegEx in the function is_partition() in the file ocs-functions. I can supply more information if anyone wants it.

     

    Last edit: Michael McGrath 2022-11-30
  • Michael McGrath

    Michael McGrath - 2022-11-30

    Okay. I might have been a bit premature here. The solution I mentioned does allow md126 to show in the list of devices but when I attempted to restore an image to it, I got an error. /dev/md126 is busy. Some partition is mounted.

     
  • Steven Shiau

    Steven Shiau - 2022-11-30

    @Michael,
    No problem. Patches are welcome.
    Actually maybe we should revert to what it was in 2.7.3-19. I will check more recently.

    Steven

     
  • Michael McGrath

    Michael McGrath - 2022-12-01

    Hi Steven. From my own experience of looking at this, it actually worked up until 2.8.0-6 and was broken in 2.8.0-8. There was a lot of changes made in this release. ocs-prep-cache was used for the first time I believe and a lot of changes in ocs-functions.
    In relation to the error I mentioned above regarding /dev/md126 is busy. Some partition is mounted. I'm hoping this is down to a RegEx in one of the functions that check if disks are busy. I'm not great with Regular Expressions though....

     
  • Michael McGrath

    Michael McGrath - 2022-12-04

    @Enrix
    @Christopher Sun

    I have managed to get this working if you are still interested. The solution is far from ideal as it involves using squashfs-tools to unsquash the filesystem, edit a file and then squash it again. But it does work.
    I have issued a pull request on Github stevenshiau /clonezilla. It would obviously be better if it was fixed properly at source.

     
  • Steven Shiau

    Steven Shiau - 2023-01-24

    @Michael,
    Somehow I missed this PR notification.
    As for this request:
    https://github.com/stevenshiau/clonezilla/pull/81/commits/eaf01e8a84a5046687f62b4b9748971c5422f801
    As for the this:

      local RE5='md[0-9]+p?[0-9]*'
    

    As in the comment:

    # 2020/12/18 Allow /dev/md126 can be a partition, too.
    

    Hence I hesitated to change it as

      local RE5='md[0-9]+p+[0-9]*'
    

    Steven

     
  • Michael McGrath

    Michael McGrath - 2023-02-11

    Hi Steven,

    Thanks for the response. I had seen the comment

    # 2020/12/18 Allow /dev/md126 can be a partition, too.
    

    but I suppose my confusion is around the use of the word 'too', because it seems to allow /dev/md126 to be seen as a partition 'only' which breaks functionality for me and others.

    Regards

    Michael

     
  • Steven Shiau

    Steven Shiau - 2023-02-16

    Got it.
    There are some changes in testing Clonezilla live >= 3.0.3-22. Could you give it a try?
    https://clonezilla.org/downloads.php

    Steven

     
  • Xinjun

    Xinjun - 2023-02-22

    Hi Steven,
    I just tested Clonezilla live >= 3.0.3-22 with intel RAID1 which is built in BIOS. I guess it is one FAKE RAID (firmware). Basically 3.0.3-22 could do the disk to image backup. It recognizes md126. But when restore the image to RAID1 disk in same computer, it couldn't show md126 in target disks, only show the member disks of raid(sda/sdb). The interesting thing is that it still can recognizes md126 in the early steps, until going to restore image to disk step. Then I use 2.7.3.19 to do restore, it does restore the image to disk.

    Xinjun

     
  • Steven Shiau

    Steven Shiau - 2023-03-05

    So this issue maybe only exists on the TUI? If you assign that in the command line parameters, it should work, right?

    Steven

     
    • Michael McGrath

      Michael McGrath - 2023-03-05

      Hi Steven,

      I also tested with testing - 3.1.0-10 but still have the same issue. I've done a lot of testing from within the live environment and I believe I might know what's going on.
      In the function is_partition() there is an if / elif block that tests for the value of variable $ocs_sr_type. From my testing this variable is unset when the function is called and defaults to the else at the end. This else block only checks for the device name against the regex so /dev/md126 is always flagged as a partition even if it doesn't have a filesystem on the drive root. I tried placing a if is_block_device_with_fs $dev_; call here before checking the regex and it seems to work. I haven't been able to test this yet to see if it would still flag /dev/md126 as a partition if it did actually have a filesystem on it though.
      It seems to me that the script ocs-prep-cache is called ever before I choose savedisk or restoredisk, and that's why $ocs_sr_type is not yet set. I have attached a patch file so you can see what I'm talking about.
      The awk line with IGNORECASE fixes an issue where /dev/md126 always shows as busy/mounted when trying to restore an image to it.

       
  • Steven Shiau

    Steven Shiau - 2023-03-05

    OK, thank you very much. We will check it.

    Steven

     
<< < 1 2 3 > >> (Page 2 of 3)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.