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

你們閱讀本文後,若是有更好的方式去解決這個分區問題,歡迎在留言區留下腳印,一塊兒探討一下。node


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

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

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

  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=)
相關文章
相關標籤/搜索