½ºÅ丮Áö°¡ ¾ø´Â ¾÷ü¿¡¼ ´ë¿ë·® ¼¹ö¸¦ ½ºÅ丮Áöó·³ »ç¿ë°¡´ÉÇÏ´Ù.
[root@rhel6 ~]# yum install scsi-target-utils
==============================================================================================================
Package Arch Version Repository Size
==============================================================================================================
Installing:
scsi-target-utils i686 1.0.24-12.el6_5 rhel-i386-server-6 172 k
Installing for dependencies:
perl-Config-General noarch 2.52-1.el6 rhel-i386-server-6 72 k
sg3_utils i686 1.28-5.el6 rhel-i386-server-6 471 k
Transaction Summary
==============================================================================================================
Install 3 Package(s)
Total download size: 715 k
Installed size: 0
Is this ok [y/N]:
/dev/sdb1
/dev/sdc1
[root@rhel6 ~]# chkconfig tgtd on
[root@rhel6 ~]# yum install iscsi-initiator-utils
==============================================================================================================
Package Arch Version Repository Size
==============================================================================================================
Installing:
iscsi-initiator-utils i686 6.2.0.873-10.el6 rhel-i386-server-6 635 k
iscsi-initiator-utils-devel i686 6.2.0.873-10.el6 rhel-i386-server-optional-6 48 k
Transaction Summary
==============================================================================================================
Install 2 Package(s)
Total download size: 683 k
Installed size: 0
Is this ok [y/N]:
[root@rhel6]# /etc/init.d/tgtd start
Starting SCSI target daemon: [ OK ]
[root@rhel6]# tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.theko:rockplace
[root@rhel6 iscsi]# tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/sdb1
[root@rhel6 iscsi]# tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 2 -b /dev/sdc1
[root@rhel6 iscsi]# tgtadm --lld iscsi --op show --mode target
[root@rhel6 iscsi]# tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
###########################################################################################################
Ŭ¶óÀ̾ðÆ®
[root@rhel6 ~]# yum install iscsi-initiator-utils
==============================================================================================================
Package Arch Version Repository Size
==============================================================================================================
Installing:
iscsi-initiator-utils i686 6.2.0.873-10.el6 rhel-i386-server-6 635 k
Transaction Summary
==============================================================================================================
Install 1 Package(s)
Total download size: 635 k
Installed size: 0
Is this ok [y/N]: y
# /etc/init.d/iscsi start
# /etc/init.d/iscsid start
iscsiadm -m node -T iqn.theko:rockplace -p 192.168.184.128 --login
[root@rhel6 ~]# iscsiadm -m node -T iqn.theko:rockplace -p 192.168.184.128 --login
Logging in to [iface: default, target: iqn.theko:rockplace, portal: 192.168.184.128,3260] (multiple)
Login to [iface: default, target: iqn.theko:rockplace, portal: 192.168.184.128,3260] successful
[root@rhel6 ~]# fdisk -l
Disk /dev/sda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000560bc
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 4961 39640064 83 Linux
/dev/sda3 4961 6267 10485760 83 Linux
/dev/sda4 6267 6528 2097152 5 Extended
/dev/sda5 6267 6528 2096128 82 Linux swap / Solaris
Disk /dev/sdb: 10.7 GB, 10733958144 bytes
64 heads, 32 sectors/track, 10236 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdc: 10.7 GB, 10733958144 bytes
64 heads, 32 sectors/track, 10236 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000