ZFS volume empty after upgrade to Scale

mijohnst

Cadet
Joined
Mar 5, 2022
Messages
7
Hey all! Hoping someone help me see what I might have done wrong.

I've been using Core for about a month and decided to upgrade to Scale today. The upgrade went fine and everything came back up except my Plex add-on. I didn't think anything of it and started a new App from Scale to start a new Plex server. I got the app up but when I pointed my new Plex server to the volume on ZFS, all my media is gone. This is the only volume that this happened to. All the other datasets on TruNAS are there, which is a relief. All I can think is that during the upgrade when the Plex App went away, it took all the media with it. Does that sound right?

Looking through snapshots, I don't have a backup of my Plex dataset but I've got a copy of it all on another NAS I had moved from. I'm just trying to figure out why killing an App would drop all the data it's pointed to. Did this happen to anyone else?
 

mijohnst

Cadet
Joined
Mar 5, 2022
Messages
7
Hey all! Hoping someone help me see what I might have done wrong.

I've been using Core for about a month and decided to upgrade to Scale today. The upgrade went fine and everything came back up except my Plex add-on. I didn't think anything of it and started a new App from Scale to start a new Plex server. I got the app up but when I pointed my new Plex server to the volume on ZFS, all my media is gone. This is the only volume that this happened to. All the other datasets on TruNAS are there, which is a relief. All I can think is that during the upgrade when the Plex App went away, it took all the media with it. Does that sound right?

Looking through snapshots, I don't have a backup of my Plex dataset but I've got a copy of it all on another NAS I had moved from. I'm just trying to figure out why killing an App would drop all the data it's pointed to. Did this happen to anyone else?

Update: I spoke too soon. If I NFS mount the datastore from another system, all my media is there. I think that the new Plex app is masking the datasets that I have under the primary dataset they all live under. I set it up "truenas-pool>Plex-meda>{Movies, Shows, Pictures}" for an example. I guess I'll need to point to each sub-dataset for each media library. I don't remember having to do this in the other Plex add-on. I guess K8 works differently.
 

mijohnst

Cadet
Joined
Mar 5, 2022
Messages
7
Ok, more bad news. I'm not able to see my media files on the TrueNAS anymore...BUT if I mount that share via NFS to a another server, all my files are there.

On my remote server mounting from TruNAS:
[root@plex ~]# df -h | grep truenas
192.168.1.7:/mnt/tnas-pool/Plex-storage 5.0T 3.0T 2.1T 59% /mnt/truenas

[root@plex ~]# ls -al /mnt/truenas/Movies/ | wc -l
745

On the TruNAS shell:
root@truenas[~]# ls /mnt/tnas-pool/Plex-storage/Movies | wc -l
0

ZFS is showing space is used in the primary dataset, but the child dataset is showing empty.

root@truenas[~]# zfs list tnas-pool/Plex-storage/Movies
NAME USED AVAIL REFER MOUNTPOINT
tnas-pool/Plex-storage/Movies 96K 2.07T 96K /mnt/tnas-pool/Plex-storage/Movies

Hopefully, this is a common issue and I'm just doing something wrong. Seems like something is masking the datasets that have data in them. I've seen this issue before at work with ZFS.
 

mijohnst

Cadet
Joined
Mar 5, 2022
Messages
7
A long conversation with myself here... :)

Solved it. I created a primary dataset and several sub-datasets but when I mounted them, I only mounted the primary dataset. Even though I could see the names of those sub-datasets, it created regular folders under the sub-dataset when I did an rsync. Anyway, long story short, I deleted the sub-datasets and then I could see all my data in the shell. If I'd mounted each sub-dataset directly, I wouldn't have had any issues. Live and learn... or for me, Rememeber that time this happened to you a few years ago?
 
Top