centos6 设置iscsi

安装iscsi包:
root@pts/1 # yum install iscsi\*
 
root@pts/1 # rpm -qa | grep iscsi\*
iscsi-initiator-utils-devel-6.2.0.873-10.el6.x86_64
iscsi-initiator-utils-6.2.0.873-10.el6.x86_64

查看开机启动:
chkconfig --list | grep iscsi

附加iscsi内网:
ifconfig em1:0 192.168.130.151 netmask 255.255.0.0 up

查找iscsi设备。
root@pts/1 # iscsiadm -m discovery -t sendtargets -p 192.168.130.102
Starting iscsid:                                           [  OK  ]
192.168.130.102:3260,1 iqn.1984-05.com.dell:powervault.md3200i.6d4ae520009b47a000000000508444be

登陆iscsi设备:
root@pts/1 # iscsiadm -m node -T iqn.1984-05.com.dell:powervault.md3200i.6d4ae520009b47a000000000508444be -p 192.168.130.102:3260 --login
Logging in to [iface: default, target: iqn.1984-05.com.dell:powervault.md3200i.6d4ae520009b47a000000000508444be, portal: 192.168.130.102,3260] (multiple)
Login to [iface: default, target: iqn.1984-05.com.dell:powervault.md3200i.6d4ae520009b47a000000000508444be, portal: 192.168.130.102,3260] successful.

查看到多出一块磁盘:
fdisk -l

挂载:
mount 多出的磁盘 挂载目录名


其他操作命令:
iscsiadm -m node -o show
iscsiadm -m discover -o show

文档参考:
http://www.ipython.me/centos/centos-6-5-install-iscsi-initiator-2.html


你可能感兴趣的:(centos6,设置iscsi)