April 26, 20251 yr Hi, Due to bad connection of USB port to motherboard, my pendrive got corrupted and after recovering it, my Cache pool and Vms-apps pool shows "Unmountable: Bad or No System File System". Please, can you help me recover them? I've attached the diagnostic file. matrix-diagnostics-20250426-1751.zip
April 28, 20251 yr Community Expert First pool is corrupt: Apr 26 17:44:31 Matrix kernel: BTRFS error (device sdb1): bad tree block start, mirror 2 want 23461888 have 0 You can try the recovery option here. Second one doesn't have a valid btrfs filesystem, post the output from: blkid and fdisk -l /dev/nvme01
April 28, 20251 yr Author This is the ouput of blkid: I understand that the execution of the other command is on nvme0n1. If so, the result is:
April 28, 20251 yr Community Expert The NVMe device doesn't even have a partition, any idea how that happen? Post the same output for the other NVMe device.
April 28, 20251 yr Author I have no idea. I think I'll have to give up on the partition and regenerate it. The result for the other NVME is the same:
April 29, 20251 yr Community Expert Sorry for the delay but was without power almost all day yesterday, if just the partiion was deleted it may still be able to recover the pool, type: sfdisk /dev/nvme0n1 then type 2048 and hit enter, then capture and post the output, don't type anything else
April 29, 20251 yr Author Don't worry, I was in the same situation. This is the output from the command execution, and I need to know what do I need to answer to the question it asks me: Edited April 29, 20251 yr by javierpm
April 29, 20251 yr Community Expert Type N to keep the signature, then type write and enter to save the changes. Do the same thing for the other nvme device, and if it also finds a signature keep it and write, after that post the output from btrfs fi show
April 29, 20251 yr Community Expert Try restarting the array now to see if the second pool mounts, if it doesn't, post new diags.
April 29, 20251 yr Author I have restarted the array and then tried restarting the server but unfortunately, I still can't mount it (I haven't done anything with the cache pool yet). Here are the new diagnostics: matrix-diagnostics-20250429-1314.zip Edited April 29, 20251 yr by javierpm
April 29, 20251 yr Community Expert The second pool has similar corruptions as the other one: Apr 29 13:12:11 Matrix kernel: BTRFS error (device nvme1n1p1): bad tree block start, mirror 2 want 24068096 have 0 Apr 29 13:12:11 Matrix kernel: BTRFS error (device nvme1n1p1): bad tree block start, mirror 1 want 24068096 have 0 So it wasn't just the partitions that were deleted, looks like some metadata was deleted in both devices (have 0 means it's not finding the tree locations it's looking for), you can also try the recovery options I posted before for the 1st pool
April 30, 20251 yr Author Finally I had to use the option to use BTRFS check --repair, and it's been going on for about 2 hours now: Edited April 30, 20251 yr by javierpm
April 30, 20251 yr Author So should I wait or cancel and delete the storage pools? I don't see it going past the point of "opening filesystem to check".
April 30, 20251 yr Author No. This are the las lines: Apr 30 11:01:40 Matrix ool www[441601]: /usr/local/emhttp/plugins/dynamix/scripts/btrfs_check 'start' '/dev/sdb1' 'KINGSTON_SA400S37480G_50026B73828C0015' '--repair' Apr 30 11:14:41 Matrix flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup update Apr 30 11:32:48 Matrix ool www[771838]: /usr/local/emhttp/plugins/dynamix/scripts/btrfs_check 'start' '/dev/nvme0n1p1' 'Samsung_SSD_980_1TB_S649NL0WA02420T' '--repair' Edited April 30, 20251 yr by javierpm
April 30, 20251 yr Community Expert I doubt it's doing anything, try rebooting, then running that command on the CLI: btrfs check --repair /dev/sdb1 or btrfs check --repair /dev/nvme0n1p1 Depending on with pool you are running it, you just need to run it on one of the pool devices.
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.