microsoft iscsi centos iscsi

운영자 | 기사입력 2013/01/01 [12:06]
>
필자의 다른기사 보기 인쇄하기 메일로 보내기 글자 크게 글자 작게
microsoft iscsi centos iscsi
 
운영자   기사입력  2013/01/01 [12:06]
microsoft iscsi

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=45105d7f-8c6c-4666-a305-c8189062a0d0



http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/System_management/iSCSI


서버에서 설치 centos 

yum -y install scsi-target-utils

vim  /etc/tgt/targets.conf

/etc/init.d/tgtd start


-A INPUT -m state --state NEW -m tcp -p tcp --dport 3260 -j ACCEPT

target config check

tgtadm --mode target --op show

====================================================
client 

yum -y install iscsi-initiator-utils

vim /etc/iscsi/initiatorname.iscsi

InitiatorName=iqn.2012-10.net.cpd:san.initiator01


InitiatorAlias=initiator01


vi /etc/iscsi/iscsid.conf




# To manually startup the session set to "manual". The default is automatic.
node.startup = automatic
# To enable CHAP authentication
node.session.auth.authmethod = CHAP
# To set a CHAP username and password for initiator
node.session.auth.username = iscsiadm
node.session.auth.password = iscsiadm123


/etc/init.d/iscsid start



Discovering targets in our iSCSI server:



# iscsiadm --mode discovery -t sendtargets --portal 172.16.201.200

172.16.201.200:3260,1 iqn.2012-10.net.cpd:san.target01



 Trying to login with the iSCSI LUN:



# iscsiadm --mode node --targetname iqn.2012-10.net.cpd:san.target01 --portal 172.16.201.200 --login

Logging in to [iface: default, target: iqn.2012-10.net.cpd:san.target01, portal: 172.16.201.200,3260] (multiple)
3Login to [iface: default, target: iqn.2012-10.net.cpd:san.target01, portal: 172.16.201.200,3260] successful






iscsiadm --mode discovery -t sendtargets --portal 192.168.0.56 192.168.0.56:3260,1 iqn.2012-10.net.cpd:san.target01

iscsiadm --mode node --targetname iqn.2012-10.net.cpd:san.target01 --portal 192.168.0.56 --login



 iscsiadm --mode node --targetname iqn.2012-10.net.cpd:san.target01 --portal 192.168.0.56 --login
Logging in to [iface: default, target: iqn.2012-10.net.cpd:san.target01, portal: 192.168.0.56,3260] (multiple)
Login to [iface: default, target: iqn.2012-10.net.cpd:san.target01, portal: 192.168.0.56,3260] successful.
[root@localhost iscsi]# 
[root@localhost iscsi]# cat /var/lib/iscsi/send_targets/192.168.0.56,3260/st_config 
# BEGIN RECORD 2.0-872.41.el6
discovery.startup = manual
discovery.type = sendtargets
discovery.sendtargets.address = 192.168.0.56
discovery.sendtargets.port = 3260
discovery.sendtargets.auth.authmethod = None
discovery.sendtargets.timeo.login_timeout = 15
discovery.sendtargets.use_discoveryd = No
discovery.sendtargets.discoveryd_poll_inval = 30
discovery.sendtargets.reopen_max = 5
discovery.sendtargets.timeo.auth_timeout = 45
discovery.sendtargets.timeo.active_timeout = 30
discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
# END RECORD
[root@localhost iscsi]# 


[root@localhost iscsi]# iscsiadm --mode session --op show
tcp: [6] 192.168.0.56:3260,1 iqn.2012-10.net.cpd:san.target01

트위터 트위터 페이스북 페이스북 카카오톡 카카오톡
기사입력: 2013/01/01 [12:06]  최종편집: ⓒ iwav