Missing datasets

Hi. I got my first Truenas machine up and running recently, with 1 Pool (Pool1) and 2 Datasets(Dataset1 and Download). Before I started installing docker containers and messing around with permissions, I could see datasets within Download and Dataset1 both in the web UI and through SMB on my win11 machine.
Now, for some reason, I am not able to see the datasets in the UI, but I can see them in SMB.
I am running 25.04.1

Please feel free to ask for screenshots or anything other that could help you help me :slight_smile:

Maybe check if they are present in zfs list. Assuming you initially created datasets (and not directories) you are probably only seeing the dataset mountpoints via SMB.

I checked zfs list, to no prevail. I am posetive that they were datasets and not just directories. Could it possibly be persimissions I have screwed up?

The output of:

zfs list -d 1 -t filesystem -o space -S usedds <pool> | grep -v \.system
truenas_admin@truenas[~]$ sudo zfs list -d 1 -t filesystem -o space -S usedds Pool1/Download | grep -v \.system
[sudo] password for truenas_admin: 
NAME                   AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD
Pool1/Download          511G  2.09T        0B   2.09T             0B       288K
Pool1/Download/Photos   511G   192K        0B     96K             0B        96K
Pool1/Download/lars     511G    96K        0B     96K             0B         0B
truenas_admin@truenas[~]$ 

I can see that there is a lot of files in /Download and it is not in neither /lars or /Photos .

If I try to add a new dataset called /Video (one I know I have already, but can not see) I get this error:

 Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/api/base/server/ws_handler/rpc.py", line 323, in process_method_call
    result = await method.call(app, params)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/api/base/server/method.py", line 40, in call
    result = await self.middleware.call_with_audit(self.name, self.serviceobj, methodobj, params, app)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 906, in call_with_audit
    result = await self._call(method, serviceobj, methodobj, params, app=app,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 715, in _call
    return await methodobj(*prepared_call.args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 256, in create
    return await self.middleware._call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 715, in _call
    return await methodobj(*prepared_call.args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 287, in nf
    rv = await func(*args, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 48, in nf
    res = await f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 174, in nf
    return await func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/pool_/dataset.py", line 728, in do_create
    verrors.check()
  File "/usr/lib/python3/dist-packages/middlewared/service_exception.py", line 72, in check
    raise self
middlewared.service_exception.ValidationErrors: [EINVAL] pool_dataset_create.name: Path /mnt/Pool1/Download/Video already exists

No. This isn’t a permissions issue. Maybe look at zpool history Pool1 and see if you deleted the datasets accidentally.

Unless you’ve been saving files directly in the root dataset? I hope you have not. TrueNAS tries to prevent this anyways.

It doesn’t hurt to check:

zfs list -o space Pool1
1 Like