vsan 節點部署,如果遇到磁盤分區刪不到,如何處理?

大家閱讀本文後,如果有更好的方式去解決這個分區問題,歡迎在留言區留下腳印,一起探討一下。


所謂的刪不掉,指你已經嘗試過:

  1. 在vsphere web裏通過GUI的方式刪除分區;
  2. 將節點從集羣裏刪除,然後通過command partedUtil工具去刪除

在上述刪除分區信息未果後,請嘗試如下方案:

  1. 先將esxi操作系統重置或者重裝;
  2. 通過節點vsphere web手動刪除分區信息;
    vsan 節點部署,如果遇到磁盤分區刪不到,如何處理?
  3. 通過如下命令查看是否仍然有分區信息;
    ls /vmfs/devices/disks/ 

    vsan 節點部署,如果遇到磁盤分區刪不到,如何處理?

  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文件系統的分區。
![](https://s1.51cto.com/images/blog/201912/09/184300aa59f5e989db416419413ba879.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
執行刪除操作,真的很慢。目測耗時超過1h。14:50pm~
![](https://s1.51cto.com/images/blog/201912/09/02f0412e9bebade6089106080da8f97e.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章