ESXI5.5添加本地磁盘出错的解决

简介:

在esxi5.5的虚拟化服务器上添加一块900G的硬盘时,报如下错误。

wKioL1XB0QWT86meAADRvjplowE079.jpg

这个错误的出现主要是因为这块盘被使用过,还带有原分区信息。

解决办法:

首先到 配置->安全配置文件里启用ssh服务。然后使用SecureCRT或PUTTY远程登陆EXSI主机。

wKioL1XC1ZaCzqW0AAIHcnxRaP8872.jpg

1、查看分区信息 

ls /vmfs/devices/disks

wKioL1XB1CSiSpGjAAFa9MmqOeU605.jpg

2、与exsi上的标识符对应

wKioL1XB1FWQtD2yAAOBmWs8Ms8160.jpg

3、使用partedutil工具看到有1个分区,然后删除分区。(注:LINUX里新建和调整分区一般用FDISK和PARTED。 fdisk可划分单个分区不超过2T的分区,parted命令可以划分单个分区大于2T的GPT格式的分区,在EXSI里使用partedUtil命令来设置和调整分区。)

#partedUtil delete vmfs/devices/disks/naa.600605b0051527001970471b0e906a8b 1


4、重新添加磁盘

wKiom1XCIFLip5owAAFFrsn3ucQ656.jpg

5、选择磁盘

wKiom1XCIQ6jbU_MAAE_zyqs4TM704.jpg

6、选择文件系统

wKiom1XCIXGRassjAAEKAJS0JVQ567.jpg

7、检查磁盘布局并完成

wKiom1XCIa3zVAciAAFohwehofU417.jpg

8、添加成功。


附:重置分区大小

Resizing a partition

The partedUtil command can be used to resize an existing partition on ESXi/ESX 4.0 and higher. This does not resize the file system within the partition, and is no different from deleting and recreating the partition with a new starting or ending sector.

To resize a partition, run this command:

partedUtil resize "/vmfs/devices/disks/DeviceNamePartitionNumber NewStartSector NewEndSector

Example: To move partition 4 such that it starts in the same location (for example, 2474073) and ends at the new ending sector (1234567890), run this command:

partedUtil resize "/vmfs/devices/disks/mpx.vmhba0:C0:T0:L0" 4 2474073 1234567890

Caution: There is no facility to undo a partition table change other than creating a new partition table. Ensure that you have a backup before making any change. Ensure that there is no active I/O to a partition before modifying it.


本文出自 “滴水穿石孙杰” 博客,请务必保留此出处http://xjsunjie.blog.51cto.com/999372/1681987

本文转自学海无涯博客51CTO博客,原文链接http://blog.51cto.com/549687/1736672如需转载请自行联系原作者


520feng2007

相关文章
|
4月前
|
数据挖掘 数据库 虚拟化
服务器数据恢复—XenServer虚拟机磁盘文件丢失的数据恢复案例
服务器数据恢复环境: 某品牌720服务器搭配该品牌某型号RAID卡,使用4块STAT硬盘组建了一组RAID10阵列。服务器上部署XenServer虚拟化平台,系统盘 +数据盘两个虚拟机磁盘。虚拟机上安装的是Windows Server操作系统,作为Web服务器使用,网站使用的是SQLServer数据库。 服务器故障: 服务器意外断电导致XenServer中一台VPS(XenServer虚拟机)不可用,虚拟磁盘文件丢失。
服务器数据恢复—XenServer虚拟机磁盘文件丢失的数据恢复案例
|
虚拟化 数据安全/隐私保护