FREENAS安装与配置ISCSI服务
一、FreeNAS配置
从FREENAS官网上获取FREENAS安装文件,FreeNAS-i386-LiveCD-0.7.2.6694此版本为中文版,用着比较容易上手。
虚拟机的配置:
![Win03+Sql2005+FreeNAS群集(二)_FreeNAS](https://s2.51cto.com/attachment/201110/183219822.jpg?x-oss-process=image/resize,m_fixed,w_1184)
开机前将FREENAS的光盘加载到光驱;
![Win03+Sql2005+FreeNAS群集(二)_FreeNAS_02](https://s2.51cto.com/attachment/201110/183236136.jpg?x-oss-process=image/resize,m_fixed,w_1184)
选择9,安装FREENAS到硬件或者闪存设备上;
![Win03+Sql2005+FreeNAS群集(二)_ISCSI_03](https://s2.51cto.com/attachment/201110/183309679.jpg?x-oss-process=image/resize,m_fixed,w_1184)
在第一项选择【OK】;
![Win03+Sql2005+FreeNAS群集(二)_FreeNAS_04](https://s2.51cto.com/attachment/201110/183339395.jpg?x-oss-process=image/resize,m_fixed,w_1184)
选择安装文件所在介质;
![Win03+Sql2005+FreeNAS群集(二)_ISCSI_05](https://s2.51cto.com/attachment/201110/183425495.jpg?x-oss-process=image/resize,m_fixed,w_1184)
选择要安装FREENAS的磁盘;
![Win03+Sql2005+FreeNAS群集(二)_MSCS配置_06](https://s2.51cto.com/attachment/201110/183518725.jpg?x-oss-process=image/resize,m_fixed,w_1184)
安装成功后,按回车重新启动系统;
![Win03+Sql2005+FreeNAS群集(二)_数据库_07](https://s2.51cto.com/attachment/201110/184017490.jpg?x-oss-process=image/resize,m_fixed,w_1184)
设置IP地址,选着【2】;
IP地址192.168.1.13
设置子网掩码;
设置网关
![Win03+Sql2005+FreeNAS群集(二)_MSCS配置_11](https://s2.51cto.com/attachment/201110/184214916.jpg?x-oss-process=image/resize,m_fixed,w_1184)
设置完成后返回即可;
安装到此就结束了,下面到WEB页面里面配置ISCSI了;
二、配置FREENAS
FREENAS默认登陆用户为:admin 密码:freenas
![Win03+Sql2005+FreeNAS群集(二)_ISCSI_13](https://s2.51cto.com/attachment/201110/185334688.jpg?x-oss-process=image/resize,m_fixed,w_1184)
可以将软件设置为简体中文”system”—“General”—“webGUI”—“languge”;
![Win03+Sql2005+FreeNAS群集(二)_数据库_14](https://s2.51cto.com/attachment/201110/185354666.jpg?x-oss-process=image/resize,m_fixed,w_1184)
选择“硬盘”—“管理”—“Rescan disks”,将所以硬盘添加上;
![Win03+Sql2005+FreeNAS群集(二)_MSCS配置_15](https://s2.51cto.com/attachment/201110/185418859.jpg?x-oss-process=image/resize,m_fixed,w_1184)
已将要操作的的分区添加;
![Win03+Sql2005+FreeNAS群集(二)_FreeNAS_16](https://s2.51cto.com/attachment/201110/185439741.jpg?x-oss-process=image/resize,m_fixed,w_1184)
接下来设置ISCSI服务,选择“服务”—“ISCSI目标”—“Initators”配置认证的网段;
![Win03+Sql2005+FreeNAS群集(二)_MSCS配置_17](https://s2.51cto.com/attachment/201110/185542602.jpg?x-oss-process=image/resize,m_fixed,w_1184)
配置端口选项,“Portals”;
![Win03+Sql2005+FreeNAS群集(二)_SQL群集_18](https://s2.51cto.com/attachment/201110/185556937.jpg?x-oss-process=image/resize,m_fixed,w_1184)
配置目标选项卡,先设置好“extent”,在设置“目标”
![Win03+Sql2005+FreeNAS群集(二)_FreeNAS_19](https://s2.51cto.com/attachment/201110/185622604.jpg?x-oss-process=image/resize,m_fixed,w_1184)
最后配置“设置”选项,将”ISCSI”中的“启动”打上钩保存;
![Win03+Sql2005+FreeNAS群集(二)_ISCSI_20](https://s2.51cto.com/attachment/201110/185645748.jpg?x-oss-process=image/resize,m_fixed,w_1184)
查看服务状态,ISCSI服务器以成功启动并服务;
![Win03+Sql2005+FreeNAS群集(二)_FreeNAS_21](https://s2.51cto.com/attachment/201110/185702269.jpg?x-oss-process=image/resize,m_fixed,w_1184)
到此,使用微软的“Microsoft Iscsi Initiator”即可添加磁盘到计算机了。