After updateing to ElectricEel-24.10.2.2 from 24.10.2.1 All datasets shared with samba are empty

Not to sound rude, but your setup and usage is confusing. :no_mouth:

Are these folders and their contents important? What are they? Why are they? There were no datasets associated with them before.

599M    /mnt/ZFSStor/ESPHome_Data

7.8M    /mnt/ZFSStor/NGINX_Data
141K    /mnt/ZFSStor/NGINX_Scale_Data

55M     /mnt/ZFSStor/Postgres_data

46M     /mnt/ZFSStor/Vaultwarden

116     /mnt/ZFSStor/ffmpeg-config
1.2K    /mnt/ZFSStor/ffmpeg-dtsac3

Can you confirm, and I mean confirm, that these folders are empty?

2       /mnt/ZFSStor/ImageMirror_Backups

2       /mnt/ZFSStor/Vault

Are these folders and their contents important? What are they? Why are they? There were no datasets associated with them before.

I am not sure what you mean by they were not associated before. They all showed up on the previous du -hs. All of the active datasets below were working before my attempted update, you are right though, some of them are unused and useless.

I will go down the list:
ESPHome_Data is for the ESPHome app. I believe that is from back when truecharts was still at thing.

NGINX_Data
NGINX_Scale_Data
is from a truecharts → trunas migration

Postgres_data
was my attempt at getting nextcloud migrated over that did not work

Vaultwarden
Is the app vaultwarden’s dataset

ffmpeg-config
ffmpeg-dtsac3
Is a custom app to resize images

Can you confirm, and I mean confirm, that these folders are empty?

Yeah, they are still empty, is there a better way to confirm this?

root@truenas[/mnt/ZFSStor]# ls -a ImageMirror_Backups
.  ..
root@truenas[/mnt/ZFSStor]# ls -a Vault
.  ..

They had no datasets associated with their presence. So these are just folders that live directly on the root dataset. They can’t even be confused for datasets, since there never were any with those names that existed.


Your call. Do you need to save any of those files or can they be deleted?

Vaultwarden is not a dataset and it never was. See above.

You can safely remove them with rmdir.

rmdir /mnt/ZFSStor/ImageMirror_Backups
rmdir /mnt/ZFSStor/Vault

I see. I am not sure what is going on there. Most likely it is mess from years of migration and changes then not cleaning thing’s up. I am sorry for the confusion it is causing. Thanks for showing your reasoning!

I was able to remove ImageMirror_Backups

Vault is not liking the rmdir

root@truenas[/mnt/ZFSStor]# rmdir Vault
rmdir: failed to remove 'Vault': Device or resource busy

Is anything using it?

lsof | grep Vault

Welp, I am not sure how but I managed to remove everything in ZFSStor.

I started a new session to see if putty was hanging it up for some reason. All of ZFSStor is now gone. Below is all the all the commands I tried that lead to an empty ZFSStor. We have it full at the beginning but then after a couple rmdir on Vault and some cd ls it is all gone?? weird:

Welcome to TrueNAS
root@truenas[~]# cd ../mnt/ZFSStor
root@truenas[/mnt/ZFSStor]# ls
ESPHome_Data           Jellyfin_Data     NextCloud_True  Vault
Frigate                NGINX_Data        Postgres_data   Vaultwarden
Handbrake_Dataset      NGINX_Scale_Data  Syncthing_Data  ffmpeg-config
HomeAssistant_Dataset  NextCloud_Data    Valheim         ffmpeg-dtsac3
root@truenas[/mnt/ZFSStor]# rmdir Vault
rmdir: failed to remove 'Vault': Device or resource busy
root@truenas[/mnt/ZFSStor]# rmdir Vault
rmdir: failed to remove 'Vault': Device or resource busy
root@truenas[/mnt/ZFSStor]# rmdir Vault
rmdir: failed to remove 'Vault': Device or resource busy
root@truenas[/mnt/ZFSStor]# cd ./
root@truenas[/mnt/ZFSStor]# cd ..
root@truenas[/mnt]# rmdir mnt/ZFSStor/Vault
rmdir: failed to remove 'mnt/ZFSStor/Vault': No such file or directory
root@truenas[/mnt]# ls mnt/ZFSStor
root@truenas[/mnt]# cd mnt/ZFSStor
root@truenas[/mnt/mnt/ZFSStor]# ls
root@truenas[/mnt/mnt/ZFSStor]# cd ..
root@truenas[/mnt/mnt]# ls
'House Stor'   ZFSStor
root@truenas[/mnt/mnt]# cd ZFSStor
root@truenas[/mnt/mnt/ZFSStor]# ls
root@truenas[/mnt/mnt/ZFSStor]# ls -a
.  ..
1 Like

How are you in /mnt/mnt? Where did /mnt/mnt come from? When did you create this subfolder? Why does anything even exist inside of it in the first place?

What is ā€œHouse Storā€?

How did you manage to create such a setup?

Why are you using relative paths when my commands used absolute paths?

Why did you skip ahead before trying this:

1 Like

ho boy, please don’t hate me… I see what happened

Start from the bottom this time

Why did you skip ahead before trying this

My above post physically happened before your lsof post showed up for me

Why are you using relative paths when my commands used absolute paths?

because ima dummy, I will use absolute from now on.

What is ā€œHouse Storā€?

This is a different exported pool that is currently not being used.

How are you in /mnt/mnt? Where did /mnt/mnt come from? When did you create this subfolder? Why does anything even exist inside of it in the first place?

This happened when I migrated over drives. It has never been used, hence the ā€œplease don’t hate meā€ I didn’t notice I was running commands in it.

lsof | grep Vault

Does not return anything in the proper folder.

Get out of the /mnt directory:

cd

pwd

Check if the leftover folders are empty:

ls -laR /mnt/mnt/

Here is the output. Looks empty.

root@truenas[~]# ls -laR /mnt/mnt/
/mnt/mnt/:
total 10
drwxr-xr-x 4 root root 4 Apr 29 19:08  .
drwxr-xr-x 6 root root 6 May 23 19:36  ..
drwxr-xr-x 2 root root 2 Apr 28 19:28 'House Stor'
drwxr-xr-x 2 root root 2 Apr 29 19:08  ZFSStor

'/mnt/mnt/House Stor':
total 1
drwxr-xr-x 2 root root 2 Apr 28 19:28 .
drwxr-xr-x 4 root root 4 Apr 29 19:08 ..

/mnt/mnt/ZFSStor:
total 1
drwxr-xr-x 2 root root 2 Apr 29 19:08 .
drwxr-xr-x 4 root root 4 Apr 29 19:08 ..

Remove the empty directories. Please don’t ignore the quote marks.

rmdir /mnt/mnt/"House Stor"
rmdir /mnt/mnt/ZFSStor
rmdir /mnt/mnt

Roger that, removed:

root@truenas[~]# ls -laR /mnt/mnt/
ls: cannot access '/mnt/mnt/': No such file or directory

Back to this again.

No output:

root@truenas[~]# lsof | grep Vault
root@truenas[~]#

Sill have the resource busy error

root@truenas[~]# rmdir /mnt/ZFSStor/Vault
rmdir: failed to remove '/mnt/ZFSStor/Vault': Device or resource busy

What are its permissions and ownership?

stat /mnt/ZFSStor/Vault

Here is that output:

root@truenas[~]# stat /mnt/ZFSStor/Vault
  File: /mnt/ZFSStor/Vault
  Size: 2               Blocks: 1          IO Block: 512    directory
Device: 0,148   Inode: 34          Links: 2
Access: (0770/drwxrwx---)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2025-04-29 20:26:03.047312535 -0600
Modify: 2025-04-29 20:26:03.047312535 -0600
Change: 2025-04-29 20:26:03.767327147 -0600
 Birth: 2025-04-29 20:26:03.047312535 -0600

Another shot.

lsof +D /mnt/ZFSStor/Vault

No output

root@truenas[~]# lsof +D /mnt/ZFSStor/Vault
root@truenas[~]#

Please be careful with this:

rm -rfv /mnt/ZFSStor/Vault