跳转到帖子

游客您好,欢迎来到黑客世界论坛!您可以在这里进行注册。

赤队小组-代号1949(原CHT攻防小组)在这个瞬息万变的网络时代,我们保持初心,创造最好的社区来共同交流网络技术。您可以在论坛获取黑客攻防技巧与知识,您也可以加入我们的Telegram交流群 共同实时探讨交流。论坛禁止各种广告,请注册用户查看我们的使用与隐私策略,谢谢您的配合。小组成员可以获取论坛隐藏内容!

TheHackerWorld官方

精选回复

发布于

这里我们讨论服务器硬盘空间不足时,我们有什么方法可以扩充原有虚拟磁盘的空间,而无需删除上面的数据。

联机容量扩充 (OCE)

RAID 级别迁移 (RLM)

简介

我们可通过扩充容量和 / 或改变 RAID 级别的方式来重新配置联机虚拟磁盘。

注: 跨接式虚拟磁盘 (如 RAID 10、 50 和 60)无法重新配置。
注: 重新配置虚拟磁盘时一般会对磁盘性能有所影响,直到重新配置完成后为止。

联机容量扩充 (OCE) 可通过两种方法实现。

  • 如果磁盘组中只有一个虚拟磁盘,而且还有可用空间可供使用,则可在可用空间的范围内扩充虚拟磁盘的容量。
  • 如果已创建虚拟磁盘,但虚拟磁盘使用的空间未达到该磁盘组大小的上限,则剩有可用空间

通过 Replace Member (更换成员)功能使用较大的磁盘更换磁盘组的物理磁盘时也可以获得可用空间。虚拟磁盘的容量也可以通过执行 OCE 操作来增加物理磁盘的数量进行扩充。

RAID 级别迁移 (RLM) 是指更改虚拟磁盘的 RAID 级别。 RLM 和 OCE 可同时实现,这样虚拟磁盘可同时更改 RAID 级别并增加容量。完成RLM/OCE 操作后,不需要重新引导。要查看 RLM/OCE 操作可行性列表,请参阅 下表。源 RAID 级别列表示执行 RLM/OCE 操作之前的虚拟磁盘RAID 级别,目标 RAID 级别列表示操作完成后的 RAID 级别。

注: 如果控制器包含的虚拟磁盘数目已达最大值,则不能再对任何虚拟磁盘进行 RAID 级别迁移或容量扩充。
注: 控制器将所有正在进行 RLM/OCE 操作的虚拟磁盘的写入高速缓存策略更改为直写式,直到 RLM/OCE 完成。

RAID级别迁移:

 

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/1602.RLM.JPG

下面,我们来演示一下两种情形下磁盘的扩容:

联机容量扩充 (OCE) 

实验的情景是:有一台R620服务器,两个硬盘驱动器。Drive C:是RAID1的阵列,安装操作系统;Drive D:是10GB的RAID1阵列,装有数据文件。如图:

 

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/5228.1_2D00_2-drives-show.JPG

我们重启服务器,按CTRL-R进入PERC BIOS 管理界面查看一下RAID的配置:

其中10GB的虚拟磁盘建立在一个总容量278GB的RAID1阵列上,该阵列还留有268GB的剩余空间。我们准备使用这些剩余空间,将10GB的虚拟磁盘扩充到50GB以上。

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/2330.1_2D00_1-raid-status.jpg

注:我们下面的演示,在PERC BIOS管理界面里进行。但是实际的操作,在OMSA GUI管理界面里也可以完成。后一个RLM的演示,我们将在OMSA管理界面里进行:

1. 高亮选中需要扩容的虚拟磁盘 VD1,按F2,在弹出菜单里选Expand VD size

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/5857.2_2D00_1-Expand-VD-size.jpg

2. 输入需要扩容的空间百分比15%,下面会显示扩容后的估计虚拟磁盘大小。然后选择Resize按钮

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/4341.2_2D00_2-Expand-VD-size-15.jpg

 

 

 

 

3. 管理界面回到主页面,选中VD1,可以看到空间已经变成50GB,且右侧显示后台初始化在进行中。这里的初始化是对新加入的空白区的初始化,并不会删除原有数据。

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/4442.2_2D00_3-Expand-VD-size-progress.jpg

4. 初始化结束后,服务器重启回到操作系统。我们在服务器管理器的磁盘管理器里可以看到,原来的磁盘1 已经增加了40.33GB的空余空间。

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/7140.3_2D00_1-disk-manager.JPG

5. 下面做Drive D:的空间扩展。鼠标右击Drive D:在弹出菜单里选择扩展卷

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/1447.3_2D00_2-disk-expand.JPG

6. 进入扩展卷向导,点击“下一步”

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/3704.3_2D00_3-disk-expand-wizard.JPG

7. 选择需要扩展的卷,已经希望扩展的大小。我们使用默认值,即全部空余空间,下一步

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/7444.3_2D00_4-disk-expand-size.JPG

8.确认执行的操作,下一步

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/0027.3_2D00_5-disk-expand-confirm.JPG

9. 任务完成,Drive D:已经成功扩容到50GB

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/5657.3_2D00_6-disk-expand-done.JPG

10. 再次确认文件系统的新空间50GB,以及原有的数据文件都得到保存

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/0385.4_2D00_1-drive-status.JPG

RAID 级别迁移 (RLM)

下面我们来看看RLM,这种扩容方法可以通过改变RAID阵列的级别,或者往阵列里添加新的硬盘成员,来实现容量的扩展。我们来做一个演示,如何将RAID1扩展成由4个硬盘组成的RAID5,从而实现容量的扩展:

1. 登录OMSA控制台,查看一下阵列的配置信息:这里有两个RAID1阵列,VD0在第一个RAID1上,安装有操作系统,我们不做操作。VD1使用了另一个RAID1的200GB空间,该RAID1还余有78GB空余空间。

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/6014.2-VD-status.jpg

 

看看资源管理器,VD1对应的Drive D:存有用户数据:

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/1325.2_2D00_2-Drive-status.jpg

2. 在VD1的可用任务里选择“重新配置”,点击执行

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/5557.3-VD-reconfig.jpg

3. 顺带提一下,因为VD1所在的RAID1还有78GB剩余空间,如果想在OMSA管理界面里做OCE也是可以的,可以在这里的界面里点击“扩展容量”

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/8053.4_2D00_1-OCE.jpg

然后就可以看到和上面OCE章节里相似的配置界面做OCE扩展,这里就不演示了。

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/2047.4_2D00_2-OCE.jpg

4. 原来的RAID1由ID=02,03的硬盘组成,我们追加ID=04,05的空闲硬盘,点击“继续”

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/3857.5_2D00_1-RLM.jpg

5. 选择新的RAID级别为RAID-5,注意提示:新的容量将变为600GB,点击“继续”

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/1460.5_2D00_2-RLM.jpg

6. 确认配置信息,点击“完成”

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/0143.5_2D00_3-RLM.jpg

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/2313.5_2D00_4-RLM.jpg

7. VD1进入RLM扩展状态,我们可以在OMSA管理器里看到百分比进度,直至完成

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/7563.5_2D00_5-RLM.jpg

8. 检查确认VD1扩展进程结束,级别已经显示为RAID5,成员变为ID=02~-05硬盘

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/5265.6_2D00_1-RLM-done.jpg

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/7041.6_2D00_2-RLM-done.jpg

9. 退出OMSA,我们注意到,在windows磁盘管理器及资源管理器里,扩展的新空间还未生效,还是200GB

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/8037.7_2D00_1-disk-manager-view.jpg

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/5554.7_2D00_2-drives-view.jpg

10. 重启服务器,进入PERC BIOS里查看,服务器经重启后,新的空间生效了

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/1856.8_2D00_1-PERC-view.jpg

11.服务器重启,重新进入操作系统,这次在磁盘管理器里,我们就可以看到多出来的未分配空间了。

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/1780.8_2D00_2-disk-manager-view.jpg

12. 请按照OCE介绍里,卷扩展的步骤扩展Drive D:,至此演示完成

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/6052.9_2D00_5-disk-expand-done.jpg

http://zh.community.dell.com/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-46/4174.9_2D00_6-disk-expand-done-drive-view.jpg

创建帐户或登录后发表意见

最近浏览 0

  • 没有会员查看此页面。