esxi5.5 命令行格式化硬盘
最近群晖的硬盘有问题换下一块硬盘,我将它安装到自己的实验机esxi5.5上,发现无法使用硬盘,在网上查找如何使用命令行格式化硬盘,经过自己的操作发现可行,本文主要参考jiulin_hou的文章,现在记录下来,以便下次需要。
查看硬盘信息
esxcfg-scsidevs -l
查看指定硬盘信息:
partedUtil get /dev/disks/vml.0100000000202020202020202020202058334652415a325453544f53484942
例:
~ # partedUtil get /dev/disks/vml.0100000000202020202020202020202058334652415a325453544f53484942
60801 255 63 976773168 1 2048 4982527 253 0 2 4982528 9176831 253 0 3 9437184 976759007 15 0 5 9453280 976566239 253 0
删除分区(从后往前删)
partedUtil delete /dev/disks/vml.0100000000202020202020202020202058334652415a325453544f53484942 5
例:
~ # partedUtil delete /dev/disks/vml.0100000000202020202020202020202058334652415a325453544f53484942 3 ~ # partedUtil delete /dev/disks/vml.0100000000202020202020202020202058334652415a325453544f53484942 2 ~ # partedUtil delete /dev/disks/vml.0100000000202020202020202020202058334652415a325453544f53484942 1
再次查看硬盘信息:
~ # partedUtil get /dev/disks/vml.0100000000202020202020202020202058334652415a325453544f53484942 60801 255 63 976773168
然后进入VMware vSphere Client控制台,添加存储器:
下一步就可以看到上面被删除出来的硬盘,一步一步下去就可以使用这块硬盘了。
当然我的这块硬盘有可能存在问题,好在这台esxi5.5只是一台实验机,也不怕坏掉硬盘。
esxi5.5 命令行格式化硬盘:等您坐沙发呢!