Double Mount Points leading to inacessable data

Hi guys, i have a really bad issue where all my media is under /mnt/mnt/MediaServer/Media2.0 but every command to export and import leads to the same thing even with -R and manually changing zfs set mountpoint=/mnt/MediaServer/Media2.0 it just doesn’t listen and keeps everything under /mnt/mnt

What does this show:

zfs get mountpoint MediaServer
zfs get mountpoint MediaServer/Media2.0

You likely have to “inherit” the mountpoint property, and then reimport your pool in the GUI.

Don’t do this, until you have confirmed the first commands:

zfs inherit mountpoint MediaServer
zfs inherit mountpoint MediaServer/Media2.0

Here ya go, should I use the 2nd commands?

okay so turns out you cant post links or images so here we go
zfs get mountpoint MediaServer returns with this
Name: HealyMediaServer
Property: mountpoint
Value: /mnt/HealyMediaServer

and zfs get mountpoint MediaServer/Media2.0 returns with
Name: HealyMediaServer/Media2.0
Property: mountpoint
Value: /mnt/mnt/HealyMediaServer/Media2.0

Is that a typo? You used a different name in the first post.


Make sure no Shares, VMs, Apps, or Containers are actively using those paths.

Set both to “inherit” in this order.

zfs inherit mountpoint HealyMediaServer/Media2.0
zfs inherit mountpoint HealyMediaServer

Then reimport the pool using the GUI normally.

You likely only need to do this only to the root dataset, but it doesn’t hurt to do it for both datasets.

Sorry no typo, i wanted to keep my Surname out of it but my username pretty much undermined that so i just said the real path name being HealyMediaServer. I will ask, do i export the pool before doing the inherit?

No.

Just make sure nothing is “using” those paths.

i dont have any apps installed and this is a clean TrueNAS as of yesterday but it still tells me its busy. how can i find out why?

What is telling you busy? The inherit command?

yes the first inherit command

Then try only this command by itself:

zfs inherit -r mountpoint HealyMediaServer

The -r flag applies it recursively.

Make sure you’re not currently in the directory under /mnt

it said it was busy twice this time

Go ahead and make a checkpoint for the pool, just to be safe:

zpool checkpoint HealyMediaServer
zpool status HealyMediaServer | grep checkpoint

Try unmounting the child dataset:

zfs umount HealyMediaServer/Media2.0

Does this also say it’s “busy”?

i am unsure “where” I am my most recent line is
truenas_admin@truenas[~]$ sudo zfs inherit -r HealyMediaServer
cannot unmount ‘/mnt/mnt/HealyMediaServer/Media2.0’: pool or dataset is busy

To print working directory:

pwd

It says ~, which is your home folder. This could be anywhere, though, even under /mnt/mnt/something. Using pwd will print the full path.

I am in /home/truenas_admin
and no umount HealyMediaServer/Media2.0 went through without saying busy

Rather than do a forceful unmount, check if there are any open files that reference /mnt/mnt/

lsof | grep \/mnt\/mnt

running this returned an empty line

Even this?

lsof | grep mnt

no using that i got 3 lines
lxcfs 2312 root 5r REG 0,4 0 4026532520 mnt
lxcfs 2312 2351 lxcfs root 5r REG 0,4 0 4026532520 mnt
lxcfs 2312 2351 lxcfs root 5r REG 0,4 0 4026532520 mnt