1.安装iSCSI驱动程序;
2.Linux主机安装iSCSI Initiator;
3.配置iSCSI Inititor,主要是IP地址和InitiatorName,这一步得重启进程;
#vi /etc/iscsi.conf
DiscoveryAddress=10.0.1.1
:wq!保存退出;
#/etc/init.d/iscsi restart
#vi /etc/initiatorname.iscsi
InitiatorName=iqn.2008-01.com:hostname
:wq!
#service iscsi restart
#iscsi -ls
4.配置存储资源,格式化分区
#iscsi-ls -l
#fdisk -l
#fdisk /dev/sdc
#m
#n
#p
#l
#w
#fdisk -l
#mkfs -t ext3 /dev/sdc1
5.配置自动挂载
#mkdir /test
#tune2fs -l /dev/sdc1 |grep uuid