Menu

Help replacing 4x1TB split parity drive with 1x4TB for 1st parity

Help
2023-02-02
2023-02-09
  • hydriniumh2

    hydriniumh2 - 2023-02-02

    Hi,
    I'm kinda scratching my head at my current situation. I originally started a snapraid array with 4x1TB drives in a split parity for the 1st parity drive and then added a second 2-parity drive that's 4TB. Now I want to replace the 1-parity drive with a 4TB drive as well but I can't find any way to do it. If I try replacing all 4 drives with the 4TB drive it gives the error:

    Decoding error in '/srv/dev-disk-by-label-Volume1/snapraid.content' at offset 774
    The file CRC is correct!
    Parity 'parity' misses used file '1'!
    If you have removed it from the configuration file, please restore it
    

    And I can't find any way of replacing or removing the 1-parity in the documentation. Only 2-parity (or higher) drives. And nothing about converting a 4x1TB split parity to a 1x4TB parity drive either, the only reference to replacing parity drives involves copy-pasting the parity file between drives of the same size unfortunately.
    I guess the only option would be to nuke the entire Snapraid array and rebuild from scratch?
    Any help anyone could give would be greatly appreciated.
    Thanks

     

    Last edit: hydriniumh2 2023-02-02
    • Allan Bennett

      Allan Bennett - 2023-02-09

      I have had success splitting large parity files in to multiple smaller files so concatenating smaller files in to one large file should work.
      You don't say if you are running linux or windows.
      cat snapraid.parity01 snapraid.parity02 snapraid.parity03 snapraid.parity04> snapraid.parity
      COPY /B snapraid.parity01 + snapraid.parity02 + snapraid.parity03 + snapraid.parity04 snapraid.parity
      you will need to make to add directory info so the fiels are pulled form the right place and your new file is put on the correct drives.
      Change your config from
      parity /srv/disk1/snapraid.parity01,/srv/disk2/snapraid.parity02,/srv/disk3/snapraid.parity03,/srv/disk4/snapraid.parity04
      to
      parity /srv/disk5/snapraid.parity
      Now test with either check or scrub (sorry I don't know which one is more thorough).

       

Log in to post a comment.

MongoDB Logo MongoDB