Rhel6.5ISCSI

时间:2018-06-05 13:29:50
【文件属性】:

文件名称:Rhel6.5ISCSI

文件大小:56KB

文件格式:DOCX

更新时间:2018-06-05 13:29:50

ISCSI

ISCSI在rhel原生环境下载 iSCSI (Internet Small Computer System Interface) FUCTION SAN (Storage Area Network) PROTOCOL 3260/tcp (iscsi) 拓扑 Linux Server Client hostname: server.grady.com client.grady.com ip: 172.16.100.101/24 172.16.100.102/24 physical: Host-only Host-only yum: ok ok system: RHEL 6.5 RHEL 6.5 disk: OS+sdb(2G) OS selinux: permissive permissive [root@Service ~]# echo 172.16.100.101 server.grady.com >> /etc/hosts [root@Service ~]# echo 172.16.100.102 client.grady.com >> /etc/hosts [root@Service ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 172.16.100.101 server.grady.com 172.16.100.102 client.grady.com [root@Service ~]# yum -y install scsi-target-utils [root@Service ~]# /etc/init.d/tgtd start [root@Service ~]# chkconfig tgtd on [root@Service ~]# echo ''>> /etc/tgt/targets.conf [root@Service ~]# echo 'backing-store /dev/sdb'>> /etc/tgt/targets.conf [root@Service ~]# echo 'write-cache off'>> /etc/tgt/targets.conf [root@Service ~]# echo 'initiator-address 172.16.100.0/24'>> /etc/tgt/targets.conf [root@Service ~]# echo ''>> /etc/tgt/targets.conf [root@Service ~]# /etc/init.d/tgtd restart Force-stopping SCSI target daemon: [ OK ] Starting SCSI target daemon: [ OK ] [root@Service ~]# netstat -lutnp |grep 3260 tcp 0 0 0.0.0.0:3260 0.0.0.0:* LISTEN 12695/tgtd tcp 0 0 :::3260 :::* LISTEN 12695/tgtd [root@Service ~]# tgt-admin --show | grep Target Target 1: iqn.2015-05.com.grady:server.kite [root@Service ~]# iptables -I INPUT 5 -p tcp -s 172.16.100.0/24 --dport 3260 -j ACCEPT [root@Service ~]# /etc/init.d/iptables save


网友评论