Jump to content

What to do next? - Corrupt BTRFS Raid1 Cache Pool


Go to solution Solved by JorgeB,

Recommended Posts

  • Solution

This shows that one of the NVMe devices dropped offline in the past

 

May  6 09:47:03 Sunshine kernel: BTRFS info (device nvme0n1p1): bdev /dev/nvme1n1p1 errs: wr 25028584, rd 1469323, flush 64083, corrupt 119757, gen 0

 

A scrub should correct this, but you have at least one share set to NOCOW, this is a problem, recommend saving what you can from the pool and then recreate, with all shares set to COW, also see here for more info.

Link to comment

Thanks @JorgeB, a short time ago I realised the data on the pool was lost. Thankfully I did actually have recent backups.

I've just finished restoring everything, sans one of the nvme's which I think is dead.

 

It is my "Domains" share that is set to NOCOW because, as per the Unraid GUI help it says "We recommend this setting for shares used to store vdisk images, including the Docker loopback image file. This setting has no effect on non-btrfs file systems."


As my domains share is used solely for vdisks, I presumed this was the right approach?

Should I set it back to Auto? And if so, would I need to empty the share, recreate it and copy files back so they inherit the COW attribute? 

Link to comment
46 minutes ago, Congles said:

It is my "Domains" share that is set to NOCOW because, as per the Unraid GUI help it says "We recommend this setting for shares used to store vdisk images, including the Docker loopback image file. This setting has no effect on non-btrfs file systems."

NOCOW should only be used with single device btrfs filesystem, for raid1 always use COW, it might have a small performance inpact but it won't corrupt the pool if a devices drops and comes back.

Link to comment

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.

×
×
  • Create New...