iSCSI
iSCSI
is an acronym for Internet Small Computer Systems Interface
, an Internet Protocol (IP)-based storage networking standard for linking data storage facilities. It provides block-level access to storage devices by carrying SCSI
commands over a TCP/IP network.
- An
initiator
functions as an iSCSI client. - An iSCSI
target
is often a dedicated network-connected hard disk storage device. Typically a NAS or a SAN.
Refer to you NAS documentation to create iSCSI drives.
Initiator installation
To be able to use iSCSI drive you need to install open-iscsi
.
sudo apt install open-iscsi
Configuration
Configuration file could be located at /etc/iscsi/iscsid.conf
or ~/.iscsid.conf
( sudo less /etc/iscsi/iscsid.conf
), but you can do mostly everything using iscsiadm
.
Usage
sudo iscsiadm --mode discovery -t sendtargets --portal 192.168.1.122
sudo iscsiadm --mode node --targetname iqn.2004-04.com.qnap:ts-653a:iscsi.flickr.f6d305 --portal 192.168.1.122 --login
Identifying partition with NTFS file system
sudo fdisk -l | grep NTFS
Create a folder for mount point.
sudo mkdir /mnt/iscsi-ntfs
Mount the disk with
sudo mount -t ntfs /dev/sdc1 /mnt/iscsi-ntfs