At my wits' end trying to configure TrueNAS

Atadi

Cadet
Joined
Jun 29, 2022
Messages
4
Hi All,

I have been struggling for the better part of a year now, trying to get a TrueNAS Core server setup and configured as I want it.
I have tried doing it on my own, following guides, watching videos and even paying a freelancer to try and set it up with my requirements. I always seem to be running into issues. It is either because the GUI doesn't display what is documented, some functionality is completely missing, or in the case of the freelancer -- what I am trying to achieve is not possible. An example is when creating a zpool and dset, the ACL option is not selectable.

The objective:

- Create a zpool with data transfer performance in mind
- Create a network share for SMB v3 and NFS v4.1 client access
- The share and directories must support Windows ACL
- The NAS must integrate with Active Directory
- Authentication to shares only allowed for AD Group/User

The hardware:

- Intel Xeon E3-1285L v4
- 16 GB ECC Reg
- 1x 160GB SSD (reserved boot-pool)
- 4x 4TB HDD
- 1x 256GB SSD
- 2x 10Gb NIC

The software:

- TrueNAS Core 13.0


So I am hoping that one of you kind souls on here can help. Let me know what could have gone wrong, if there's any particular order that must be followed or any other gotchas that I should be made aware of.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
First, you'll have better success starting with TrueNAS Core 12.0-U8.1. There are UI bugs in 13.0 that will frustrate you in pool creation, and other configuration items. Once you have things working in 12.0-U8.1, then you can upgrade to 13.0 to achieve faster performance.

Note, you're doing some tasks out of order. ACLs aren't defined during pool nor dataset creation. They're defined in the Windows share setup.

What's the purpose of the 256GB SSD?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
First, you'll need to determine your pool layout.


As a rule of thumb, mirrors achieve higher throughput than RAIDZx. With only 4x 4TB drives, however, it's a wash, and you should go with RAIDZ2 for data safety, as you can lose any 2 drives and still be able to restore your pool. Whereas, with a 2-way stripe of 2-way mirrors, if you lose both drives in one of the stripes, your pool is lost.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Second, determine your dataset structure.

 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Third, join Active Directory.

 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Last, create Windows shares connected to datasets per share. For each share, create the ACL using AD groups.

 

Atadi

Cadet
Joined
Jun 29, 2022
Messages
4
Hi Samuel,

Thank you greatly for taking the time to explain the correct steps!

I have the first and second steps out of the way and am now preparing for the third, to join/integrate with Active Directory. This is where I have had issues before. I have created a dedicated TrueNAS domain account but I am unable to find any documentation pertaining to least privilege requirements. I do not wish to grant domain admin permissions to this user, so the question is what minimum permissions should the user have?
After many failed attempts in the past, the only option I haven't tried yet was to delegate control to the dedicated TureNAS domain account.

The only detailed documentation I could find for permissions was on Reddit here: https://www.reddit.com/r/freenas/comments/aby68i/does_integrating_with_active_directory_require/

The questions are, though, whether 1. is this official documentation and still relevant to TrueNAS 12/13 and 2. whether these permissions are required at every boot or can I strip certain permissions?

All I really need is to be able to list AD Groups and Users in the TrueNAS UI for the purpose of assigning read and write permissions to shares.

For the sake of documentation for future readers, attached are screenshots from steps 1 and 2.
FYI: The zPool01 was created using 4x HDD in raidz2 and 1x SSD used for LOG.
 

Attachments

  • 01_Create_zPool01.png
    01_Create_zPool01.png
    27.9 KB · Views: 180
  • 02_Create_dSet01_SMB.png
    02_Create_dSet01_SMB.png
    45.2 KB · Views: 187
  • 03_Create_dSet02_NFS.png
    03_Create_dSet02_NFS.png
    44.5 KB · Views: 176
  • 04_Pools_Overview.png
    04_Pools_Overview.png
    39.2 KB · Views: 180

Atadi

Cadet
Joined
Jun 29, 2022
Messages
4
First, you'll have better success starting with TrueNAS Core 12.0-U8.1. There are UI bugs in 13.0 that will frustrate you in pool creation, and other configuration items. Once you have things working in 12.0-U8.1, then you can upgrade to 13.0 to achieve faster performance.

Note, you're doing some tasks out of order. ACLs aren't defined during pool nor dataset creation. They're defined in the Windows share setup.

What's the purpose of the 256GB SSD?
Forgot to mention this, but the purpose for this SSD was to act as a write buffer (LOG). AFAICT, this is the only beneficial use case for one such disk in this system. System is UPS protected btw.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
@anodos is the resident Samba expert, and could tell you the exact permissions the domain join account needs. I don't run Active Directory myself, so I have no experience here.

A log device isn't useful if you don't have iSCSI shares. Furthermore, unless your log device has power loss protection, there is a risk of data loss if your UPS fails. It's not a write cache. It's an indirect write journal.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Also, you may want to change your SMB dataset to be case-insensitive, since Windows expects that.
 

Atadi

Cadet
Joined
Jun 29, 2022
Messages
4
@anodos is the resident Samba expert, and could tell you the exact permissions the domain join account needs. I don't run Active Directory myself, so I have no experience here.

A log device isn't useful if you don't have iSCSI shares. Furthermore, unless your log device has power loss protection, there is a risk of data loss if your UPS fails. It's not a write cache. It's an indirect write journal.
Gonna wait for @anodos to chime in. I do indeed have power loss protection, but would you recommend another use for the SSD?
I have since saving the screenshots changed the share type to SMB and it is now cases-insensitive.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
would you recommend another use for the SSD?

Since you can add and remove log devices from a pool without data loss, you could try the pool with and without a log device, to see if you get any performance benefit with a log device. Monitor the Reporting in both cases, and try some transfer tests.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Top