误删linux磁盘分区,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

0b1331709591d260c1c78e86d0c51c18.png

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值