Folder is gone after resilver

Please be gentle I am a n00b. I replaced a drive going from a 2tb to 4tb. I have a folder for my Jellyfin with kids shows and noticed after the resilver that the “Paw Patrol” folder is gone. I realize now that I failed to hit “Offline” on the old 2tb drive before hitting “Replace”, this might be nothing. Before I try anything and make it worse, Is there any way of recovering this folder?

With supported hot swap? Perfectly fine.


There is not enough information.

Are you referring to a folder or dataset?

How did you determine the “folder” is missing? Through Jellyfin? The TrueNAS GUI? Browsing the SMB share with Windows?

Have you upgraded Jellyfin recently? Did you make changes to users, permissions, or ownerships recently?


You’ll need to share information about your server, pool, and datasets.

For starters:

zpool status -v <poolname>

zpool list -v <poolname>

zfs list -r -t filesystem <poolname>
1 Like

I tried entering those commands into the “Shell” and I get a command not found error.

I found out that the folder was gone when my daughter asked to play the show last night and the show was no longer in Jellyfin. The Jellyfin folder is also an SMB and I connected to it on my file explorer and navigated to Jellyfin/Kids Shows/ and “Paw Patrol” is gone, but the other shows seem to still be there. I can’t confirm that any other folders were removed, there are quite a few this is a show that is watched often so it was noticed right away.

The only change I made was replacing this drive and once the resilver was done I noticed this folder was gone. I didn’t update Jellyfin or change any permissions or users. We were watching this show the day before the drive was replaced as well.

I don’t know if I am referring to a folder or a dataset. Under “Dataset” on the online GUI I have a dataset called “mynas” and folders(?) under it, one of which is “Jellyfin”. And the Jellyfin app references this folder as it’s “/Media” folder

At a guess it sounds like a folder.

Have you run a scrub since the resilver and if so what were the results?

Have you taken regular snapshots? If so the folder is probably recoverable.

Thank you both for the quick replies. Yes, I do have a snapshot task that runs at midnight. I guess the process would be, I need to back up anything that I have recorded OTA since replacing the drive and then “Rollback” to the snapshot from before the drive was installed?

You can do that - or you can expose the .zfs directory which contains (amongst other things) read-only access to the snapshot, and then find the folder in one of the snapshots and from the command line do a cp from that snapshot to where you want it to be.

Hopefully this will use block cloning and not even use any extra disk space.

That would be nice. My google-fo must be insufficient, how would I do this?

Oh wait, I just cd .zfs.Ok, so I guess I didn’t set the snapshots up correctly? I have snapshots of /mnt/mynas. And the /mnt/mynas/.zfs/snapshot/auto-2025-02-06_00-00/Jellyfin folder is empty in the snapshots…

Looks like the recursive option was set to false. :frowning:

Am I out of options? Can I reverse the replaced drive?

I have no idea why the folder disappeared but resilvering probably wasn’t the cause.

If your snapshots were set incorrectly then you are probably out of options.

Just download the PawPatrol shows from t’internet again.

Is it totally out of the realm of possibility that someone with access just removed it? Presumably by accident?

Haha yeah it’s a bunch of DVDs in the closet but same idea. Thank you again for the help.

Maybe. But I also found out that another show “Bluey” is missing. So I have a feeling that the drive I put in the NAS is bad and I should replace it.

I think this is a Jellyfin or file-based issue. The missing folders is too specific.

Unless restricted, you can delete media from the Jellyfin app.

2 Likes

I just also have this error in the top corner since installing the drive.

CRITICAL

Device: /dev/sdg [SAT], 64 Currently unreadable (pending) sectors.

I feel silly. The folders are there, I must have been blind to them because Jellyfin wasn’t finding them.

You guys are right, Jellyfin isn’t finding these specific shows for some reason. But at least they are still there. Thank you for your help.

Good to hear that you found the folders, that suggests it may just be down to permissions/ACLs.

Nonetheless, this is a warning sign. Whatever drive corresponded to that device name when the error was triggered is not in a good state.

Device names can and do change between reboots, so always verify you’re looking at the right drive before you do anything to it, like pull it to replace.

1 Like