Techno Blog Just another Technology Blog

26Mar/110

Create iSCSI Initiator

This article outlines the process for installing packages and setting up an iSCSI initiator on Linux.

  1. Install iscsi-initiator-utils
  2. $ yum install iscsi-initiator-utils.x86_64

  3. Edit iscsid.conf as needed
  4. $ vi /etc/iscsi/iscsid.conf

  5. Start iscsi daemon
  6. $ /etc/init.d/iscsi start

  7. Discover targets
  8. $ iscsiadm -m discovery -t sendtargets -p 192.168.1.70

  9. Restart iscsi daemon
  10. $ /etc/init.d/iscsi restart

  11. Identify, partition, make filesystem, and mount disk
  12. $ dmesg | grep scsi
    scsi0 : ioc0: LSI53C1030 B0, FwRev=00000000h, Ports=1, MaxQ=128, IRQ=67
    sd 0:0:0:0: Attached scsi disk sda
    sd 0:0:0:0: Attached scsi generic sg0 type 0
    iscsi: registered transport (cxgb3i)
    iscsi: registered transport (bnx2i)
    iscsi: registered transport (tcp)
    iscsi: registered transport (iser)
    iscsi: registered transport (be2iscsi)
    scsi1 : iSCSI Initiator over TCP/IP
    scsi 1:0:0:0: Attached scsi generic sg1 type 12
    sd 1:0:0:1: Attached scsi disk sdb
    sd 1:0:0:1: Attached scsi generic sg2 type 0
    
    $ fdisk /dev/sdb
    
    $ mkdir -m 755 /data01
    
    $ mkfs.ext3 /dev/sdb1
    
    $ mount /dev/sdb1 /data01

Related Posts

Create iSCSI Target

Filed under: Linux, SCSI Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.