iscsi notes

# iscsiadm  -m discovery -t sendtargets -p

# iscsiadm  -m node -T -server-iscsi-target-target -p –login

find mapping:
# ll /dev/disk/by-path/ -> /sdb

make part:
# fdisk /dev/sdb

# mkfs.ext3 /dev/sdb1

mke2fs 1.39 (29-May-2006)
/dev/sdb1 is apparently in use by the system; will not make a filesystem here!

# iscsiadm  -m node -T
-server-iscsi-target-target -p –logout
On target:

Define an iSCSI target name:
# tgtadm –lld iscsi –op new –mode target –tid=1 –targetname iqn.2010-10.local.rhev:target1

To view the currect configuration:
# tgtadm –lld iscsi –op show –mode target

Add it as a logical unit to the target:
# tgtadm –lld iscsi –op new –mode logicalunit –tid 1 –lun 1 -b /dev/sdb

tgtadm  –lld iscsi –op bind –mode=target –tid=1 –initiator-address=


One response

  1. Pingback: How to clean a LUN « huffisland

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s