Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1890655
  • 博文数量: 389
  • 博客积分: 7877
  • 博客等级: 少将
  • 技术积分: 4521
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-10 14:02
文章分类

全部博文(389)

文章存档

2024年(1)

2022年(1)

2021年(1)

2020年(1)

2019年(1)

2018年(3)

2017年(6)

2016年(4)

2015年(8)

2014年(15)

2013年(31)

2012年(19)

2011年(47)

2010年(33)

2009年(105)

2008年(109)

2007年(4)

分类: LINUX

2009-05-18 15:53:04

用了一段时间,还是比较稳定的!
今天碰到一个需求,原来存放数据的E盘空间不足了,需要扩一下容量

我还不知道能不能扩,因为我的虚拟盘是pre-allocated的,我先想着如果不能扩充,可以用比较笨一点的办法
那就是再添加一个空间大的盘,然后把数据都cut过来,再把卷标改掉

后来在网上google了一把,有这么个命令vmware-vdiskmanager
这个命令在windows和Linux下面都有,下面记录了我的命令(一个SB的错误)

#vmware-vdiskmanager -x 20G Windows\ Server\ 2003\ Enterprise\ Edition-0.vmdk
Using log file /tmp/vmware-root/vdiskmanager.log
The specified disk size does not fall within acceptable range.
The acceptable ranges:
                      ide adapter : [100.0Mb, 950.0Gb]
                      scsi adapter: [100.0Mb, 950.0Gb]


 #vmware-vdiskmanager -x 20GB Windows\ Server\ 2003\ Enterprise\ Edition-0.vmdk
Using log file /tmp/vmware-root/vdiskmanager.log
  Grow: 100% done.
The old geometry C/H/S of the disk is: 1305/255/63
The new geometry C/H/S of the disk is: 2610/255/63
Disk expansion completed successfully.

WARNING: If the virtual disk is partitioned, you must use a third-party
         utility in the virtual machine to expand the size of the
         partitions. For more information, see:
        

启动host OS Windows并且进入到磁盘管理那里面,需要对E盘执行一下“扩展卷” 现在就可以正常使用了!

PS: 这里的vmdk文件是那个很小的ASCII 文件,不是那些个大的vmdk文件, 可以more 一下它看看里面的内容,并且可以看到在执行完vmware-vdiskmanager前后的区别


阅读(982) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~