Resolved: Cache Drive Raid 0 Question


Recommended Posts

Quick question - I recently replaced my two SAS drives with SSD for my Cache.  As these are enterprise SSD, I went with Raid 0 (I know, still a risk).  Two 960GB drives in Raid 0.

 

I followed the process for moving the original Cache data to the array, replacing the original drives with the new drives, configured for Raid 0 via the Balance pulldown, then kicked off the move back to Cache.  All went and works fine.

 

Question: Why does the BTRFS filesystem for my Cache show Raid 1 for System and Metadata?  I did run the Perform Full Balance after the data was moved back as well.

 

1563283757_ScreenShot2021-06-12at11_47_07AM.thumb.png.49ad2a136376125dd1247b8f74f27e24.png

 

1170416091_ScreenShot2021-06-12at11_46_32AM.thumb.png.a0118167a6694f5397b8fcdc22077eb3.png

 

711527654_ScreenShot2021-06-12at11_47_57AM.thumb.png.85b3e0da1b32dd0e21466723a5553fcc.png

 

Edited by mproberts
Link to comment
14 hours ago, mproberts said:

Why does the BTRFS filesystem for my Cache show Raid 1 for System and Metadata?

Because it's safer that way, metadata uses very little space comparatively and you'll have redundancy there, but if you really want you can force metadata to raid0 also using the CLI.

Link to comment

Thanks.  Is it a virtual Raid 1 on a Raid 0 formatted/pooled set of drives?  That's where my confusion lies and if this is some sort of virtual Raid 1, not clear how this would provide Raid 1 protection (1 drive failing).  

 

If my two drives are wholly a Raid 0 pool, how do I end up with a (reported) Raid 1 for metadata and system?

 

 

 

1185229812_ScreenShot2021-06-13at8_16_10AM.thumb.png.94de05336d1ce07a7d05c154379f54de.png

Link to comment

Btrfs has data and metadata chunks, all the data you copy there will use raid0, metadata (and system) is where the filesystem information is stored, only that part is raid1, if you for a example get a bad sector where metadata is stored you can lose the complete filesystem, with raid1 metadata there's still another copy if that happens, and again metadata takes so little space compared to data that it doesn't make sense to use raid0 for it, but you can if want.

Link to comment
  • mproberts changed the title to Resolved: Cache Drive Raid 0 Question

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.