今天新安裝了esxi主機,這臺服務器中有四塊硬盤,固然我是把系統安裝在u盤上的,在此以前這臺服務器安裝的是zstack,zstack是安裝在四塊硬盤中的其中一塊硬盤上的,因此很顯然,由於zstack是創建在centos上的,因此這塊硬盤確定被分了不止一個分區,因此致使最後我安裝完vmware格式化這塊硬盤就報沒法清除磁盤的錯誤了,解決方式很簡單,以下centos
首先把esxi主機的ssh打開,而後登陸主機,找到不能格式化的那塊硬盤設備名,好比個人是 Local ATA Disk (t10.ATA_____ST1000DM0032D1ER162__________________________________Z4Y5B27L)
接着進入下面這個目錄 cd /dev/disks
看下擁有的設備bash
[root@MiWiFi-R1CM-srv:/dev/disks] ls naa.2000acde48234567 vml.010000000020202020202020202020202039535a3443593445535433333230 naa.2000acde48234567:1 vml.010000000020202020202020202020202039535a3443593445535433333230:1 naa.2000acde48234567:5 vml.01000000002020202020202020202020205a3459354232374c535431303030 naa.2000acde48234567:6 vml.01000000002020202020202020202020205a3459354232374c535431303030:1 naa.2000acde48234567:7 vml.01000000002020202020202020202020205a3459354232374c535431303030:2 naa.2000acde48234567:8 vml.01000000002020202020202020202020205a3459354232374c535431303030:3 naa.2000acde48234567:9 vml.01000000002020202020202020202020205a34593552324d31535431303030 t10.ATA_____ST1000DM0032D1ER162__________________________________Z4Y5B27L vml.01000000002020202020202020202020205a34593552324d31535431303030:1 t10.ATA_____ST1000DM0032D1ER162__________________________________Z4Y5B27L:1 vml.01000000002020202020202020202020205a34593553465243535431303030 t10.ATA_____ST1000DM0032D1ER162__________________________________Z4Y5B27L:2 vml.01000000002020202020202020202020205a34593553465243535431303030:1 t10.ATA_____ST1000DM0032D1ER162__________________________________Z4Y5B27L:3 vml.02000000002000acde4823456753616e446973 t10.ATA_____ST1000DM0032D1ER162__________________________________Z4Y5R2M1 vml.02000000002000acde4823456753616e446973:1 t10.ATA_____ST1000DM0032D1ER162__________________________________Z4Y5R2M1:1 vml.02000000002000acde4823456753616e446973:5 t10.ATA_____ST1000DM0032D1ER162__________________________________Z4Y5SFRC vml.02000000002000acde4823456753616e446973:6 t10.ATA_____ST1000DM0032D1ER162__________________________________Z4Y5SFRC:1 vml.02000000002000acde4823456753616e446973:7 t10.ATA_____ST3320613AS_________________________________________9SZ4CY4E vml.02000000002000acde4823456753616e446973:8 t10.ATA_____ST3320613AS_________________________________________9SZ4CY4E:1 vml.02000000002000acde4823456753616e446973:9
沒錯 Local ATA Disk (t10.ATA_____ST1000DM0032D1ER162__________________________________Z4Y5B27L)
這塊硬盤有三個分區,因此如今咱們只要從新用fdisk創建分區表就能夠,步驟以下服務器
[root@MiWiFi-R1CM-srv:/dev/disks] fdisk ./t10.ATA_____ST1000DM0032D1ER162__________________________________Z4Y5B27L *** *** The fdisk command is deprecated: fdisk does not handle GPT partitions. Please use partedUtil *** Found valid GPT with protective MBR; using GPT Command (m for help): m Command Action o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel Command (m for help): o Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that the previous content won't be recoverable. The number of cylinders for this disk is set to 121601. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table
以後你再登陸esxi主機去從新格式化硬盤就行了ssh
歡迎關注Bboysoul的博客www.bboysoul.com Have Funide