安装openfiler

1.下载openfiler 2.99系统镜像

下载地址:http://tenet.dl.sourceforge.net/project/openfiler/openfiler-distribution-iso-2.99-x64…

虚拟机里面安装Openfiler 2.99虚拟机里面安装Openfiler 2.99

虚拟机 部署 openrestry 虚拟机安装openfiler_服务器

2.创建虚拟机

新建虚拟机

虚拟机 部署 openrestry 虚拟机安装openfiler_linux_02


选择“稍后安装操作系统”,并点击“下一步”

虚拟机 部署 openrestry 虚拟机安装openfiler_服务器_03


“选择客户机操作系统”为Linux,版本为Red Hat Enterprise 5 64位

虚拟机 部署 openrestry 虚拟机安装openfiler_linux_04


给虚拟机起一个名字

虚拟机 部署 openrestry 虚拟机安装openfiler_linux_05


指定磁盘容量大小

虚拟机 部署 openrestry 虚拟机安装openfiler_重启_06


添加系统镜像,准备安装系统

虚拟机 部署 openrestry 虚拟机安装openfiler_linux_07

3.安装系统

开启虚拟机,进入此界面请按下回车

虚拟机 部署 openrestry 虚拟机安装openfiler_重启_08


点击下一步

虚拟机 部署 openrestry 虚拟机安装openfiler_安装系统_09


选择适当的键盘

虚拟机 部署 openrestry 虚拟机安装openfiler_安装系统_10


初始化磁盘,选择"Yes"

虚拟机 部署 openrestry 虚拟机安装openfiler_服务器_11


创建分区,选择"Yes"

虚拟机 部署 openrestry 虚拟机安装openfiler_服务器_12

我选择的是dhcp自动分配地址,如果用静态地址需要手动配置。

虚拟机 部署 openrestry 虚拟机安装openfiler_linux_13

选择时区


设置root密码

虚拟机 部署 openrestry 虚拟机安装openfiler_服务器_14


点击“Next”进行安装

虚拟机 部署 openrestry 虚拟机安装openfiler_linux_15


安装完成,选择“Reboot”重启系统

配置openfiler 的iscsi目标服务器

1.重启进入操作系统

虚拟机 部署 openrestry 虚拟机安装openfiler_虚拟机 部署 openrestry_16

2.添加3块scsi硬盘

添加三块30G的scsi硬盘

虚拟机 部署 openrestry 虚拟机安装openfiler_虚拟机 部署 openrestry_17


:然后登陆操作系统

重新扫描scsi硬盘:

虚拟机 部署 openrestry 虚拟机安装openfiler_重启_18

3.登录web界面

登录地址就是启动时页面上显示的IP地址:

虚拟机 部署 openrestry 虚拟机安装openfiler_安装系统_19


用户名是:openfiler , 密码是:password

虚拟机 部署 openrestry 虚拟机安装openfiler_linux_20

4.磁盘配置RAID5

选择"Volumes"选项

虚拟机 部署 openrestry 虚拟机安装openfiler_安装系统_21


选择右测得菜单栏“Block Devices”

虚拟机 部署 openrestry 虚拟机安装openfiler_安装系统_22


点击刚添加的三块硬盘

虚拟机 部署 openrestry 虚拟机安装openfiler_重启_23


创建raid分区类型

虚拟机 部署 openrestry 虚拟机安装openfiler_linux_24


选择右侧的“Software RAID”

虚拟机 部署 openrestry 虚拟机安装openfiler_重启_25


创建RAID5分区,点击“Add array”

虚拟机 部署 openrestry 虚拟机安装openfiler_虚拟机 部署 openrestry_26

5.创建逻辑卷

用刚才创建好的raid5分区创建逻辑卷

点击“Volume Groups”

虚拟机 部署 openrestry 虚拟机安装openfiler_linux_27


点击“create new physical volumes"

虚拟机 部署 openrestry 虚拟机安装openfiler_虚拟机 部署 openrestry_28


给卷组起一个名字叫“VG1”,选择物理卷“/dev/md0”

虚拟机 部署 openrestry 虚拟机安装openfiler_安装系统_29


点击右侧的“Add volume”

虚拟机 部署 openrestry 虚拟机安装openfiler_服务器_30


创建卷,卷的名字叫“LV1”,卷描述“this is LV1”,容量调整为最大,FileSystem / Volume type: 选择 block(iSCSI,FC,etc)

虚拟机 部署 openrestry 虚拟机安装openfiler_服务器_31

6.启动iscsi目标服务器

虚拟机 部署 openrestry 虚拟机安装openfiler_重启_32

7.配置访问控制列表,iscsi目标服务器

选择“System”

虚拟机 部署 openrestry 虚拟机安装openfiler_重启_33


选择允许访问的ip地址或一个网段,然后点击“update”

虚拟机 部署 openrestry 虚拟机安装openfiler_安装系统_34


选择Volumes

虚拟机 部署 openrestry 虚拟机安装openfiler_重启_35


选择右边的“iSCSI Targets”

虚拟机 部署 openrestry 虚拟机安装openfiler_服务器_36


添加一个target IQN

虚拟机 部署 openrestry 虚拟机安装openfiler_虚拟机 部署 openrestry_37


选择“LUN Mapping”,然后进行映射

虚拟机 部署 openrestry 虚拟机安装openfiler_服务器_38


选择“Network ACL”,“ACCESS”下面改成“Allow”,然后点击“update”

虚拟机 部署 openrestry 虚拟机安装openfiler_服务器_39

连接iscsi测试

打开iscsi发起程序,连接改iscsi目标服务器

虚拟机 部署 openrestry 虚拟机安装openfiler_linux_40