Installation guide

Chapter 26. Storage pools
226
# service iptables restart
8. Verify the new targets
View the new targets to ensure the setup was success with the tgt-admin --show command.
# tgt-admin --show
Target 1: iqn.2010-05.com.example.server1:trial
System information:
Driver: iscsi
State: ready
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: 20000 MB
Online: Yes
Removable media: No
Backing store type: rdwr
Backing store path: /dev/virtstore/virtimage1
LUN: 2
Type: disk
SCSI ID: IET 00010002
SCSI SN: beaf12
Size: 10000 MB
Online: Yes
Removable media: No
Backing store type: rdwr
Backing store path: /var/lib/tgtd/virtualization/virtimage2.img
Account information:
ACL information:
ALL
Security warning
The ACL list is set to all. This allows all systems on the local network to access this device. It
is recommended to set host access ACLs for production environments.
9. Optional: Test discovery
Test whether the new iSCSI device is discoverable.
# iscsiadm --mode discovery --type sendtargets --portal server1.example.com
127.0.0.1:3260,1 iqn.2010-05.com.example.server1:trial1
10. Optional: Test attaching the device
Attach the new device (iqn.2010-05.com.example.server1:trial1) to determine whether
the device can be attached.