| 1 |
Quick Start |
| 2 |
----------- |
| 3 |
|
| 4 |
Copy sample configuration files after installation. |
| 5 |
|
| 6 |
# cd /usr/local/etc/istgt |
| 7 |
# cp auth.conf.sample auth.conf |
| 8 |
# cp istgt.conf.sample istgt.conf |
| 9 |
# cp istgtcontrol.conf.sample istgtcontrol.conf |
| 10 |
|
| 11 |
Edit istgt.conf. |
| 12 |
3 sections below at least need modification against your own copy of |
| 13 |
istgt.conf.sample. |
| 14 |
|
| 15 |
[PortalGroup1] IP address |
| 16 |
[InitiatorGroup1] Initiator name and netmask |
| 17 |
[LogicalUnit1] LUN0 allocated file name and size |
| 18 |
|
| 19 |
[PortalGroup1] |
| 20 |
Portal DA1 192.168.2.36:3260 |
| 21 |
|
| 22 |
Replace 192.168.2.36 with your server IP. |
| 23 |
Because 3260 is standard iSCSI port, 3260 does not need modification. |
| 24 |
|
| 25 |
[InitiatorGroup1] |
| 26 |
InitiatorName "iqn.1991-05.com.microsoft:saturn" |
| 27 |
Netmask 192.168.2.0/24 |
| 28 |
|
| 29 |
Replace "iqn.1991-05.com.microsoft:saturn" with your allowed initiator |
| 30 |
name and 192.168.2.0/24 with your allowed IP or CIDR. |
| 31 |
If you need any initiator names or IPs, use special word ALL instead. |
| 32 |
|
| 33 |
[LogicalUnit1] |
| 34 |
LUN0 Storage /tank/iscsi/istgt-disk1 10GB |
| 35 |
|
| 36 |
Replace /tank/iscsi/istgt-disk1 with your correct path and 10GB with |
| 37 |
the size you want. |
| 38 |
You can specify the size also with MB or TB. |
| 39 |
When the device file (/dev/ad1, /dev/zvol/tank/vol, etc.) is specified, |
| 40 |
Auto can be specified for the size. |
| 41 |
|
| 42 |
After finishing to edit istgt.conf, start daemon by the script. |
| 43 |
|
| 44 |
# /usr/local/etc/rc.d/istgt forcestart |
| 45 |
|
| 46 |
Check messages on terminal and syslog (usually /var/log/messages). |
| 47 |
An error message may only appear at syslog. |
| 48 |
|
| 49 |
Add istgt_enable="YES" to /etc/rc.conf. |
| 50 |
|
| 51 |
You have done. |