VMware扩增硬盘空间通用方法.docx_第1页
VMware扩增硬盘空间通用方法.docx_第2页
VMware扩增硬盘空间通用方法.docx_第3页
VMware扩增硬盘空间通用方法.docx_第4页
VMware扩增硬盘空间通用方法.docx_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

VMware的ESX上VM系统盘的扩充方法(2008-10-20 13:38:56) 转载标签: vmware扩展磁盘空间不足it 我的VMware的ESX服务器上运行了很多的虚拟机VM,一天发现有一台的VM系统盘的空间已经用完。如何扩大vm上的硬盘空间呢? 在esx上运行的VM,如果使用空间不够,我们可以使用两种方法来扩展磁盘空间。一是新增磁盘法;二是扩展磁盘法。一、新增磁盘法 这种方法比较简单,就是给这个vm添加一块新的硬盘来达到扩展磁盘空间的目的。就和普通机器一样。这个过程vm是不需要关机的。这种方法可以通过给这个vm添加硬盘的方式解决空间问题。二、扩展磁盘法 但是有时候我们不能采取新增磁盘的方法来扩充磁盘的空间。比如数据库文件的空间,系统磁盘的空间等等,这个时候我们就不能使用新增磁盘法来解决磁盘空间不足的问题。此时,我们只能使用扩展磁盘法来解决。这种方法现相对比较复杂。我们现在将这种方法整理如下:1.使用ssh工具登陆到VM所在的ESX服务器上; 2.使用CD命令,进入那个vm的目录下; 3.使用vmkfstools -X 10G aaa.vmdk进行扩展磁盘文件大小(X后的那个是最终的大小) 4.运行完命令后,那个磁盘文件就改成10G。 经过上述四个步骤后,磁盘是扩大了,但系统盘还是原来的大小。还需要进行一步调整系统盘的大小。怎么调整系统盘的大小呢。也有两种方法: 方法1,使用调整分区大小的软件 A.启动VM,安装调整分区大小的软件; B.调整后重新启动一下VM,就可以正常使用了。 这一步的调整,与物理机调整磁盘大小一样。 方法2,使用微软自带的工具diskpart 但这个工具是不能调整启动盘的大小的,所以采用变通的办法。 A.启动一个新的VM,把这个扩展的vm的disk,挂到这个vm上; B.在新的VM上,运行diskpart命令; C.运行List volume命令,查看要扩展的磁盘卷号; D.运行Select volume命令,选择要扩展的卷; E.运行Extend命令,进行空间扩展; F.在这个VM上,删除已扩展的磁盘; G.启动经过磁盘扩展的VM; H.检查系统盘的空间,发现已发生改变。Extend boot volume on Windows Server 2000/2003Before you begin, make sure that you do not have an active snapshot on the VM, extending a virtual disk with a snapshot will cause corrputionExtend the boot volume of Windows Server 2003 Virtual MachineTo start, I have a Windows Server 2003 Virtual Machine that has a 5.3G disk allocated to it, I need to expand this disk to 10G.Step 1: Power off the virtual machine that holds the boot volume that you want to extend.Step 2: Make a backup copy of your virutal disk, this is optional but if you mess up dont call me unless youre willing to pay.Step 3: From the service console, increase the size of the .dsk or .vmdk virtual disk file. This can also be accomplished through the Virtual Infrastructure Client if you are using VirtualCenter 2.x+.rootesx-test local# ls -lah test.vmdk-rw- 1 root root 5.4G Jul 18 13:57 test.vmdkExtend the virtual disk with vmkfstools. The input to the -X switch is the size that you want the disk file to be not the size you want to extend the disk file by.rootesx-test local# vmkfstools -X 10G test.vmdkView the new size of test.vmdkrootesx-test local# ls -lah test.vmdk-rw- 1 root root 10G Jul 18 13:57 test.vmdkStep 4: For this step you will need an additional Virtual Machine running Windows Server 2003. Power off the second Virtual Machine, and add the disk from the first Virtual Machine to it through the mui. Power up the second Virtual Machine and verify that the imported disk has unallocated space on it.From the run menu type diskpart.exe to enter the command line utility to resize disk partitions in Windows Server 2003.The command list volume will show you all the available volumes. Select your volume as shown below. select volume 1 corresponds to the D volume that I want to exntend. Finally extend the volume with the extend command.If all goes well, the partition will be immediately exnteded under the Disk Management snap in.Step 5: Shut

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论