Creating pools using TrueNAS & using it on local machine.

Shubham NimkarShubham Nimkar
4 min read

TrueNAS uses ZFS data storage pools to efficiently store and protect data.

To create a pool start with the process below.

Boot TrueNAS

VMware Workstation 09-07-2023 17_05_29

Select 1. Boot TrueNAS & this screen will appear

check for the IP address so that you can open WebUI for TrueNAS

TrueNAS - VMware Workstation 09-07-2023 17_10_43

Enter the IP in the browser

The username will be "root" by default.

The password which you have set during installation.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_12_32

And here's the main console.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_16_24

Now to add the pools.

Go to pools > Add

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_28_09

Create Pool.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_28_17

Enter the name > Suggest Layout > Select all disks> Create.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_29_06

Confirm > Create Pool.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_29_24

It'll show like this after the creation of the pool.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_29_34

Go to Services.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_30_12

Click on the pencil icon on iSCSI.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_30_44

Target Global Configuration

Don't change anything and save.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_30_52

Portals

Add > Just click on IP address 0.0.0.0 will appear and select > Save.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_31_08

It'll look like this after the changes.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_31_12

Initiators

Allow all Initiators > Save.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_31_29

It'll look like this after the above changes.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_31_34

We are not setting any authorized pool so, authorized access we are not configuring.

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_31_40

Targets > Add

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_31_57

Target Name (enter name) > Click on portal group 1 > submit

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_32_17

After changes, it'll be something like this

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_32_31

Extents

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_32_37

Add > name (add name) > Extent type (File) > Path > Filesize (enter your size) > Save

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_36_47

Associated Targets > select target and extent > submit

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_41_07

Restart iSCSI service

TrueNAS - 192 168 100 176 - Google Chrome 09-07-2023 17_37_20

Add IP of TrueNAS > Quick Connect

iSCSI Initiator Properties 09-07-2023 17_37_45

iSCSI Initiator Properties 09-07-2023 17_38_20

iSCSI Initiator Properties 09-07-2023 17_38_27

Go to disk management

You will see the new volume of space you allocated during the configurations made before.

Computer Management 09-07-2023 17_43_50

To initialize right click

Computer Management 09-07-2023 17_46_01

Again click on unallocated volume > initialize the disk

Computer Management 09-07-2023 17_46_11

Then just click next till the end

Computer Management 09-07-2023 17_46_14

Computer Management 09-07-2023 17_46_20

Computer Management 09-07-2023 17_46_25

Computer Management 09-07-2023 17_46_34

Computer Management 09-07-2023 17_46_40

Now check in your file manager you'll see the volume mounted there.

This PC 09-07-2023 17_47_12

In the way above you can add NAS volume to your local client using TrueNAS by creating pools.

0
Subscribe to my newsletter

Read articles from Shubham Nimkar directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Shubham Nimkar
Shubham Nimkar

A passionate DevOps & High Performance Computing enthusiast from India