Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Linux
  3. Viability of using bcache on a 2 raid arrays?

Viability of using bcache on a 2 raid arrays?

Scheduled Pinned Locked Moved Linux
7 Posts 5 Posters 0 Views
  • 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.
  • Q This user is from outside of this forum
    Q This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #1

    I was wondering about the possibility of using the following setup with write-caching

    btrfs
        bcache
            fast
                mdadm (RAID-1)
                    ssd_1
                    ssd_2
            slow
                mdadm (RAID-5)
                    hdd_1
                    hdd_2
                    hdd_3
                    hdd_4
    

    Is this viable / reasonable? The arch wiki mentions the possibility of data loss when using write-caching when the SSD fails, but shouldn't the SSD RAID array prevent that? It also mentions "bcache and BTRFS could leave you with a corrupted file system" is this still true? The wiki page mentions that it's unclear if this is still an issue.

    Someone also left the following comment on the discussions page regarding BTRFS in 2023:

    The issues with btrfs + bcache were fixed 10 years ago. The btrfs wiki no longer mentions historic gotchas for kernels older than 4.14. I think we should remove this warning. Any objections?

    J M slacktoid@lemmy.mlS T 4 Replies Last reply
    1
    0
    • System shared this topic on
    • Q [email protected]

      I was wondering about the possibility of using the following setup with write-caching

      btrfs
          bcache
              fast
                  mdadm (RAID-1)
                      ssd_1
                      ssd_2
              slow
                  mdadm (RAID-5)
                      hdd_1
                      hdd_2
                      hdd_3
                      hdd_4
      

      Is this viable / reasonable? The arch wiki mentions the possibility of data loss when using write-caching when the SSD fails, but shouldn't the SSD RAID array prevent that? It also mentions "bcache and BTRFS could leave you with a corrupted file system" is this still true? The wiki page mentions that it's unclear if this is still an issue.

      Someone also left the following comment on the discussions page regarding BTRFS in 2023:

      The issues with btrfs + bcache were fixed 10 years ago. The btrfs wiki no longer mentions historic gotchas for kernels older than 4.14. I think we should remove this warning. Any objections?

      J This user is from outside of this forum
      J This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      I'm not sure I'd personally be trusting bcache with anything at all at this point...

      1 Reply Last reply
      0
      • Q [email protected]

        I was wondering about the possibility of using the following setup with write-caching

        btrfs
            bcache
                fast
                    mdadm (RAID-1)
                        ssd_1
                        ssd_2
                slow
                    mdadm (RAID-5)
                        hdd_1
                        hdd_2
                        hdd_3
                        hdd_4
        

        Is this viable / reasonable? The arch wiki mentions the possibility of data loss when using write-caching when the SSD fails, but shouldn't the SSD RAID array prevent that? It also mentions "bcache and BTRFS could leave you with a corrupted file system" is this still true? The wiki page mentions that it's unclear if this is still an issue.

        Someone also left the following comment on the discussions page regarding BTRFS in 2023:

        The issues with btrfs + bcache were fixed 10 years ago. The btrfs wiki no longer mentions historic gotchas for kernels older than 4.14. I think we should remove this warning. Any objections?

        M This user is from outside of this forum
        M This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #3

        Does this use Btfs' RAID5? If so you might want to avoid since RAID5/6 arent production ready for Btrfs and contain known bugs that can lead to parity loss.

        Q 1 Reply Last reply
        0
        • M [email protected]

          Does this use Btfs' RAID5? If so you might want to avoid since RAID5/6 arent production ready for Btrfs and contain known bugs that can lead to parity loss.

          Q This user is from outside of this forum
          Q This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #4

          No, I'm aware of BTRFS's RAID 5/6 issues, this uses mdadm's RAID.

          1 Reply Last reply
          0
          • Q [email protected]

            I was wondering about the possibility of using the following setup with write-caching

            btrfs
                bcache
                    fast
                        mdadm (RAID-1)
                            ssd_1
                            ssd_2
                    slow
                        mdadm (RAID-5)
                            hdd_1
                            hdd_2
                            hdd_3
                            hdd_4
            

            Is this viable / reasonable? The arch wiki mentions the possibility of data loss when using write-caching when the SSD fails, but shouldn't the SSD RAID array prevent that? It also mentions "bcache and BTRFS could leave you with a corrupted file system" is this still true? The wiki page mentions that it's unclear if this is still an issue.

            Someone also left the following comment on the discussions page regarding BTRFS in 2023:

            The issues with btrfs + bcache were fixed 10 years ago. The btrfs wiki no longer mentions historic gotchas for kernels older than 4.14. I think we should remove this warning. Any objections?

            slacktoid@lemmy.mlS This user is from outside of this forum
            slacktoid@lemmy.mlS This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #5

            I've got a similar setup without the raid bcache cache drive and wish I did that as it should make maintenance easier. I think it should work. Tho I dunno the gotchas for btrfs and have only done it with xfs. Why btrfs if you don't mind me asking?

            Q 1 Reply Last reply
            0
            • slacktoid@lemmy.mlS [email protected]

              I've got a similar setup without the raid bcache cache drive and wish I did that as it should make maintenance easier. I think it should work. Tho I dunno the gotchas for btrfs and have only done it with xfs. Why btrfs if you don't mind me asking?

              Q This user is from outside of this forum
              Q This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #6

              I would like to use BTRFS for deduplication and snapshots.

              1 Reply Last reply
              0
              • Q [email protected]

                I was wondering about the possibility of using the following setup with write-caching

                btrfs
                    bcache
                        fast
                            mdadm (RAID-1)
                                ssd_1
                                ssd_2
                        slow
                            mdadm (RAID-5)
                                hdd_1
                                hdd_2
                                hdd_3
                                hdd_4
                

                Is this viable / reasonable? The arch wiki mentions the possibility of data loss when using write-caching when the SSD fails, but shouldn't the SSD RAID array prevent that? It also mentions "bcache and BTRFS could leave you with a corrupted file system" is this still true? The wiki page mentions that it's unclear if this is still an issue.

                Someone also left the following comment on the discussions page regarding BTRFS in 2023:

                The issues with btrfs + bcache were fixed 10 years ago. The btrfs wiki no longer mentions historic gotchas for kernels older than 4.14. I think we should remove this warning. Any objections?

                T This user is from outside of this forum
                T This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #7

                Any reason you dont just use bcachefs?

                Supports various write-cache configurations, and seperate forgrouns/background replications (a la raid 1).

                I think its even more stable than raid because it'll auto-balance when a disk fails, but I'm not as certain in that

                1 Reply Last reply
                0
                • System shared this topic
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups