I don't understand what happened
Soooo I had an interesting thing happen over the weekend. On Thursday when I was checking things on the server I heard one of the drives clicking obvious sign of a drive going bad. I decided that It was probably a good idea to replace said drive. I have an array of 10 drives and 1 parity drive.
I figured this would not be a big deal. I have replaced drives in the past with no issues. So I stop the array, shut down the server, pull the drive making the bad noise out and swap in a fresh drive into the slot. I boot up the server and once in Unraid I go ahead and assign the new drive. Boom Bobs your uncle.
I let the drive rebuild, takes about a day and half and then I start to check to make sure everything is cool. I noticed that some of the shows I was watching are no longer available. So I start taking a look and sure enough there are a bunch of TV shows that I had that are no longer on the drives, same goes for the movies. I open Sonarr, and Radarr and sure enough there is a TON of media missing that Sonarr and Radarr is now re-downloading.
I don't understand what happened of why the media was lost, it was all there prior to the disc being replaced as I check my Sonarr on a daily basis since sometimes my show rules will not download something so I have to manually go hunt it down. So yeah I am not sure what happened here. Still don't know what else is missing since I didn't have every single show in my library in Sonarr or every movie in Radarr. I may have to pull a backup of my plex data and compare to see what I am missing.
Anyway if anyone has any idea as to what may have happened chime in.
**EDIT** Okay so the issue most likely stems from the bad drive not going into emulated mode. The proper steps to replacing a drive according to Unraid:
- Run a parity check and ensure there are zero errors. If parity isn't valid, rebuilding the disk will corrupt its file system.
- Stop the array.
- Unassign the target disk.
- Start the array. Unraid emulates the missing disk using the existing parity and data disks. You have two modes to choose from:
- Maintenance Mode - Prevents any writes to the emulated disk
- Normal Mode - Allows read/write access to the emulated disk
- Stop the array again.
- Assign the replacement disk to the vacant slot.
- Start the array to begin the rebuild. Unraid rebuilds the contents onto the new disk, and the file system automatically adjusts to the larger disk's capacity.
The step I never did was unassign the drive so it goes into emulated mode. Which is interesting as in the past I have replaced drives without doing this step and everything worked. But I will make a note of this and follow the proper steps from here on out.