New dataset created and not showing properly local vs nfs

First timer in here.

I just upgraded to 25.04 from 12.0 and hoped to add the plex app. The updates were all done via the UI one step at a time following web page instructions.

I noticed a strange behavior in the process of adding plex.

I added a new dataset to my current pool. In looking at /mnt/pool/dataset it is there. It also appears in my nfs directory /misc/freenas/dataset where it should be. .

Logging into truenas as root I do
mkdir /mnt/pool/dataset/Movies1
and an ls confirms it is there. I then look in the nfs directory /misc/freenas/dataset and it is still empty.

In linux I do
mkdir /misc/freenas/dataset/Movies2
and verify that.

Then looking back in /mnt/pool/dataset there is not Movies2

This makes no sense as the access above dataset has worked fine for tears.

Hopefully someone can explain this.

What do you have mounted on the client?

On the client run df -h and post the result here using Blockquote or Preformatted Text styles.

df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 4.0M 0 4.0M 0% /dev
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 6.2G 18M 6.2G 1% /run
efivarfs 256K 104K 148K 42% /sys/firmware/efi/efivars
/dev/mapper/cs_wdhome-root 70G 19G 52G 27% /
/dev/sdb2 960M 618M 343M 65% /boot
/dev/mapper/cs_wdhome-home 379G 33G 346G 9% /lhome
/dev/sdb1 599M 7.5M 592M 2% /boot/efi
tmpfs 3.1G 924K 3.1G 1% /run/user/11966
/dev/sda1 3.6T 591G 2.9T 17% /run/media/warrend90/linux4TB

This is the top of the pool
freenas:/mnt/FreeNas 11T 3.4T 7.0T 33% /misc/freenas

At this point I can make a file on one system and see it on the other

from nas login
ll //mnt/FreeNas/NasPlexMedia
drwxr-xr-x 2 root 2 Jun 11 19:46 Movies1/

from client login
ll NasPlexMedia/
drwxr-xr-x 2 root root 2 Jun 11 20:24 Movies2

By your question I am guessing a dataset has to be mounted and isn’t a direct access even though it is in the pool I mount.

Yes, I suspect you are missing a heirarchical mount, for example,

server://A mounted as /mnt/faraway/A
server://A/B not mounted, should be mounted as /mnt/faraway/A/B

When you post copied stuff, please format using Blockquote or Preformatted Text from the formatting bar at the top of the compose window.

Total nonsequitor, but I think it’s funny that my machine that started out as Freenas then went to core and now is on scale, also has some vestigial mentions of Freenas in it. I stumbled across some old backup files a job was doing every 14 days and creating Freenas-current-date-time.gz backup files. Since you went from 12 to 25 (wow), you’ll probably have even more leftover stuff like that.

I totally agree. Thought about a fresh install but just doing updates scares me to death. Maybe next time.

So I think I understand. A dataset has to be exports and then mounted to work. I removed the dataset and just used the pool location with a new directory and got everything working. I probably should have setup thing differently back when I set it all up. Too entrenched everywhere now.

Datasets are flexible with zfs rename commands. Get your root pools right and you can fix datasets later.