vsan nodes are deployed, if they are not deleted disk partition, how to deal with?

After you read this article, if there is a better way to solve this problem partition, welcome to leave footprints in the message area, to explore it.


The so-called deleted can not afford, I refer you have already tried:

  1. In vsphere web in a way to delete the partition through the GUI;
  2. The node is removed from the cluster, then go through the delete command partedUtil tool

After the above deleted partition information failed, please try the following programs:

  1. First esxi reset or reload the operating system;
  2. Delete the partition information by node vsphere web manual;
    vsan nodes are deployed, if they are not deleted disk partition, how to deal with?
  3. By the following command to view the partition information is still there;
    ls /vmfs/devices/disks/ 

    vsan nodes are deployed, if they are not deleted disk partition, how to deal with?

  4. If you still have, your Windows or Linux iso mount the cdrom, and then start the installation from cdrom, recognizes that there is a partition information of disk, partition deletion execution.
    Really stubborn ah. Only to delete the partition information through the mount 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=)

Guess you like

Origin blog.51cto.com/sampsondotqiu/2457119