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 issue with /mnt/cache. Docker dead. Please help.

Featured Replies

Not sure what my first step should be here. Here's a snip of the errors.

 

Dec 19 07:18:00 Truffle kernel: BTRFS error (device nvme0n1p1): Unsupported V0 extent filesystem detected. Aborting. Please re-create your filesystem with a newer kernel
Dec 19 07:18:00 Truffle kernel: BTRFS: error (device nvme0n1p1) in print_extent_item:96: errno=-22 unknown
Dec 19 07:18:00 Truffle kernel: WARNING: CPU: 0 PID: 5745 at fs/btrfs/print-tree.c:166 btrfs_print_leaf+0x5de/0x99e
Dec 19 07:18:00 Truffle kernel: CPU: 0 PID: 5745 Comm: btrfs-transacti Not tainted 5.19.17-Unraid #2
Dec 19 07:18:00 Truffle kernel: Call Trace:
Dec 19 07:18:00 Truffle kernel: BTRFS error (device nvme0n1p1: state E): block=8761425575936 write time tree block corruption detected

 

truffle-diagnostics-20221219-0858.zip

  • Community Expert

Never seen that error before, suggest backing up and recreating the filesystem.

  • Author

Not sure if you saw it, but it (thankfully) just happened after a backup. So the solution is to just reformat it (and wipe everything I assume)? What's weird is that while I can't see any files, some Docker containers *are* running.

 

edit: And if I have to wipe it, what does that process look like?

Edited by flyize

  • Community Expert
2 minutes ago, flyize said:

after a backup

Did you backup the whole drive to the array or what?

 

You must disable Docker and VM Manager in Settings until you get your pool fixed.

  • Author
Just now, trurl said:

Did you backup the whole drive to the array or what?

 

You must disable Docker and VM Manager in Settings until you get your pool fixed.

I used the (new) CA appdata backup tool, as appdata is the only thing on that drive.

  • Author

Hmmm, I rebooted the server and everything seems back to normal. What do I need to check to verify the integrity of that drive?

  • Community Expert

You can do a read-only check, but even if nothing is detected it might happen again.

  • Author

Do we know what 'it' possibly is?

  • Author

Actually ran a read-only check and got this back. Should I run a repair? If it matters, its only a single drive.

 

root 5 inode 4863356 errors 200, dir isize wrong
root 5 inode 259419657 errors 1, no inode item
	unresolved ref dir 4863356 index 3495 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 259419732 errors 1, no inode item
	unresolved ref dir 4863356 index 3501 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 259419798 errors 1, no inode item
	unresolved ref dir 4863356 index 3507 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 259419823 errors 1, no inode item
	unresolved ref dir 4863356 index 3510 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 259419861 errors 1, no inode item
	unresolved ref dir 4863356 index 3513 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 259419922 errors 1, no inode item
	unresolved ref dir 4863356 index 3519 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 259419960 errors 1, no inode item
	unresolved ref dir 4863356 index 3525 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 259420005 errors 1, no inode item
	unresolved ref dir 4863356 index 3531 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 259420011 errors 1, no inode item
	unresolved ref dir 4863356 index 3537 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 259420018 errors 1, no inode item
	unresolved ref dir 4863356 index 3543 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 259420022 errors 1, no inode item
	unresolved ref dir 4863356 index 3549 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 259420031 errors 1, no inode item
	unresolved ref dir 4863356 index 3555 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 259420130 errors 1, no inode item
	unresolved ref dir 4863356 index 3573 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 264036884 errors 1, no inode item
	unresolved ref dir 4863356 index 11666 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
root 5 inode 264036930 errors 1, no inode item
	unresolved ref dir 4863356 index 11696 namelen 15 name tautulli.db-wal filetype 1 errors 5, no dir item, no inode ref
ERROR: errors found in fs roots

 

  • Community Expert

Did you reformat?

  • Author

No, just reboot.

  • Community Expert

If you have already copied anything important from the disk simpler to just reformat.

  • Author

So this drive only contains appdata and *appears* to be working fine. I ran a scrub, which completed without errors. Just to confirm, you're suggesting:

 

  • Shut down VMs and Docker
  • Move everything off
  • Reformat the drive
  • Move everything back
  • Restart VMs and Docker

Is there any way to figure out what happened and/or verify that the drive is actually okay?

  • Community Expert

Check filesystem is showing corruption? I don't think repair is recommended on btrfs.

 

  • Author

If it matters, the unmountable issue was resolved with a reboot. The server is up and running now without any obvious issue or errors (other than the reiserfsck error listed above).

  • Community Expert
1 minute ago, flyize said:

reiserfsck error

Why are you talking about reiserfs? None of your disks are reiserfs. I thought we were discussing btrfs disk.

 

How exactly did you check filesystem?

  • Author
1 minute ago, trurl said:

Why are you talking about reiserfs? None of your disks are reiserfs. I thought we were discussing btrfs disk.

 

How exactly did you check filesystem?

Apologies for my confusion. The drive is btrfs, and I used the command in the WebGUI with the default --readonly (IIRC) flag.

  • Community Expert

Due to all the fs errors recommend reformatting, or you will likely run into issues again soon.

  • Author

Is there a simple 'reformat' command or should I change to XFS then change back?

  • Community Expert

You can wipe the device with

blkdiscard -f /dev/nvme0n1

Then start array and format

  • Author

That seemed to work perfectly. However, the server crashed again this morning. Running a memtest. Anything else you guys think I should look at?

 

Thank you so much for all the help so far!

  • Community Expert
1 hour ago, flyize said:

Running a memtest

That's a good place to start.

  • Author

memtest worked fine. And as a refresher, I moved everything off, reformatted, put everything back. It still crashed this morning. After the memtest passed I recreated the docker.img. Then I ran a scrub of /mnt/cache and see this:

 

Dec 20 14:45:20 Truffle kernel: BTRFS warning (device nvme1n1p1): csum failed root 5 ino 18511597 off 102273024 csum 0x9cd7e7f9 expected csum 0x00000000 mirror 1
Dec 20 14:45:20 Truffle kernel: BTRFS error (device nvme1n1p1): bdev /dev/nvme1n1p1 errs: wr 0, rd 0, flush 0, corrupt 1, gen 0
Dec 20 14:45:20 Truffle kernel: BTRFS warning (device nvme1n1p1): csum failed root 5 ino 18511597 off 102273024 csum 0x9cd7e7f9 expected csum 0x00000000 mirror 1
Dec 20 14:45:20 Truffle kernel: BTRFS error (device nvme1n1p1): bdev /dev/nvme1n1p1 errs: wr 0, rd 0, flush 0, corrupt 2, gen 0
Dec 20 14:45:20 Truffle kernel: BTRFS warning (device nvme1n1p1): csum failed root 5 ino 18511597 off 102273024 csum 0x9cd7e7f9 expected csum 0x00000000 mirror 1
Dec 20 14:45:20 Truffle kernel: BTRFS error (device nvme1n1p1): bdev /dev/nvme1n1p1 errs: wr 0, rd 0, flush 0, corrupt 3, gen 0
Dec 20 14:45:20 Truffle kernel: BTRFS warning (device nvme1n1p1): csum failed root 5 ino 18511597 off 102273024 csum 0x9cd7e7f9 expected csum 0x00000000 mirror 1
Dec 20 14:45:20 Truffle kernel: BTRFS error (device nvme1n1p1): bdev /dev/nvme1n1p1 errs: wr 0, rd 0, flush 0, corrupt 4, gen 0
Dec 20 14:45:20 Truffle kernel: BTRFS warning (device nvme1n1p1): csum failed root 5 ino 18511597 off 102273024 csum 0x9cd7e7f9 expected csum 0x00000000 mirror 1
Dec 20 14:45:20 Truffle kernel: BTRFS error (device nvme1n1p1): bdev /dev/nvme1n1p1 errs: wr 0, rd 0, flush 0, corrupt 5, gen 0

 

Suggestions?

 

edit: Note that nvme1n1p1 is a different drive than we were talking about above.

Edited by flyize

  • Community Expert

Still suggests memory issues. Run memtest overnight.

  • Author

I assume it just keeps running even after it shows PASSED?

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.