Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

BTRFS Error - read time tree block corruption detected on logical

Featured Replies

Hi,

 

I have the following Prob:

I got the following messages in my Syslog:
 

Jan 9 11:11:40 Heim-Serv kernel: BTRFS critical (device md5p1): corrupt leaf: root=18446744073709551610 block=153714688 slot=0, unexpected item end, have 961822619 expect 16283 Jan 9 11:11:40 Heim-Serv kernel: BTRFS error (device md5p1): read time tree block corruption detected on logical 153714688 mirror 1 Jan 9 11:11:40 Heim-Serv kernel: BTRFS critical (device md5p1): corrupt leaf: root=18446744073709551610 block=153714688 slot=0, unexpected item end, have 961822619 expect 16283 Jan 9 11:11:40 Heim-Serv kernel: BTRFS error (device md5p1): read time tree block corruption detected on logical 153714688 mirror 2 Jan 9 11:11:40 Heim-Serv kernel: BTRFS critical (device md5p1): corrupt leaf: root=18446744073709551610 block=153714688 slot=0, unexpected item end, have 961822619 expect 16283 Jan 9 11:11:40 Heim-Serv kernel: BTRFS error (device md5p1): read time tree block corruption detected on logical 153714688 mirror 1 Jan 9 11:11:40 Heim-Serv kernel: BTRFS critical (device md5p1): corrupt leaf: root=18446744073709551610 block=153714688 slot=0, unexpected item end, have 961822619 expect 16283 Jan 9 11:11:40 Heim-Serv kernel: BTRFS error (device md5p1): read time tree block corruption detected on logical 153714688 mirror 2 Jan 9 11:11:40 Heim-Serv kernel: BTRFS critical (device md5p1): corrupt leaf: root=18446744073709551610 block=153714688 slot=0, unexpected item end, have 961822619 expect 16283 Jan 9 11:11:40 Heim-Serv kernel: BTRFS error (device md5p1): read time tree block corruption detected on logical 153714688 mirror 1

 

After this I changed the HDD to a new one (and new sata cable) ... made a rebuild with the array ...

But after this I still get these errors and additionally, I'm unable to delete datas from this HDD.

I won't believe, that both HDDs will have the same errors ....

 

The btrfs scrub was not successful ..
image.png.fce177b6a9343aaf46bec43931f86d2a.png

 

What could I do to fix this?

 

Best portboy

 

 

  • Community Expert

There are other issues with the filesystem besides data corruption, recommend backing up what you can and reformatting that disk, if you still have the old disk intact, save it for now, in case it's in better shape, though possibly, and if parity was 100% in sync, will be the same.

  • Author

I had already done that. 
I replaced the faulty disk with another one.
I formatted this disk and had the data written back via the array. Nevertheless, the errors reappear and the new drive behaves identically to the old drive.
I still have the old disk and keep it as a backup.

Do you mean I should remove the new disk, format it and mount it again?

  • Community Expert

Rebuilding the disk does not format it, do you mean you rebuilt and then formatted?

  • Author

What I have done ...

1. HDD with the errors was removed
2. new HDD was connected to another SATA slot with a new cable.
3. new HDD was formatted with BTRFS.
4. new HDD was integrated in the array.
5. data was restored via the Array.
6. BTRFS error occurs again 
7. I'm lost ...

  • Community Expert

I'm sorry but it's still not cleat to me if the new disk was just rebuilt, or rebuilt and formatted, did you press the "Format" button at any point after the rebuild?

 

 

  • Author

I hit the "Format" button before the rebuild.

Otherwise I was not able to bind the New HDD and start the rebuild.

  • Community Expert
1 hour ago, portboy said:

I hit the "Format" button before the rebuild.

Otherwise I was not able to bind the New HDD and start the rebuild.

That would have formatted the emulated disk creating an empty file system, so the rebuild would just be rebuilding an empty disk.    When you tried to format you would have gotten a dialog telling you to NOT format the drive if you are attempting to recover data unless you are happy to lose the drive contents.

  • Community Expert
12 hours ago, portboy said:

Otherwise I was not able to bind the New HDD and start the rebuild.

That doesn't make sense, was the format done outside the array or with the device assigned using the GUI?

  • Author

I feel like we're not on the same page. Or maybe I've been misunderstanding the concept of UNRAID for years.

Here's what happened: The log showed BTRFS errors for my Disk5. I stopped the whole UNRAUD machine. I then added a new HDD. After starting UNRAID, I stopped the array. Next, I formatted the new HDD via the GUI and placed it as a replacement for the faulty HDD in the Disk5 slot. When formatting and inserting it into the array, I was warned that all existing data on the HDD would be erased. After starting the array, UNRAID began rebuilding the data on Disk5.

This has always been my understanding of UNRAID. I can simply swap out defective HDDs, and the data is restored via the parity disk.

Could it be that I've misunderstood "rebuild"? By "rebuild", do you mean the installation of the HDD? My English isn't very strong. If that's the case, then I installed the HDD first and formatted it through the UNRAID interface.

Yes, the new HDD was also a used one, but it had been running error-free until now.

So, I'm still puzzled as to why I would have the same BTRFS errors on both disks...

  • Community Expert

I suspect that you formatted the disk and then rebuilt, negating the format, instead of rebuilding, just backup all data on that disk, then format it, then restore the data.

  • Author

So I made id ... format the disc and restart the array ... 

wtf ... all shares which are stored on this disc were gone 😮☠️

So no restore availible ... how can this done ....

I started a parity check (with unchecked "write corrections to parity")

  • Community Expert
On 1/10/2025 at 9:32 AM, JorgeB said:

just backup all data on that disk, then format it

 

  • Author

I made the backup, so no worry ... but how can this be done .... how can the array forget all shares ... 

I thoght the Unraid System is ... ok not a real raid system .. but it's likely in that direction ... but now it's not more than a single Harddrive ....

  • Community Expert
7 minutes ago, portboy said:

I made the backup, so no worry ... but how can this be done .... how can the array forget all shares ... 

all shares are represented by a top level folder on any array drive or pool.    If you delete that folder everywhere then the share will ‘disappear’.   Recreate the folder and the share will ‘reappear’

  • Author

the shares came back ... but without datas to recover ... it's all empty

  • Community Expert
19 minutes ago, portboy said:

the shares came back ... but without datas to recover ... it's all empty

If you formatted a drive/pool then any data on it will be lost.

  • Author

When I halt the array and remove the drive, then format it and reassign it to the same slot, it feels like I'm installing a new drive. I assumed UNRAID would recreate the missing directories. That's how it worked flawlessly during the last drive swap. Why isn't it working this time? Is it because I reinserted the same drive but empty? Apologies if I sound clueless... but I just don't get UNRAID's logic here. 🤷‍♂️

  • Community Expert
1 hour ago, portboy said:

When I halt the array and remove the drive, then format it and reassign it to the same slot,

How did you format the drive?   It sounds as if you formatted the emulated drive, not the physical one.   It should never be necessary to format a drive that is going to be rebuilt (and the format should have shown a dialog to this effect) as the rebuild overwrites everything on the physical drive.

  • Author

image.thumb.png.bd84138dec254d27b9bee600aa6c40ec.png

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.