在先前LiveMigration之二创建ISCSI存储里面我们有谈到过如何用软件实现ISCSI存储,在这篇博文里面我们就来主要介绍一下如何通过Windows Storange Server 2008来实现这一功能。

1、安装ISCSItarget

安装Windows Storange Server 2008操作系统

ISCSI存储之Windows Storange Server 2008解决篇

如果采用hyper-v作为虚拟机,那就要”Legacy Network adapter”类型网卡,具体原因我在我先前博客(微软虚拟化之二Hyper-V R2的高级配置)里面有详细介绍

ISCSI存储之Windows Storange Server 2008解决篇

安装语言包

ISCSI存储之Windows Storange Server 2008解决篇

安装进行中

ISCSI存储之Windows Storange Server 2008解决篇

安装ISCSI Target软件

ISCSI存储之Windows Storange Server 2008解决篇

完成安装

ISCSI存储之Windows Storange Server 2008解决篇

2、创建ISCSI目标和存储

点击开始——所有程序——管理工具——Microsoft iSCSI Software Target

ISCSI存储之Windows Storange Server 2008解决篇

右击iSCSI目标,点击创建iSCSI目标。iSCSI 目标是什么呢?通俗点说就是将来要用到这些存储的Server。

ISCSI存储之Windows Storange Server 2008解决篇

给iSCSI 目标命名,注意这里只能采用英文和数字来命名

ISCSI存储之Windows Storange Server 2008解决篇

点击高级

ISCSI存储之Windows Storange Server 2008解决篇

选择添加

ISCSI存储之Windows Storange Server 2008解决篇

在这里我们根据实验环境选择ip地址,并填入相应的ip

ISCSI存储之Windows Storange Server 2008解决篇

如图,我们可以看到我们添加的ISCSI目标

ISCSI存储之Windows Storange Server 2008解决篇

这样子就完成了ISCSI目标的创建

ISCSI存储之Windows Storange Server 2008解决篇

右击设备,选择创建虚拟磁盘

ISCSI存储之Windows Storange Server 2008解决篇

定义一个磁盘的路径,注意后缀名是.vhd

ISCSI存储之Windows Storange Server 2008解决篇

因为这个磁盘我们是用于后期的仲裁磁盘,所以我们只要1G就可以了

ISCSI存储之Windows Storange Server 2008解决篇

添加磁盘描述

ISCSI存储之Windows Storange Server 2008解决篇

选择用于访问这块磁盘的ISCSI目标

ISCSI存储之Windows Storange Server 2008解决篇

这样子就创建了一块磁盘,是不是很简单啊!!

ISCSI存储之Windows Storange Server 2008解决篇

依次我们添加了两块磁盘

ISCSI存储之Windows Storange Server 2008解决篇

3、在客户端发现磁盘

首先我们应该在WSS Server 服务器上防火墙中开启iSCSI服务

ISCSI存储之Windows Storange Server 2008解决篇

在测试机中启用ISCSI Intiiator,在NT6以及NT6.1系统中就集成了这个iSCSI 发现程序

在Quick Connect添加WSS 的ip

ISCSI存储之Windows Storange Server 2008解决篇

这样子就连接成功了

ISCSI存储之Windows Storange Server 2008解决篇

然后在测试机的Disk Manager里面就看到了当前添加的两块硬盘

ISCSI存储之Windows Storange Server 2008解决篇