服务器维护,服务器代维,安全设置,漏洞扫描,入侵检测服务

dirtysea 发表于 2010-6-30 15:55:24

使用Openfiler为VMware ESX设置一个免费的iSCSI或NAS储存系统

<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: '宋体, Arial, Helvetica, sans-serif, Verdana'; line-height: normal; font-size: 12px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><p align="center" style="font-family: '宋体, Arial, Helvetica, sans-serif, Verdana'; font-size: 12px; color: rgb(0, 0, 0); "><a href="http://www.xuniji.com/upload/vmware/20080919135350pq.jpg" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img src="http://www.xuniji.com/upload/vmware/20080919135350pq.jpg" border="0" alt="点击查看大图"></a></p><font id="remark_view" style="font-size: 14px; ">所有在此文章中提到的工具都是免费的,你不需要在软件上花一分钱来设置本系统。最终你能够建立一个集中管理的iSCSI或NAS存储系统用来存放所有ESX的客户文件、允许使用VMotion、HA和DRS服务。&nbsp;<br><br>VMware ESXi现在可以免费在这里下载<img border="0" src="http://www.xuniji.com/images/skin/small/url.gif" align="absmiddle"><a target="_blank" href="http://www.vmware.com/products/esxi/" style="color: rgb(0, 0, 0); text-decoration: none; ">http://www.vmware.com/products/esxi/</a>。Openfiler NAS/iSCSI可以在这里免费下载<img border="0" src="http://www.xuniji.com/images/skin/small/url.gif" align="absmiddle"><a target="_blank" href="http://www.openfiler.com/community/download/" style="color: rgb(0, 0, 0); text-decoration: none; ">http://www.openfiler.com/community/download/</a>。&nbsp;<br><br>一切准备就绪,现在开始。&nbsp;<br><br>首先,我们使用Openfiler来设置一个iSCSI或NAS设备。你可以从上面的链接来下载Openfiler,他的安装非常的简单(类似于VMware ESX)。以下是具体的步骤:&nbsp;<br><br><b>OpenFiler的安装</b>&nbsp;<br><br><b>开始安装</b>&nbsp;<br>插入Openfiler盘到你的CD/DVD-ROM中并**系统从CD/DVD-ROM启动。回车继续。&nbsp;<br><br><b>启动</b>&nbsp;<br>按回车开始图形化安装模式&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919132910m0.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919132910m0.png"></a>&nbsp;<br><br><b>安装</b>&nbsp;<br>现在出现在你面前的是初始安装画面。按Next继续。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919132951n4.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919132951n4.png"></a>&nbsp;<br><br><b>键盘布局</b>&nbsp;<br>选择适合你的键盘布局。按Next继续。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919133030vu.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919133030vu.png"></a>&nbsp;<br><br><b>磁盘分区</b>&nbsp;<br>我们需要在这里做手动设置。选择’Manual partition with Disk Druid’。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919133121c9.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919133121c9.png"></a>&nbsp;<br><br>在系统上建立3个分区来完成Openfiler的安装:&nbsp;<br><br>“/boot” - 系统及核心文件所在的启动分区&nbsp;<br>“swap” - 用于内存到磁盘的交换分区&nbsp;<br>“/” - 系统的主分区,所以的系统文件和库都将被安装到这里&nbsp;<br><br>创建/boot分区&nbsp;<br><br>单击’New’,在出现的**框中输入分区挂接路径”/boot”及在所选的磁盘上建立该分区(确定该磁盘是你想要安装Openfiler的,不是要给ESX服务器使用的)&nbsp;<br><br>创建boot分区所需填写的资料如下:&nbsp;<br><br>1. Mount Point: /boot&nbsp;<br>2. Filesystem Type: ext3&nbsp;<br>3. Allowable Drives: 就像之前说的,确定该硬盘是你想要安装Openfiler的。&nbsp;<br>4. Size(MB): 100&nbsp;<br>5. Additional Size Options: 选择‘Fixed Size’&nbsp;<br>6. Force to be a primary partition: 打勾 (选择该选项把该分区创建为主分区)&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919133200j8.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919133200j8.png"></a>&nbsp;<br><br><b>创建/(root)主分区</b>&nbsp;<br>单击’New’,在出现的**框中输入分区挂接路径‘/’ 和大小:必须2048MB或最小1024MB.&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919133235uq.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919133235uq.png"></a>&nbsp;<br><br><b>创建交换分区</b>&nbsp;<br>单击’New’,在出现的**框中输入分区挂接路径’swap’。大小:至少为1024MB或不超过2048MB。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919133307ag.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919133307ag.png"></a>&nbsp;<br><br>单击’OK’来创建该分区。现在所有为安装Openfiler操作系统的分区都已建好。你所创建的磁盘分区表应该与下面类似。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919133348qq.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919133348qq.png"></a>&nbsp;<br><br><b>网络配置</b>&nbsp;<br>现在我们来配置你的网卡(IP地址等),系统hostname和DNS参数。&nbsp;<br><br>我们必须配置至少一个网卡用于访问Openfiler的网页界面和在网络上为ESX客户传送数据。(在此阶段,你也可以选择DHCP来设置网络地址,然后简单的单击下一步**到下一个安装画面)。&nbsp;<br><br>在’Network Devices’部分单击’Edit’,设置一个IP地址和主机名。&nbsp;<br><br>网卡设备被设置为ethX, X从数字0开始。因此第一个网络设备是eth0。&nbsp;<br><br>当设置了IP地址后,你需要输入一个主机名hostname。默认的主机名为localhost.localdomain,你需要输入一个更有代表意义的名称,如’openfiler.host.com’&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919133423p7.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919133423p7.png"></a>&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/200809191334521j.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/200809191334521j.png"></a>&nbsp;<br><br><b>时区选择&nbsp;</b><br>设置默认的系统时区。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919133539bp.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919133539bp.png"></a>&nbsp;<br><br><b>设置root系统管理员密码</b>&nbsp;<br>你必须设置一个root系统管理员密码。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919133909lj.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919133909lj.png"></a>&nbsp;<br><br><b>开始正式安装&nbsp;</b><br>单击’Next’,等待安装完成。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919134006h2.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919134006h2.png"></a>&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/200809191340341a.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/200809191340341a.png"></a>&nbsp;<br><br>现在我们完成了Openfiler的安装,下一步是设置给ESX提供一些磁盘空间。&nbsp;<br><br><b>登入到Openfiler的网页管理界面</b>&nbsp;<br>打开浏览器,并输入https//openfiler的IP:446。登入的用户名是openfiler, 密码是password&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/200809191341250h.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/200809191341250h.png"></a>&nbsp;<br><br><b>开启一些必须的服务&nbsp;</b><br>在默认情况下,Openfiler的iSCSI和NAS服务是被禁止的。我们必须开启这些服务以便于接下来的设置。单击’Services’选项,开启iSCSI target, NFSv3 和SMB/CIFS服务。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919134212es.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919134212es.png"></a>&nbsp;<br><br><b>下一步我们需要创建一个用于ESX服务器磁盘分区&nbsp;</b><br>单击’Volumes’选项,然后单击’Block Devices’。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919134247nv.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919134247nv.png"></a>&nbsp;<br><br>下一步,选择你安装了Openfiler的硬盘(应该有一些空余的空间)。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919134322ju.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919134322ju.png"></a>&nbsp;<br><br>在屏幕的底部你可以看到’create a partition in /dev/磁盘名’。在我的硬盘上有65GB的空余空间,所以我使用下面的属性建立了一个50GB的分区。点击’Create’。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919134357zi.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919134357zi.png"></a>&nbsp;<br><br><b>创建一个卷组(Volume Group)&nbsp;</b><br>我们需要建立一个卷组,然后把上一步建立的分区加到组里。单击’Volumes’选项,创建一个卷组’ESX’并把之前建立的分区加到组里。选择’Add volume group’。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/200809191344264n.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/200809191344264n.png"></a>&nbsp;<br><br><b>在ESX卷组中创建一个iSCSI卷</b>&nbsp;<br>单击’Volumes’页面选择’Add volumes’。选择卷组ESX,然后建立一个新的总量。设定你所希望的磁盘大小及iSCSI文件系统。点击’Create’&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/200809191344562r.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/200809191344562r.png"></a>&nbsp;<br><br><b>建立一个iSCSI目标&nbsp;</b><br>再次单击’Volumes’页面选择’iSCSI Targets’。该设置将会被描述为目标IQN,选择’Add’。&nbsp;<br><br>现在我们建立了一个默认的iSCSI目标,接下来需要映射在上一步建立的iSCSI LUN。选择’Lun Mapping’,**之前建立的LUN然后单击’map’。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919134541gd.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919134541gd.png"></a>&nbsp;<br><br>在Network ACL页面,单击所提供的链接,它将会把ESX服务器加入到ACL列表中。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/2008091913461831.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/2008091913461831.png"></a>&nbsp;<br><br>下一步添加ESX主机列表。&nbsp;<br><a href="http://www.xuniji.com/upload/vmware/20080919134647tf.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919134647tf.png"></a>&nbsp;<br><br>然后把主机加到LUN并**设置为允许’Allow’。&nbsp;<br><a href="http://www.xuniji.com/upload/vmware/20080919134724j8.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919134724j8.png"></a>&nbsp;<br><br>好,我们现在可以移到VMware Virtual Infrastructure Client,在那里我们可以增加iSCSI卷并格式化成VMFS以便用于做虚拟机。&nbsp;<br><br>配置一个ESX服务器用于Openfiler iSCSI LUN&nbsp;<br>假设你现在已经安装了ESX 3.x并且设置了vmotion接口和开启了该功能。&nbsp;<br><br><b>配置ESX防火墙允许iSCSI软件访问。&nbsp;</b><br>登入到VI客户,选择你所以配置的ESX服务器,点击’configuration’页面。选择’security profile’,’properties’。确定选择iSCSI。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919134820w5.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919134820w5.png"></a>&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919134846gy.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919134846gy.png"></a>&nbsp;<br><br><b>开启iSCSI软件&nbsp;</b><br>在同一个’configuration’页面,选择’storage adapters’, ‘iSCSI Software Adapter’, 然后’properties’。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919134918em.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919134918em.png"></a>&nbsp;<br><br>在’general’页面,选择’configure’和’enable’该适配器。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919134955vk.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919134955vk.png"></a>&nbsp;<br><br>在’Dynamic Discovert’页面,添加Openfiler服务器的地址(使用默认端口)。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919135024ur.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919135024ur.png"></a>&nbsp;<br><br><b>查找新的iSCSI LUN&nbsp;</b><br>在同一个’configuration’页面,选择’storage adapters’,然后’Rescan’。为VMFS分区和HBA同时选’options’。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/200809191351023b.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/200809191351023b.png"></a>&nbsp;<br><br>当查找完成后,你应该可以在’storage’部分看到新的卷。&nbsp;<br><br><b>格式化iSCSI卷到VMFS&nbsp;</b><br>在同一个’configuration’页面,选择’add storage’。&nbsp;<br><br><a href="http://www.xuniji.com/upload/vmware/20080919135142ti.png" target="_blank" style="color: rgb(0, 0, 0); text-decoration: none; "><img border="0" title="按此在新窗口浏览图片" src="http://www.xuniji.com/upload/vmware/20080919135142ti.png"></a>&nbsp;<br><br>选择‘Disk/Lun’并单击下一步。&nbsp;<br><br>你现在应该可以看到刚建立的iSCSI,以每块1mb大小格式化磁盘。</font></span>

dirtysea 发表于 2010-6-30 15:58:46

<span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; line-height: normal; font-size: 12px; "><h1 class="aTitle" style="font-size: 16px; font-weight: bold; position: relative; padding-top: 10px; ">[图文]Openfiler应用篇(一)iSCSI</h1><div><br></div><div><br></div><div><span class="Apple-style-span" style="font-size: 14px; line-height: 22px; "><p>本文主要讲解Openfile iSCSI 设置和应用,首先在浏览器中登录Openfile Web页面(<a href="https://ip:446/" style="color: rgb(179, 43, 213); text-decoration: underline; ">https://ip:446</a>,用户名:openfiler,密码:password)。</p><p>本次任务:在磁盘上创建两个卷组,在其中第一个卷组(Vol-1)上建立iSCSI逻辑卷,另一个卷组(Vol-2)做其他用途。</p><p>一、网络访问设置</p><p>点击主菜单System,在Network Access Configuration中输入允许使用Openfile的计算机名称和IP地址、掩码,本例中IP为192.168.1.1,掩码为255.255.255.255,请注意掩码为32位掩码,这样就指定了192.168.1.1这台计算机可以使用iSCSI,点击Update按钮。</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10030309436714.jpg" align="center" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><p>设置后显示,见下图</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10030309441546.jpg" align="center" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><p>二、建立物理分区 Physical volume</p><p>1、依次点击主菜单Volumes,右侧菜单Block Devices,点击磁盘/dev/hda</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10030309451648.jpg" align="center" width="609" title="点击原始大小查看" vspace="5" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; cursor: pointer; display: block; "></center><p>2、新页面中,选择分区类型为扩展分区Extended partition,点击Create按钮,创建该扩展分区。</p><p>注:此处根据需要,也可以选择分区类型为物理分区Physical volume,这样整个磁盘建立一个卷组,在一个卷组上建立多个逻辑卷。</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10031010535847.jpg" align="center" width="609" title="点击原始大小查看" vspace="5" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; cursor: pointer; display: block; "></center><div align="left" style="font-size: 14px; word-break: break-all; font-family: tahoma, 宋体; line-height: 1.6; ">&nbsp;<p>扩展分区被创建,见下图</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10031010565633.jpg" align="center" width="609" title="点击原始大小查看" vspace="5" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; cursor: pointer; display: block; "></center><p>3、建立物理分区 Physical volume</p><p>在Create a partition in /dev/had中,选择分区类型为物理分区Physical volume,第一个分区大小为20GB,Ending cylinder处输入51300,点击Create。<span></span></p><p></p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10031010561017.jpg" align="center" width="609" title="点击原始大小查看" vspace="5" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; cursor: pointer; display: block; "></center><p></p><p>用上面方法,用剩余磁盘空间创建第二个分区,创建后磁盘分区见下图。</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10031010576548.jpg" align="center" width="609" title="点击原始大小查看" vspace="5" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; cursor: pointer; display: block; "></center></div><p>三、建立卷组 Volume Groups</p><p>依次点击主菜单Volumes,右侧菜单Volume Groups,在Volume group name处输入第一个卷组名Vol-1,Select physical volumes to add处勾选/dev/hda5,点击Add volume group按钮,创建Vol-1卷组。</p><p></p><p></p><center><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10031010571873.jpg" align="center" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center></center><p>vol-1卷组以被创建,见下图。</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10031010581576.jpg" align="center" width="609" title="点击原始大小查看" vspace="5" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; cursor: pointer; display: block; "></center><div align="left" style="font-size: 14px; word-break: break-all; font-family: tahoma, 宋体; line-height: 1.6; ">按上述方法在/dev/hda6上,创建创建卷组Vol-2。</div><p>四、建立逻辑卷 在vol-1卷上建立iSCSI逻辑卷</p><p>依次点击主菜单Volumes,右侧菜单Add Volume。</p><p>1、如果由多个卷,请在Select Volume Group处选择所需要的卷。</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10030309474171.jpg" align="center" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><p>2、在Create a volume in "vol-1"表中,Volume Name处输入卷名称,Required Space (MB)处输入卷大小,卷大小根据需要设置,本例中约为20GB,Filesystem / Volume type处选择iSCSI,点击Create按钮,创建该卷。</p><center><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10031010586498.jpg" align="center" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center></center><p>该卷已被创建,见下图。</p><center><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10031010599948.jpg" align="center" width="609" title="点击原始大小查看" vspace="5" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; cursor: pointer; display: block; "></center></center><p>五、开启iSCSI target server服务</p><p>依次点击主菜单Services,右侧菜单Manage Services,在Manage Services中点击iSCSI target server右侧Enable按钮,开启iSCSI target server服务。</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10030309496768.jpg" align="center" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><p>六、添加iSCSI Targets</p><p>依次点击主菜单Volumes,右侧菜单iSCSI Targets。</p><p>1、点击Target Configuration,点击Add按钮,添加一个新的iSCSI Target。</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10030309509461.jpg" align="center" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><p>添加以后,见下图。</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10030309507767.jpg" align="center" width="609" title="点击原始大小查看" vspace="5" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; cursor: pointer; display: block; "></center><p>2、点击LUN Mapping按钮,点击Map按钮,映射Target,点击以后该按钮将变为Unmap按钮。&nbsp;</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10030309514369.jpg" align="center" width="609" title="点击原始大小查看" vspace="5" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; cursor: pointer; display: block; "></center><p>3、点击Network ACL,Access处选择Allow,允许IP为192.168.1.1的计算机使用openfiler,点击Update。</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10030309523542.jpg" align="center" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><p>七、在PC或服务器中使用openfiler iSCSI</p><p>复制并记录openfiler iSCSI Target Name,在需要使用iSCSI功能的机器中安装Microsoft iSCSI Initiator,启动Microsoft iSCSI Initiator。</p><p>1、在General选项卡中,点击Change按钮,在Initiator node name处填入openfiler iSCSI Target Name,本例为iqn.2006-01.com.openfiler:tsn.2d<st1:chmetcnv unitname="F" sourcevalue="8" hasspace="False" negative="False" numbertype="1" tcsc="0" w:st="on">8f</st1:chmetcnv>3328b496,点击OK。</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10030309531867.jpg" align="center" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><p>2、在Discovery选项卡中,点击Add按钮,输入openfiler IP地址,本例为192.168.1.100,</p><p>点击OK。</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10030309535445.jpg" align="center" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><p>3、在Targets选项卡中,选中iqn.2006-01.com.openfiler:tsn.2d<st1:chmetcnv unitname="F" sourcevalue="8" hasspace="False" negative="False" numbertype="1" tcsc="0" w:st="on">8f</st1:chmetcnv>3328b496,点击Log On按钮,在出现的Log On to Target**框中,点击OK按钮。点击iSCSI Initiator属性**框中确定按钮。</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10030309543533.jpg" align="center" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><p>4、打开PC或服务器磁盘管理,可以看到一个新的20GB磁盘出现,你可把它当作本地硬盘来规划使用。</p><center><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10031010591102.jpg" align="center" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center></center><p>八、在ESX4.0中使用openfiler iSCSI</p><p>在ESX4.0中使用openfiler iSCSI,你可以把该磁盘作为数据盘也可以作为系统盘来使用,笔者在此磁盘上安装了一个WinXP系统,见下图。</p><center><img alt="" src="http://www.njeit.cn/upload/2010-03/10030309557526.jpg" align="center" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></center><p>&nbsp;<img src="http://www.njeit.cn/upload/2010-03/10030309555743.jpg" border="0"> </p><div><br></div></span></div></span>

dirtysea 发表于 2010-6-30 15:59:39

openfiler 中文教程
2010-05-02 11:41
[图文]openfiler应用篇(五)Accounts之AD认证
http://www.njeit.cn/show.aspx?id=838&cid=65日期:2010-4-14 9:31:41
[图文]openfiler应用篇(四) FTP和Quota
http://www.njeit.cn/show.aspx?id=835&cid=65日期:2010-3-29 9:32:11
[图文]openfiler应用篇(三) Accounts
http://www.njeit.cn/show.aspx?id=831&cid=65日期:2010-3-22 9:43:26
[图文]openfiler应用篇(二) SMB/CIFS server
http://www.njeit.cn/show.aspx?id=830&cid=65日期:2010-3-15 9:32:03
[图文]openfiler应用篇(一)iSCSI
http://www.njeit.cn/show.aspx?id=827&cid=65日期:2010-3-3 9:41:54
[图文]openfiler安装篇
http://www.njeit.cn/show.aspx?id=826&cid=65日期:2010-3-2 14:55:16

zero200750 发表于 2010-12-10 05:32:44

请问网上有什么开元的可以做nas服务器的软件,一定要可以支持外接iscsi存储的,就是可以把iscsi存储盘映射过来做文件共享的,之前用过freenas,没有这个功能,只可以把自己做成iscsi,不能外挂iscsi存储。求高手帮忙,万分感激呀!!!!
页: [1]
查看完整版本: 使用Openfiler为VMware ESX设置一个免费的iSCSI或NAS储存系统