Starting TrueNAS Core for New Users

TanKianW

Master Member
Joined
Apr 21, 2005
Messages
3,687
Reaction score
81
*LATEST UPDATE: TrueNAS Core 12.0 U4:

Issues resolved in TrueNAS 12.0-U4:​

  • A detailed security scan of 12.0-U4 is also available at the TrueNAS Security site.
  • 18 improvements and 81 bug fixes are included.
  • Python upgrade and several improvements to reduce memory leaks and probability of crashes of core middleware processes. This issue happens rarely, does not impact ongoing data services, and has proven to be difficult to reproduce.
  • OpenZFS improvements for both small and high performance systems. Performance during scrubs while under high CPU load should be more reliable.
  • Security updates for OpenVPN, Samba, and various other ports.
  • Replication webUI improvements to simplify process and avoid mistakes.
  • Updated Minio (the S3 target) to the latest version which includes support for APIv3.
  • Minor webUI and reporting issues including the display of more jails per page.
  • New driver support for Realtek RTL8125/RTL8111 Ethernet devices (2.5GBase-T).

More on the release notes here:
https://www.truenas.com/docs/releasenotes/core/12.0u4/

==================================================================================

*SHARING:
Since some DIY NAS builders feedback that the tough (stiff) SATA cables making the installation in tight m-ITX casing extra challenging, I recommend the use of ultra thin SATA cables which I prefer to use when building my own TrueNAS System:

2Uywb0X.jpg
 

TanKianW

Master Member
Joined
Apr 21, 2005
Messages
3,687
Reaction score
81
UPDATED on Post #6

*SyncThing: For those who only need Syncing between devices to your TrueNAS System



More features for advanced users:


NOTE:
  • If you only need simple file sync between devices, SyncThing is a snappy and great solution.
  • SyncThing could be a substitute to Nextcloud for simple file sync
  • Comparing plugin updates on TrueNAS, it is better supported than Nextcloud
  • There is not yet an official support for iOS platform
  • Personally I use SyncThing to sync files from my worklab to my homelab. It is hassle free and much easier to set up than Nextcloud.
 
Last edited:

TanKianW

Master Member
Joined
Apr 21, 2005
Messages
3,687
Reaction score
81
*Updated on Post #5

*COMMONLY ASKED QUESTIONS*

Some of the most commonly asked questions I received on the use of TrueNAS Core is on (1) how do you extend the ZFS pools and (2) how to replace the disks when it fails. Below are the practical tutorials answering to the questions. Do watch.



 

Preacher1010

Supremacy Member
Joined
Jul 20, 2001
Messages
9,272
Reaction score
29
my FREENAS 11.3-U5 Build:

AMD Ryzen 3200G (integrated graphics)
ASUS A320I-K mobo
16GB DDR4 2666 Corsair LPX
Transcend 128GB NVME SSD M.2
FSP 450Watt SFX PSU
Silverstone CS01 ITX case
2 x 8TB Seagate Ironwolf
ID-Cooling 120mm Fan Yellow
2 x Silverstone Slim Sata Cable
2 x Noctua 40mm exhaust fans

my Reddit post for r/sffpc photos here

 
Last edited:

draco76x

Member
Joined
Feb 22, 2007
Messages
283
Reaction score
2
Is there any method that I can remote into home Truenas from Outside network or other countries??
 

TanKianW

Master Member
Joined
Apr 21, 2005
Messages
3,687
Reaction score
81
Last edited:

Mach3.2

Great Supremacy Member
Joined
Apr 8, 2011
Messages
69,745
Reaction score
140
Preferably, I will go with VPN.

If need external access for your hosted server on TrueNAS (Eg. Nextcloud server) then at least a "https" setup.
q99ygWO.jpg


If interested to secure your server and network (HAproxy + Let's Encrypt), check out here:
https://forums.hardwarezone.com.sg/threads/starting-pfsense-for-new-users.6390714/
imo one should strive to create a VPN only solution for remote access, less attack surface for people to exploit.

It's not too difficult to spin up a Wireguard VPN as your remote access solution. :o
 

TanKianW

Master Member
Joined
Apr 21, 2005
Messages
3,687
Reaction score
81
imo one should strive to create a VPN only solution for remote access, less attack surface for people to exploit.

It's not too difficult to spin up a Wireguard VPN as your remote access solution. :o

Agree.
 

TanKianW

Master Member
Joined
Apr 21, 2005
Messages
3,687
Reaction score
81
*TrueNAS Scale based on Debian


Received a few query on the anticipation of TrueNAS Scale. A good watch for those interested to try out the TrueNAS Scale Beta. Feel free to play with it on your VMs, I am also doing so on my worklab system. Take note that it is still NOT READY yet. Main reason for TrueNAS Scale.....DOCKER!


*OpenZFS 2.1 is out!
A quick read and peek into the anticipated OpenZFS 2.1. And its dRAID vdevs capability.

https://arstechnica.com/gadgets/2021/07/a-deep-dive-into-openzfs-2-1s-new-distributed-raid-topology/
 
Last edited:

TanKianW

Master Member
Joined
Apr 21, 2005
Messages
3,687
Reaction score
81
*LATEST UPDATE: TrueNAS Core 12.0 U4.1:

Epic:

  • [NAS-111220] - Enclosure management mapping may not work properly for TrueNAS R Series

Bug Fix:
  • [NAS-110860] - CPU widget not working in 12.0-U4
  • [NAS-111132] - Fix r10 enclosures
  • [NAS-111148] - Don't expect rackmount servers to always have SAS Expander data
  • [NAS-111222] - Pulling drive causes enclosure management vdev bug
  • [NAS-111223] - Fix R40 to comply with enclosure management nep specified single mapped enclosure to UI.
  • [NAS-111259] - Fix R20 to comply to enclosure management NEP
  • [NAS-111273] - Fix R50 to comply with enclosure NEP
Read more here: https://www.truenas.com/docs/releasenotes/core/12.0u4.1/

This update also fixes the dashboard bug showing "additional CPU thread"
iAKdtvm.jpg
 

FatalityV

Arch-Supremacy Member
Joined
Aug 8, 2009
Messages
24,905
Reaction score
6
I'm curious - did you face any issues when upgrading from FreeNAS to trueNAS?

I think they made the transition around 12-13. It completely ****ed my system.

In the end I made the decision to migrate away from truenas to proxmox + zfs + lxc exposing cifs mount.
 

TanKianW

Master Member
Joined
Apr 21, 2005
Messages
3,687
Reaction score
81
I'm curious - did you face any issues when upgrading from FreeNAS to trueNAS?

I think they made the transition around 12-13. It completely ****ed my system.

In the end I made the decision to migrate away from truenas to proxmox + zfs + lxc exposing cifs mount.

I think you meant FreeNAS 11 to TrueNAS 12.

I had 2x FreeNAS system in my homelab (with encryption removed prior) that upgraded to TrueNAS without issues.

I will still recommend to back the data to another location before any major update.
 

TanKianW

Master Member
Joined
Apr 21, 2005
Messages
3,687
Reaction score
81
*Conducting iperf test between 2 TrueNAS system or on/from TrueNAS system
Received requests from some users who wished to test out their 10G network on their NASes or between their NASes. You can easily use the iperf command below to test it out. If your client is a PC, do use iperf version 2, not 3:​

Under shell of TrueNAS main page type:
Code:
For server (NAS) side, type cmd:

iperf -s -w 128K

Code:
For client (NAS) side, type cmd:

iperf -c 192.168.XX.XX -p 5001 -f m

IP address being the server IP

The test results will look like this:
isNMd4u.jpg
 
Last edited:

TanKianW

Master Member
Joined
Apr 21, 2005
Messages
3,687
Reaction score
81
**UPDATED on Post #4

*Creating Cloud Sync Tasks to Backup to/from OneDrive on TrueNAS Core

For TrueNAS Core users that want to backup from their OneDrive or to their OneDrive, can follow the simple and straight forward steps below:

Step 1:
  1. Open up the tab to create Cloud Credentials under System -> Cloud Credential​
  2. Select the Provider and name this credential​
  3. Click on "Login to provider" icon below and log into your OneDrive account​
  4. Details such as OAuth Client ID, Secret and Drive IP will be auto filled. The "access token" will be provided under the drop down, just select it.​
  5. Click "Verify Credential" and it will give a verified reply if the account is set correctly​
  6. Finally, click Save​
iJI7YBx.jpg


Step 2:
  1. Create cloud sync tasks under Task​
  2. Give a description, choose PULL if you want to back up OneDrive locally, choose PUSH if you want to back up to OneDrive.​
  3. Choose between "SYNC, COPY, MOVE". The description will be explained when you click onto it. I chose Sync for my this test case.​
  4. Select the cloud credential you just created under the drop down list which you have just created earlier.​
  5. Select the TrueNAS dataset you want to back up to/from (recommend to create a separate dataset). *Please remember to set the advanced pre-set ACL rule under set permission to "Restricted" and data user/group to be root/wheel, and check on the "recursively" box at the bottom.​
  6. Select the OneDrive folder you want to back up to/from​
  7. You can also list down the folder you will like to exclude from the cloud sync under the "Exclude" selection. This is an option which you need to set, if you run into issue/error from OneDrive server side when a particular folder/file just failed to sync.​
  8. Do remember to create a sync schedule.​
  9. You can choose to add in remote encryption or not to​
INvbSZY.jpg


Step 3:
  1. Verify that the cloud sync task is working by clicking the "DRY RUN"​
  2. When it is working, you will see a green "SUCCESS" icon on the task you just created.​
muhmzV4.jpg

 
Last edited:

TanKianW

Master Member
Joined
Apr 21, 2005
Messages
3,687
Reaction score
81
**UPDATED on Post #3

*Manually Download & Update Nextcloud using shell command instead of WebGUI updater
Due to the broad install base of nextcloud, the way it should be configured could be quite different between the Operating Systems and distributions (Eg. Debian, Ubuntu, FreeBSD, etc). Therefore, it is also not a one size fits all solution when installing your nextcloud on the jails of TrueNAS core. Most of the time, nothing beats running an update through the command, which I will be covering below.

By running the update manually using command, you could also update to those "in-between" update that is not released by TrueNAS (but on Nextcloud) and at the same time avoid the "latest" buggy update. One good example is choosing to upgrade to Nextcloud 21.0.3 instead of 22.0.0_1.

TAKE NOTE: It is always advised to create snapshots of your jail (and root) folder "recursively" just in case you need to revert back to the last stable version when the update screw up.

Open up the shell of your Nextcloud jail:​
Code:
1) First, we back up the configuration folder by creating another -bak folder through command.
TYPE:

mv /usr/local/www/nextcloud /usr/local/www/nextcloud-bak


2) Download the update files. You can choose any of the later version (nextcloud-21.0.2.tar.bz2) or the latest version (latest.tar.bz2)
TYPE:

fetch "https://download.nextcloud.com/server/releases/nextcloud-21.XX.X.tar.bz2"


3) Unpack the file you just downloaded to /usr/local/www
TYPE:

tar jxf nextcloud-21.XX.X.tar.bz2 -C /usr/local/www


4) Copy the configuration .php from backup folder to the existing config folder
TYPE:

cp /usr/local/www/nextcloud-bak/config/config.php /usr/local/www/nextcloud/config


5) Set user/group for the folder
TYPE:

chown -R www:www /usr/local/www/nextcloud


6) Move the apps-pkg from the backup folder to the nextcloud folder in order to run the occ upgrade later
TYPE:

mv /usr/local/www/nextcloud-bak/apps-pkg /usr/local/www/nextcloud/


7) Execute the upgrade
TYPE:

su -m www -c 'php /usr/local/www/nextcloud/occ upgrade'


8) Log back into your nextcloud server, you will be prompted on the first page to start the upgrade process


9) OPTIONAL: you can choose to delete the downloaded update files and -bak folder using the "rm -R" command after the update
TYPE (Eg):

rm -R /usr/local/www/nextcloud-bak

*NOTE: If you are running your nextcloud server which could be accessed externally (https), you should regularly update your nextcloud server to the latest stable and secured version.

=========================================================================================

*Access Nextcloud Server Using WireGuard VPN
Those interested to use WireGuard VPN to access their Nextcloud server using pfsense, can check out here:

https://forums.hardwarezone.com.sg/...-for-new-users.6390714/page-19#post-135190737
 
Last edited:
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ. Forum members and moderators are responsible for their own posts.

Please refer to our Terms of Service for more information.
Top