连接磁盘阵列的方法
——在RedHat linux系统下一、redhat
将磁盘阵列与主机连接
在PC机的网卡上挂载与磁盘阵列相同网段的IP,保证PC机能ping 通盘阵上提供的IP。
如果没有安装iscsi-initiator首先要下载适合系统内核的iscsi-initiator-utils [root@localhost ~]# yum install iscsi-initiator-utils
下载安装好后可寻找iscsi设备,结果显示为找到的设备
[root@localhost ~]# iscsiadm -m discovery -t st -p 192.168.144.197 192.168.144.197:3260,1 http://www.doczj.com/doc/438d304169eae009581bec8d.htmlrtrend:raid.sn7051919.00
设备ip后加上为上面查到的设备iqn号
[root@localhost ~]# iscsiadm -m node -p 192.168.144.197 -T iqn.2002-http://www.doczj.com/doc/438d304169eae009581bec8d.htmlrtrend:raid.sn7051919.00 -l
重启iscsi服务
[root@localhost ~]#/etc/init.d/iscsi restart 或者service iscsid restart Stopping iSCSI initiator service: [ OK ]
Starting iSCSI initiator service: [ OK ]
查看磁盘和iscsi设备
[root@localhost ~]# fdisk -l
Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1020 8193118+ 7 HPFS/NTFS
/dev/hda2 1021 6665 45343462+ f W95 Ext'd (LBA)