[Turn] virtualization (D): vsphere high availability features premise - shared storage building

vsphere advanced features HA, DRS, FT, etc., we need to have shared storage environment that multiple esxi hosts to connect to a shared storage, so that when a new virtual machine, you can specify the virtual disk stored on shared storage for easy virtual machine between various hosts "drift."

    Common stored DAS / NAS / SAN / iSCSI / FC and so on. Because isolated storage price is relatively expensive, so, here I will use the iscsi software target Microsoft's installation (win server 2012 already comes) on windows 2008 server.

   Download: http://www.microsoft.com/en-us/download/details.aspx?id=19867 


    Of course, you can use the free open source openfiler, previously we have said http://blog.csdn.net/chaofanwei/article/details/37054451 .

 

1、安装iscsi softwaretarget

          Installation is very simple, it is no longer in detail, has been fundamental is the next step in the end.

 

2, New iscsi target and storage

       After installing iscsi softwaretarget, there is a shortcut in the Start menu, open as shown below (here I've built two goals, while pointing to a device).

2.1, the new storage

      Right-click the "Device", select New virtual disk.


      Select the location to save the virtual disk, remember to borrow to .vhd end.

      Enter the virtual disk size.

      Enter the virtual disk description, it can be empty, skip, and click Next.
     Can access the target, because there is no construction, skip, click Next to complete.

 

 

2.2 New iscsi target and associated storage

 

    Right-click on "iscsi target", select New iscsi target.

    输入iscsi目标名称,描述可控。
    选择IQN标示符,用于验证客户端身份,可以通过IP,DNS,ISCSI访问标识等。然后点击完成。
    右击刚才新建的iscsi目标,选择“为iscsi目标添加现有虚拟磁盘”,并选择相应的虚拟磁盘,完成。

 

3、关联iscsi目标到vsphere

 

   使用vsphere client登录到vcenter server。
   选择某一主机->配置->存储适配器,添加一个新的iscsi 存储适配器,添加完后,编辑。

     

       配置iscsi发起程序名称和目标ip地址。

 

 

 

      添加存储器

      选择磁盘/LNU类型

然后选择刚才的存储器,即可一直到完成即可。

效果如图  

 

最后再把另一个主机安装上面的步骤配置共享存储,效果如下。

 

 

vsphere高级功能HA、DRS、FT等,都需要有共享存储环境,即多台esxi主机同时连接一个共享存储,这样在新建虚拟机时,可以指定把虚拟磁盘保存在共享存储上,便于虚拟机在各个主机之间“飘移”。

    常见的存储有DAS/NAS/SAN/iSCSI/FC等。由于独立存储价格相对昂贵,因此,在这里我将使用微软提供的iscsi software target在windows 2008 server上安装(win server 2012 已经自带了)。

   下载地址:http://www.microsoft.com/en-us/download/details.aspx?id=19867 


    当然也可以使用免费开源的openfiler,之前已经说过了http://blog.csdn.net/chaofanwei/article/details/37054451

 

1、安装iscsi softwaretarget

          安装非常简单,就不再详细说了,基本就是一直下一步到底。

 

2、新建iscsi目标和存储

       安装完iscsi softwaretarget后,在开始菜单里有快捷方式,打开后如下图所示(这里我已经新建了两个目标,同时指向一个设备)。

2.1、新建存储

      右击“设备”,选择新建虚拟磁盘。


      选择虚拟磁盘保存位置,记得要以.vhd借结尾。

      输入虚拟磁盘大小。

      输入虚拟磁盘描述,可为空,直接跳过,点击下一步。
     可访问的目标,因为目前没有建,跳过,点击下一步完成。

 

 

2.2 新建iscsi目标并关联存储

 

    右击“iscsi 目标”,选择新建iscsi 目标。

    输入iscsi目标名称,描述可控。
    选择IQN标示符,用于验证客户端身份,可以通过IP,DNS,ISCSI访问标识等。然后点击完成。
    右击刚才新建的iscsi目标,选择“为iscsi目标添加现有虚拟磁盘”,并选择相应的虚拟磁盘,完成。

 

3、关联iscsi目标到vsphere

 

   使用vsphere client登录到vcenter server。
   选择某一主机->配置->存储适配器,添加一个新的iscsi 存储适配器,添加完后,编辑。

     

       配置iscsi发起程序名称和目标ip地址。

 

 

 

      添加存储器

      选择磁盘/LNU类型

然后选择刚才的存储器,即可一直到完成即可。

效果如图  

 

最后再把另一个主机安装上面的步骤配置共享存储,效果如下。

 

 

Guess you like

Origin www.cnblogs.com/wwtao/p/11514663.html