TrueNas
TrueNAS CORE used for Share Files, Serve Media, Store Anything. It can be used
from home to office to the data center for a variety of data-intensive use cases. it
gives you direct, user-friendly access to ZFS. With its built-in RAID, powerful data
management tools, and ability to automatically detect and repair silent data
corruption (and bit rot), TrueNAS and OpenZFS ensure data integrity from start to
finish. It is Unified Storage that integrates seamlessly into any environment with a
variety of file, block, or object access protocols.
PREREQUISITE
TrueNas Virtual Appliance : 172.16.97.139.
client machines : 172.16.97.132.
DEPLOYMENT PROCESS
------------------------------------- on TrueNas Machine --------------------------------------
after installing TrueNAS ISO and reboot it.
Manage with user interface that will be shown as the below screenshot.
First Step:-
Create Pool.
Press Add >> Create new Pool >> Name the Pool and add the wanted disks
Then Create ISCSI target
which is TrueNAS storage.
Go to Sharing > Block Shares (iSCSI). You can either set one up
manually or use WIZARD to guide you through creation.
Name the target and choose the Pool you created.
Then Press Next.
Configure the portal settings.
Initiators: a client which has authorized access to the storage data on the
TrueNAS system
to get the initiator name from the Client Linux Machine.
write cat /etc/iscsi/initiatorname.iscsi on Terminal
copy the output from the Terminal to the initiator and write Network
confirm the Target.
------------------------------------- on Linux Machine --------------------------------------
install the ISCSI Package.
yum -y install iscsi-initiator-utils
Discover Targets in ISCSI Server.
iscsiadm --mode discovery --type sendtargets --portal 172.16.97.139 –
discover 172.16.97.139:3260 iqn.2005-10.org.freenas.ctl:test
Expected output:
172.16.97.139:3260,-1 iqn.2005-10.org.freenas.ctl:test
Login to ISCSI LUN
iscsiadm --mode node --targetname iqn.2005-10.org.freenas.ctl:test
--portal 172.16.97.139 --login
Expected output
Login to [iface: default, target: iqn.2005-10.org.freenas.ctl:test,
portal: 172.16.97.139,3260] successful.
To check the added target
lsblk -l
to mount the disk
blkid /dev/sdc “depends on iscsi name”
UUID-XXXXXXXX-XXXX-XXXX-XXXXXXXX /iscsi ext4 _netdev 0 2