Dataset Naming Convention

New to TrueNAS and currently running Dragonfish-24.04.2.

When creating a dataset and assigning it a name, it appears that underscore characters are not allowed. Can someone point me to the Dataset Naming Convention? I’ve check the documentation and can’t find it.

Alphanumeric and following characters: -_.:, but the maximum length for a dataset name is 256 characters (note that the dataset name length includes all dataset name components – separated by / – and snapshot names count toward the total length of a dataset name). This means one should not treat datasets like directories and nest them deeply.

2 Likes

Thanks awalkerix! Just what I was looking for.
Did you find this in the online documentation?

Well that’s… odd.

Why is there such a limitation with ZFS? Even a full path in a Linux filesystem can be up to 4095 characters in length.

Because it’s a dataset name. It’s not a path.

2 Likes

The information you want is documented here:

Thanks bella! Very helpful. It appears from the doc that the only special characters allowed are dash and underscore.

Well, putting a semi-colon in a dataset name is terrible idea because it’s unsupported over SMB protocol (will get mangled).