- 论坛徽章:
- 1
|
node1 10.1.1.128
node2 10.1.1.131
node3 10.1.1.1223
node1 node2 安装了iscsi,作为客户端
node3安装了iscsi-target,作为服务端
现在node1和node2可以login,但是fdisk -l看不到node3上面的/dev/sdb
求帮忙看看。- server端 10.1.1.128
- mount /dev/dvd /media
- yum install kernel-devel
- cd /usr/local/src/
- tar xzvf iscsitarget-1.4.20.2.tar.gz
- cd /usr/local/src/iscsitarget-1.4.20.2
- make
- make install
- chkconfig --add iscsi-target
- chkconfig iscsi-target on
- vi /etc/iet/ietd.conf
- target iqn.2014-08.lvm1:share_disk Lun 1 Path=/dev/sdb,Type=blockio,ScsiId=sdb
- Target iqn.2014-08.com.example:storage.disk2.sys1.xyz Lun 0 Path=/dev/sdb,Type=fileio,ScsiId=xyz,ScsiSN=xyz
- service iscsi-target start
- cat /proc/net/iet/volume
- cat /proc/net/iet/session
- 客户端 10.1.1.131
- mount /dev/dvd /media
- rpm -ivh iscsi-initiator-utils-6.2.0.871-0.16.el5.x86_64.rpm
- service iscsid start
- chkconfig iscsi on
- iscsiadm -m discovery -t sendtargets -p 10.1.1.223
- iscsiadm -m node -T iqn.2014-08.com.example:storage.disk2.sys1.xyz -p 10.1.1.223 -l
- iscsiadm -m session -P 1
-
- iscsiadm -m node -T iqn.2014-08.com.example:storage.disk2.sys1.xyz -p 10.1.1.223 --login
复制代码 |
|