ESXi下誤刪磁碟分割

來源:互聯網
上載者:User

ESXi下誤刪磁碟分割

由於自己對ESXi的命令不熟悉,同時粗心大意,誤刪除了ESXi作業系統的分區,操作過程如下:

擷取磁碟裝置資訊:

[root@localhost:~] fdisk -l

[root@localhost:~] fdisk -l

***
*** The fdisk command is deprecated: fdisk does not handle GPT partitions.  Please use partedUtil
***

Found valid GPT with protective MBR; using GPT

Disk /dev/disks/t10.ATA_____WDC_WD10EZEX2D00KUWA0_________________________WD2DWCC1S5769136: 1953525168 sectors, 1863M
Logical sector size: 512
Disk identifier (GUID): 4655b291-d307-43c6-81d8-f02bb180c373
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134

Number  Start (sector)    End (sector)  Size      Code  Name
  1            2048      1953523711      1863M  0700 
Found valid GPT with protective MBR; using GPT

Disk /dev/disks/t10.ATA_____WDC_WD5000AADS2D00S9B0________________________WD2DWCAV9D135907: 976773168 sectors,  931M
Logical sector size: 512
Disk identifier (GUID): 108244b4-fba3-4dbf-b6f6-51a88b871f73
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134

Number  Start (sector)    End (sector)  Size      Code  Name
  1              64            8191        8128  0700 
  2        7086080        15472639      8190K  0700 
  3        15472640      976773134        916M  0700 
  5            8224          520191        499K  0700 
  6          520224        1032191        499K  0700 
  7        1032224        1257471        219K  0700 
  8        1257504        1843199        571K  0700 
  9        1843200        7086079      5120K  0700 

ESXi作業系統安裝在硬碟: /dev/disks/t10.ATA_____WDC_WD5000AADS2D00S9B0________________________WD2DWCAV9D135907上,

我執行的操作命令:partedUtil delete /dev/disks/t10.ATA_____WDC_WD5000AADS2D00S9B0________________________WD2DWCAV9D135907 1

導致硬碟的1號分區丟失。

[root@localhost:~] fdisk -l

***
*** The fdisk command is deprecated: fdisk does not handle GPT partitions.  Please use partedUtil
***

Found valid GPT with protective MBR; using GPT

Disk /dev/disks/t10.ATA_____WDC_WD10EZEX2D00KUWA0_________________________WD2DWCC1S5769136: 1953525168 sectors, 1863M
Logical sector size: 512
Disk identifier (GUID): 4655b291-d307-43c6-81d8-f02bb180c373
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134

Number  Start (sector)    End (sector)  Size      Code  Name
  1            2048      1953523711      1863M  0700 
Found valid GPT with protective MBR; using GPT

Disk /dev/disks/t10.ATA_____WDC_WD5000AADS2D00S9B0________________________WD2DWCAV9D135907: 976773168 sectors,  931M
Logical sector size: 512
Disk identifier (GUID): 108244b4-fba3-4dbf-b6f6-51a88b871f73
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134

Number  Start (sector)    End (sector)  Size      Code  Name
  2        7086080        15472639      8190K  0700 
  3        15472640      976773134        916M  0700 
  5            8224          520191        499K  0700 
  6          520224        1032191        499K  0700 
  7        1032224        1257471        219K  0700 
  8        1257504        1843199        571K  0700 
  9        1843200        7086079      5120K  0700 

唉,結果就悲劇了………………

在系統不重啟的情況下,系統還能正常運行,我把重要的資料拷貝了出來,還好只有兩台虛擬機器。系統重啟後直接無法啟動。

# esxcfg-scsidevs -l


複製代碼
[root@localhost:~] esxcfg-scsidevs -l
t10.ATA_____WDC_WD10EZEX2D00KUWA0_________________________WD2DWCC1S5769136
  Device Type: Direct-Access
  Size: 953869 MB
  Display Name: Local ATA Disk (t10.ATA_____WDC_WD10EZEX2D00KUWA0_________________________WD2DWCC1S5769136)
  Multipath Plugin: NMP
  Console Device: /vmfs/devices/disks/t10.ATA_____WDC_WD10EZEX2D00KUWA0_________________________WD2DWCC1S5769136
  Devfs Path: /vmfs/devices/disks/t10.ATA_____WDC_WD10EZEX2D00KUWA0_________________________WD2DWCC1S5769136
  Vendor: ATA      Model: WDC WD10EZEX-00K  Revis: 15.0
  SCSI Level: 5  Is Pseudo: false Status: on       
  Is RDM Capable: false Is Removable: false
  Is Local: true  Is SSD: false
  Other Names:
      vml.0100000000202020202057442d574343315335373639313336574443205744
  VAAI Status: unknown
t10.ATA_____WDC_WD5000AADS2D00S9B0________________________WD2DWCAV9D135907
  Device Type: Direct-Access
  Size: 476940 MB
  Display Name: Local ATA Disk (t10.ATA_____WDC_WD5000AADS2D00S9B0________________________WD2DWCAV9D135907)
  Multipath Plugin: NMP
  Console Device: /vmfs/devices/disks/t10.ATA_____WDC_WD5000AADS2D00S9B0________________________WD2DWCAV9D135907
  Devfs Path: /vmfs/devices/disks/t10.ATA_____WDC_WD5000AADS2D00S9B0________________________WD2DWCAV9D135907
  Vendor: ATA      Model: WDC WD5000AADS-0  Revis: 01.0
  SCSI Level: 5  Is Pseudo: false Status: on       
  Is RDM Capable: false Is Removable: false
  Is Local: true  Is SSD: false
  Other Names:
      vml.0100000000202020202057442d574341563944313335393037574443205744
  VAAI Status: unknown

本文永久更新連結地址:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.