Upgraded to TrueNAS Scale and I am missing a dataset

Alright, been trying to figure this one out for a few days. I upgraded from FreeNAS to TrueNAS Scale, and in the middle of it, my old SMB Share that I had setup is now invisible on the webgui and with ZFS list. However, I can route my Plex server to the contents of that folder, but I cannot move the contents of that folder to my new SMB share. It shows up in the directory for the main pool with the dir command. When I execute a mv command, it states that the Operation is Not Permitted.

I would be lying if I said I was competent with Linux, but I can usually fudge my away around enough to fix most things.

I’d suggest you document the upgrade path you used…

Did you switch from root user to admin user?

How are the permissions set on the share?

I upgraded from FreeNAS 12.3 → TrueNAS Core → TrueNAS Scale 24.04.
Access was under my private user name previously, but now the share doesn’t show up at all. I am logged in as root on the TrueNAS Server, and I have added root as a user to the previous private user group, which didn’t help.

The permissions on the share were setup for anyone previously (But I explicitly setup a user account to log into the share), but now I cannot see the share, the dataset, or anything else associated with it in the dataset tabs, but all of the files are visible in the shell, and if I try to create a new dataset with the same name, it errors indicating that there is already a dataset with that name.

On SCALE we recommend having an admin user not root.

You can try the AI docs assistant.

That is very fair, and I’ll look into that. However, why can’t I see the dataset in the UI logged in with root?

Don’t know… without the detailed settings it’s a mystery.

Options would be create a new dataset… copy the files.
Export and re-import the pool…
Do both…
Going back to CORE 13.x and checking the setting is ugly but possible.

I tried creating a new dataset and copying the files, but I get an error for operation not permitted, which from what I can tell is built in protection by design for copying the files with the shell?

Were you logged in a s root or admin?

Root. Also, I found executing “cp -r /mnt/MainBackupKill/ Dir Name /mnt/MainBackup/SMB_Share && rm /mnt/MainBackupKill/ Dir Name” copied ~ 150GB of the 2.5TB of data to the new share, but doesn’t give me any errors in the shell, and it seemed to pick and choose what files to copy.

Was this dataset encrypted in FreeNAS before upgrading?

It shouldn’t have been encrypted, honestly, I set it up 4-5 years ago, and don’t remember specifics. I don’t think it was encrypted, because as I said, I can browse the files in shell, and I can verify everything is there, I just can’t access it anymore via a share, or see the dataset in the GUI. I’m fine with copying the data from the directory into a new share, since I don’t care about preserving permissions, but executing those commands from shell, I only managed to get ~150GB/2.5TB into the new share.

Perhaps its only accessible to Plex user…

Probably not the best solution, but I found a way to extract the data. cp && rm on the folder. The reason it was only getting ~150GB was due to the session timing out. Altered the session T/O and I was able to extract all of my data one folder at to prevent the disk from becoming over full.

1 Like