大家阅读本文后,如果有更好的方式去解决这个分区问题,欢迎在留言区留下脚印,一起探讨一下。
所谓的删不掉,指你已经尝试过:
- 在vsphere web里通过GUI的方式删除分区;
- 将节点从集群里删除,然后通过command partedUtil工具去删除
在上述删除分区信息未果后,请尝试如下方案:
- 先将esxi操作系统重置或者重装;
- 通过节点vsphere web手动删除分区信息;
- 通过如下命令查看是否仍然有分区信息;
ls /vmfs/devices/disks/
4. 如果仍然有,请将Windows或者Linux的iso挂载到cdrom,然后从cdrom启动安装,识别出有分区信息的disk,执行分区删除操作。 真是顽固啊。只能通过挂载iso来删除分区信息了。
[root@shvsan05node10:~] partedUtil delete /vmfs/devices/disks/naa.5000c500c1da6d53 1
Error: Function not implemented during read on /dev/disks/naa.5000c500c1da6d53
Error: The primary GPT table states that the backup GPT is located beyond the end of disk. This may happen if the disk has shrunk or partition table is corrupted. Fix, by writing backup table at the end? This will also fix the last usable sector appropriately as per the new reduced size. diskPath (/dev/disks/naa.5000c500c1da6d53) diskSize (3516328368) AlternateLBA (35162624431) LastUsableLBA (35162624398)
Warning: The available space to /dev/disks/naa.5000c500c1da6d53 appears to have shrunk. This may happen if the disk size has reduced. The space has been reduced by (31646296064 blocks). You can fix the GPT to correct the available space or continue with the current settings ? This will also move the backup table at the end if it is not at the end already. diskSize (3516328368) AlternateLBA (35162624431) LastUsableLBA (35162624398) NewLastUsableLBA (3516328334)
Error: Can't have a partition outside the disk!
Unable to construct disk from device /vmfs/devices/disks/naa.5000c500c1da6d53
通过挂载Ubuntu的iso,可以看到有一个fat32文件系统的分区。 执行删除操作,真的很慢。目测耗时超过1h。14:50pm~