Server Uptime Competition Click Here to see current bragging rights.

Wilmington Isl Current
Navigation
The Band's New Album
Life Art Studio
Cool Guy
Sponsor Logo
User login

Getting an iscsi target working on a ClearOS 5.2 Install

A quick howto on making your ClearOS 5.2 Install host ISCSI shares for other devices to mount up and use.

nano /etc/suvad.conf
# Edit this line and change the port from 3260 to something else:
ifn="lo" port="3260" dst-host="rsb.clearsdn.com" dst-port="1875"/>
# Should not effect suvad backup service as there are two ports but did post in the forums on CC to confirm.
service suvad restart

# ED: Install the various bits and pieces you need here
yum install scsi-target-utils

# Now I am going to create a test iscsi target LUN
# I am using a simple Disk Based File here but you can point this at actual partitions - various google searches have all the info you could need on how to do this:

service tgtd start
tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2010-12.com:storage.jim.test
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/sdb1
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /fs.iscsi.disk
tgtadm --lld iscsi --op show --mode target
tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
# To make sure the above survives a restart
tgt-admin --dump > /etc/tgt/targets.conf
chkconfig tgtd on

# Here are a command that is probably worth noting as it becomes very useful off the bat:
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 --backing-store /backups/storage.jim.test.backup.img

# And if you need to confirm that everything is working the way you wrote/planned:

[root@portal tgt]# tgtadm --lld iscsi --op show --mode target
Target 1: iqn.2010-12.com:storage.jim.test
System information:
Driver: iscsi
State: readycouple of
I_T nexus information:
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00010000
SCSI SN: beaf10
Size: 0 MB
Online: Yes
Removable media: No
Backing store type: rdwr
Backing store path: None
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11
Size: 537 MB
Online: Yes
Removable media: No
Backing store type: rdwr
Backing store path: /fs.iscsi.disk
Account information:
ACL information:
ALL

Random image
The Wilderness Downtown
Recent Twitter Posts
Syndicate
Syndicate content