Error on creating a new dataset

EINVAL] pool_dataset_create.aclmode: DISCARD aclmode may not be set for NFSv4 acl type
remove_circle_outline
More info...
 Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 201, in call_method
    result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1342, in _call
    return await methodobj(*prepared_call.args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 172, in create
    return await self.middleware._call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1342, in _call
    return await methodobj(*prepared_call.args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 197, in nf
    rv = await func(*args, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 44, in nf
    res = await f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 177, in nf
    return await func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/pool_/dataset.py", line 553, in do_create
    verrors.check()
  File "/usr/lib/python3/dist-packages/middlewared/service_exception.py", line 70, in check
    raise self
middlewared.service_exception.ValidationErrors: [EINVAL] pool_dataset_create.aclmode: DISCARD aclmode may not be set for NFSv4 acl type

 

Set the ACL Mode to passthrough in the settings for the dataset.

1 Like

only have these only

Are you using core or scale? You can also add the tag to your OP.

Please attach screenshots that show the complete settings tab.

It should be labeled ACL Mode not type.

That’s not CORE for sure. I believe you want to selecr SMB/NFSv4.


warning
ACL Types & ACL Modes

Changes to ACL type affect how on-disk ZFS ACL is written and read. When the ACL type is changed from POSIX to NFSv4, no migration is performed for default and access ACLs encoded in the posix1e acl extended attributes to native ZFS ACLs. When ACL type is changed from NFSv4 to POSIX, native ZFS ACLs are not converted to posix1e extended attributes, but the native ACL will be used internally by ZFS for access checks. This means that the user must manually set new ACLs recursively on the dataset after ACL type changes in order to avoid unexpected permissions behavior. This action will be destructive, and so it is advised to take a ZFS snapshot of the dataset prior to ACL type changes and permissions modifications.

give me this error msg

Thanks!

@aelsharawi if you can’t create the dataset to start with and hence there’s nothing to delete (if you somehow created a broken dataset, delete it) just create a new dataset. In the creation mask, just select SMB as the purpose instead of generic.

See the UI reference guide → https://www.truenas.com/docs/images/SCALE/Datasets/AddDatasetNameAndOptions.png

You can change encryption settings, compression etc. but for everything else related to ACL, do not fiddle with the settings. Selecting the purpose will already set the ACL type, mode, case sensitivity to working settings.
If you know what you are doing and have special requirements, go ahead and dive into the advanced settings. But for the basic setup of a dataset, that is not needed in my experience.