How to install and configure TrueNAS

Configurare noua (How To)

Situatie

TrueNAS is an open-source NAS (Network Attached Storage) operating system based on FreeBSD (TrueNAS CORE) or Linux (TrueNAS SCALE). It provides file sharing, data protection, and virtualization features for home or enterprise storage.

  • TrueNAS CORE: Best for traditional NAS (FreeBSD based)

  • TrueNAS SCALE: Supports Docker, Kubernetes, virtualization (Linux based).

Step 1: Download and Prepare Installation Media

  1. Visit https://www.truenas.com/download/

  2. Choose TrueNAS CORE or TrueNAS SCALE

  3. Download the .iso file

  4. Use a tool like Rufus or balenaEtcher to create a bootable USB stick from the ISO.

Step 2: Install TrueNAS

Boot from USB:

  1. Plug in the bootable USB to the target machine

  2. Boot and enter the BIOS/UEFI to set the USB as the first boot device

  3. Reboot to launch the installer.

Installation Steps:

  1. Select Install/Upgrade

  2. Choose the boot device (e.g., USB or SSD – note: it will be wiped)

  3. Set a root password

  4. After installation, remove the USB installer

  5. Reboot into TrueNAS.

Step 3: Access the Web UI

Once TrueNAS boots:

  1. The console will show an IP address (e.g., http://192.168.1.100)

  2. Open a browser on a device on the same network

  3. Visit the displayed IP

  4. Log in with root and the password you created.

Step 4: Initial Configuration

1. Set Timezone and Hostname

  • Go to System > General

  • Set your hostname and timezone.

2. Create Storage Pool (ZFS)

  • Go to Storage > Pools > Add

  • Choose Create new pool

  • Add disks and configure RAID level (e.g., RAIDZ1, mirror)

  • Name the pool and click Create.

3. Create a Dataset (Optional)

  • Inside the pool, create datasets for different shares (e.g., media, backups).

Step 5: Set Up Network Shares

Option A: SMB (Windows/macOS)

  1. Go to Sharing > Windows (SMB) Shares > Add

  2. Select the dataset path

  3. Name your share

  4. Enable the share and save

  5. Go to Services > SMB, enable and start it.

Option B: NFS (Linux)

  1. Go to Sharing > Unix (NFS) Shares > Add

  2. Choose the dataset path and set permissions

  3. Enable NFS service.

Step 6: User and Permissions

  1. Go to Accounts > Users > Add.

  2. Create users with their home directories and shell (if needed).

  3. Assign users to datasets with proper permissions under Storage > Pools > Permissions.

Optional: Enable Additional Features

  • Apps (TrueNAS SCALE only):

    • Go to Apps > Launch Docker containers like Plex, Nextcloud, etc.

  • Snapshots:

    • Enable ZFS snapshots for versioned backups

  • Replication:

    • Set up data replication to another system

  • Alerts:

    • Configure email alerts under System > Alert Settings.

Solutie

Tip solutie

Permanent

Voteaza

(2 din 6 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?