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.

Cache drives problem

Featured Replies

Hi, since a couple of days i0m getting a lot of cache disk errors:

 

Jul 31 12:51:40 Home-Server kernel: BTRFS error (device nvme0n1p1): bdev /dev/nvme2n1p1 errs: wr 7566422, rd 3628509, flush 2077, corrupt 3, gen 0
Jul 31 12:51:40 Home-Server kernel: BTRFS error (device nvme0n1p1): bdev /dev/nvme2n1p1 errs: wr 7566423, rd 3628509, flush 2077, corrupt 3, gen 0
Jul 31 12:51:40 Home-Server kernel: BTRFS error (device nvme0n1p1): bdev /dev/nvme2n1p1 errs: wr 7566424, rd 3628509, flush 2077, corrupt 3, gen 0
Jul 31 12:51:40 Home-Server kernel: BTRFS error (device nvme0n1p1): bdev /dev/nvme2n1p1 errs: wr 7566425, rd 3628509, flush 2077, corrupt 3, gen 0
Jul 31 12:51:40 Home-Server kernel: BTRFS error (device nvme0n1p1): bdev /dev/nvme2n1p1 errs: wr 7566426, rd 3628509, flush 2077, corrupt 3, gen 0
Jul 31 12:51:40 Home-Server kernel: BTRFS error (device nvme0n1p1): bdev /dev/nvme2n1p1 errs: wr 7566427, rd 3628509, flush 2077, corrupt 3, gen 0
Jul 31 12:51:40 Home-Server kernel: BTRFS error (device nvme0n1p1): bdev /dev/nvme2n1p1 errs: wr 7566428, rd 3628509, flush 2077, corrupt 3, gen 0
Jul 31 12:51:40 Home-Server kernel: BTRFS error (device nvme0n1p1): bdev /dev/nvme2n1p1 errs: wr 7566429, rd 3628509, flush 2077, corrupt 3, gen 0
Jul 31 12:51:40 Home-Server kernel: BTRFS error (device nvme0n1p1): bdev /dev/nvme2n1p1 errs: wr 7566430, rd 3628509, flush 2077, corrupt 3, gen 0
Jul 31 12:51:40 Home-Server kernel: BTRFS error (device nvme0n1p1): bdev /dev/nvme2n1p1 errs: wr 7566431, rd 3628509, flush 2077, corrupt 3, gen 0
Jul 31 12:51:40 Home-Server kernel: BTRFS warning (device nvme0n1p1): lost page write due to IO error on /dev/nvme2n1p1 (-5)
Jul 31 12:51:40 Home-Server kernel: BTRFS warning (device nvme0n1p1): lost page write due to IO error on /dev/nvme2n1p1 (-5)
Jul 31 12:51:40 Home-Server kernel: BTRFS warning (device nvme0n1p1): lost page write due to IO error on /dev/nvme2n1p1 (-5)
Jul 31 12:51:40 Home-Server kernel: BTRFS error (device nvme0n1p1): error writing primary super block to device 2

 

reading the FAQ here i tried to run the btrfs stats command on the cache:

 

btrfs dev stats /mnt/cache
[/dev/nvme0n1p1].write_io_errs    0
[/dev/nvme0n1p1].read_io_errs     0
[/dev/nvme0n1p1].flush_io_errs    0
[/dev/nvme0n1p1].corruption_errs  0
[/dev/nvme0n1p1].generation_errs  0
[/dev/nvme2n1p1].write_io_errs    7566484
[/dev/nvme2n1p1].read_io_errs     3628509
[/dev/nvme2n1p1].flush_io_errs    2078
[/dev/nvme2n1p1].corruption_errs  3
[/dev/nvme2n1p1].generation_errs  0

 


Since i have two 1tb NVME cache disks (nvme0n1 and nvme2n1) and since nvme2n1 is a bit older i thought that one disk was going bad and i tried to restart the array with just the good drive. on the first restart it worked correctly but after reboot it said that the cache drive was "Unmountable: Unsupported or no file system after reboot". After that adding back the second drive seemed to have solved it... but when i start a VM the log it's flooded again with errors.

 

Now i restarted the array with just nvme0n1 and it looks ok, but i'm sure that if i restart it i'll get the Unmountable error. right now i can't get the diagnostic from unraid... the page is crashing


after the restart if i run the the btrfs stats command on the cache again i still get two drives even if one was removed:
 

btrfs dev stats /mnt/cache
[/dev/nvme0n1p1].write_io_errs    0
[/dev/nvme0n1p1].read_io_errs     0
[/dev/nvme0n1p1].flush_io_errs    0
[/dev/nvme0n1p1].corruption_errs  0
[/dev/nvme0n1p1].generation_errs  0
[/dev/nvme2n1p1].write_io_errs    7566484
[/dev/nvme2n1p1].read_io_errs     3628509
[/dev/nvme2n1p1].flush_io_errs    2078
[/dev/nvme2n1p1].corruption_errs  3
[/dev/nvme2n1p1].generation_errs  0

 

Edited by Vulneraria

  • Author

Ok the cache was just rebalancing, now the btrfs stats shows only one drive:
 

btrfs dev stats /mnt/cache
[/dev/nvme0n1p1].write_io_errs    0
[/dev/nvme0n1p1].read_io_errs     0
[/dev/nvme0n1p1].flush_io_errs    0
[/dev/nvme0n1p1].corruption_errs  0
[/dev/nvme0n1p1].generation_errs  0

 

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.