May 4May 4 OK, I might have screwed myself here, I tried to figure things out on my own, have done a few reboots, followed some commands from other threads, may or may not be boned but I'm shooting up the signal flare for help hereUnraid 6.12.6, been pretty rock solid until nowLong story short I have direct passthrough of 2 SSD's to my VM and it was giving me IO errors (disk has a smart warning, was in the process of starting to empty it to replace it but just started getting a ton of IO errors) so I figured a reboot of the VM might help. Rebooted the VM and the disk vanished, I still saw it in my unassigned devices (that's how it's mapped in to the VM) so I just rebooted the whole unraid box thinking maybe something would come back after a reboot.On reboot nothing worked and it was because my cache was shown as unsupported or no file system. Here's where I might have screwed myself. I tried to start stop, nothing, unassign and reassign, no dice. Now when I try to assign the second disk back its saying all will be wiped. Unfortunately my dumb a$$ didn't screenshot settings so I don't remember exactly which disk combo it was and what the exact order it was. I know one of them was the Micron 2TB (currently showing sdk) and the other was one of my 2 NVME drives, plan was eventually to get them both on NVME and get rid of the Micron but I didn't get to swapping out the last Micron yet, was still in use. NVME drives were fine from a zpool in another unraid box I got rid of previously so they should be good and pass the smart tests fine. I can't remember which one I had in there, and in what order, and now when I try to put them in it warns me whatever goes in slot 2 will be wipedTried running this from other posts, didn't work on either NVME drive or the Micron for that matterroot@UNRAIDMAIN:~# btrfs rescue zero-log /dev/nvme1n1No valid Btrfs found on /dev/nvme1n1ERROR: could not open ctreeroot@UNRAIDMAIN:~# btrfs rescue zero-log /dev/nvme0n1No valid Btrfs found on /dev/nvme0n1ERROR: could not open ctreeroot@UNRAIDMAIN:~# btrfs rescue zero-log /dev/sdkNo valid Btrfs found on /dev/sdkERROR: could not open ctreeroot@UNRAIDMAIN:~# mount -o degraded,rescue=all,ro /dev/nvme0n1 /tempmount: /temp: wrong fs type, bad option, bad superblock on /dev/nvme0n1, missing codepage or helper program, or other error.dmesg(1) may have more information after failed mount system call.root@UNRAIDMAIN:~# mount -o degraded,rescue=all,ro /dev/nvme1n1 /tempmount: /temp: wrong fs type, bad option, bad superblock on /dev/nvme1n1, missing codepage or helper program, or other error.dmesg(1) may have more information after failed mount system call.root@UNRAIDMAIN:~# mount -o degraded,rescue=all,ro /dev/sdk /tempmount: /temp: wrong fs type, bad option, bad superblock on /dev/sdk, missing codepage or helper program, or other error.dmesg(1) may have more information after failed mount system call.Have I screwed myself here? Any chance I could fix this, copy off my data, and then format back to a fresh start on the pair of NVME's? Like I said I have rebooted a couple times hoping that would help, followed other threads but nothing worked so far, didn't find the thread saying don't reboot until well after I already had lolunraidmain-diagnostics-20260503-2204.zip Edited May 4May 4 by Vaulter98c
May 4May 4 Author for reference the 1 TB WD Blue SSD (not getting a disk identifier right now for some reason) is the one that I knew had smart errors, that and the 2 TB TEAM SSD (sdl) are the ones passed into the VM so I know it wasn't one of those 2 for cache, I can fight with those later but main priority would be getting cache back so maybe I can save the VM and the one good disk and still dump all that data, plus all my dockersThe 8x 8 TB drives in the main array seem to be fine and unaffected as far as I can tell, all shares on that are good and still work, it's only my cache that seems to be the issue
May 4May 4 Author I get no output from that command whether the array is running or not , that can't be good lol
May 4May 4 Community Expert It's not a good sign, but it may still be recoverable. For all pool members, post the output fromfdisk -l /dev/sdX (or /dev/nvmeXn0)blkid /dev/sdX1 (or /dev/nvmeXn0p1)
May 4May 4 Author root@UNRAIDMAIN:~# fdisk -l /dev/sdkDisk /dev/sdk: 1.86 TiB, 2048408248320 bytes, 4000797360 sectorsDisk model: Micron_1100_MTFDUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesroot@UNRAIDMAIN:~# fdisk -l /dev/nvme0n1Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectorsDisk model: SPCC M.2 PCIe SSD Units: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesroot@UNRAIDMAIN:~# fdisk -l /dev/nvme1n1Disk /dev/nvme1n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectorsDisk model: SPCC M.2 PCIe SSD Units: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesroot@UNRAIDMAIN:~# blkid /dev/sdkroot@UNRAIDMAIN:~# blkid /dev/nvme0n1root@UNRAIDMAIN:~# blkid /dev/nvme1n1Nothing comes from those bottom 3Currently the Micron (sdk) is the one sitting in the pool configAbove commands were done with arrays started, get the same info with it not running, still no output from that second set of commands
May 4May 4 Community Expert Solution None of the drives has a partition. Any idea how that happened?Type sfdisk /dev/sdk, then type 2048 and hit enter and post the result; don't type anything else for now.
May 4May 4 Author No clue, VM was getting IO issues as I tried to empty that passed through disk, thought a reboot might help, then nothing was showing on those cache drives after the reboot. only changes I ever made was assigning and unassigning disks trying to get them to pop back in, never formatted or wiped anything, only other commands I tried were the above ones in my OP. Never seen unraid act like this before over the years (on my 3rd unraid box now), I'm no linux guru but this one obviously stumped me lolroot@UNRAIDMAIN:~# fdisk /dev/sdkWelcome to fdisk (util-linux 2.38.1).Changes will remain in memory only, until you decide to write them.Be careful before using the write command.Device does not contain a recognized partition table.Created a new DOS disklabel with disk identifier 0x3d49aff2.Command (m for help): 20482: unknown command
May 4May 4 Community Expert 5 minutes ago, Vaulter98c said:fdisk /dev/sdkIt's not fdisk56 minutes ago, JorgeB said:Type sfdisk /dev/sdk, then type 2048 and hit enter and post the result; don't type anything else for now.
May 4May 4 Author right... sorry fighting the Monday BS at work lolroot@UNRAIDMAIN:~# sfdisk /dev/sdkWelcome to sfdisk (util-linux 2.38.1).Changes will remain in memory only, until you decide to write them.Be careful before using the write command.Checking that no-one is using this disk right now ... OKDisk /dev/sdk: 1.86 TiB, 2048408248320 bytes, 4000797360 sectorsDisk model: Micron_1100_MTFDUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytessfdisk is going to create a new 'dos' disk label.Use 'label: <name>' before you define a first partitionto override the default.Type 'help' to get more information.>>> 2048Created a new DOS disklabel with disk identifier 0x95cf08d3.Created a new partition 1 of type 'Linux' and of size 1.9 TiB.Partition #1 contains a btrfs signature.Do you want to remove the signature? [Y]es/[N]o:
May 4May 4 Community Expert Type N and enter to keep the signature, then type write and enter and post a new output from btrfs fi show
May 4May 4 Author Do you want to remove the signature? [Y]es/[N]o: n /dev/sdk1 : 2048 4000797359 (1.9T) Linux/dev/sdk2: writeNew situation:Disklabel type: dosDisk identifier: 0x95cf08d3Device Boot Start End Sectors Size Id Type/dev/sdk1 2048 4000797359 4000795312 1.9T 83 LinuxThe partition table has been altered.Calling ioctl() to re-read partition table.Syncing disks.root@UNRAIDMAIN:~# btrfs fi showwarning, device 2 is missingLabel: none uuid: 45e8152a-9352-4226-a1c2-776cc68d5c45 Total devices 2 FS bytes used 251.08GiB devid 1 size 1.86TiB used 286.03GiB path /dev/sdk1 *** Some devices missinghey looks like we're moving somewhere, want me to start the array again now?
May 5May 5 Community Expert If the pool was redundant (raid1), you can see if it can be imported with just that device. If it wasn't redundant, we can try to find the other member.
May 5May 5 Author it was setup as raid1, started the array and it looks like I'm back in business, or at least the cache mounts and I can see my crap again so I'm like 99% the way there barring any other disk issues, way better than I was before!Since it was setup as raid 1 though before, and the 2 TB micron has some smart warnings now (maybe what triggered this all?), what would you suggest as the best way to migrate over to dual NVME's and just get rid of the Micron all together?A) Should I add one of the NVME's, let it wipe then rebuild the raid, then pull the micron and repeat with the other nvme until it's rebuilt again on 2x NVME?B) Or should I just manually back it up (doing that right now anyways - appdata, domain, system), pull the micron, start both NVME's together as a fresh and wiped new start, and copy the backups back, leaving the MIcron as sort of an offline back at that point?
May 5May 5 Author diags, not sure if usage shows in these but I'm currently copying out my appdata so if you see higher than idle thats why unraidmain-diagnostics-20260505-0948.zip
May 5May 5 Community Expert The pool has been converted to single, so you can just stop the array, add a second device, and it should create a mirror.Also recommend upgrading Unraid; you are on a very old release.
May 5May 5 Author Did the mirror and then re-mirrored again to get both NVME's in play and finally pull the last Micron out, seems to have solved everything cache related now and I just need to figure out my passthrough issue I was having but that's not related, I should be able to handle that as worst case I can just pull that entirely and recover manually if neededAlso did push the latest update, I was hesitant on 7 for the longest time from horror stories I saw in the start of 7, but now that I have manual copies of all my stuff even if something goes wrong I can recover now at least. Guess I need to look into good ways to automate backups of my cache but that's it's own rabbit hole I guessSent ya a couple bucks for the trouble, saved me from having to start over from scratch so next drink is on me! Thanks man!
May 6May 6 Community Expert 7 hours ago, Vaulter98c said:Guess I need to look into good ways to automate backups of my cache but that's it's own rabbit hole I guessTypically the Appdata Backup and VM Backup plugins are used for this purpose. If you have special requirements these do not meet then a custom script run via User Scripts plugin would be the way to go.
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.