ESXI로 오래된 Linux 파티션을 삭제하는 방법은 무엇입니까?

ESXI로 오래된 Linux 파티션을 삭제하는 방법은 무엇입니까?

ESXI 배포가 중단되어 어떻게 진행해야 할지 모르겠습니다. Linux 6.2에서 분할되었던 Software Raid가 포함된 서버 중 하나가 있습니다. Linux를 사용하는 Raid 10의 2개의 Sata 드라이브 파티션. 이제 USB 드라이브에 ESXI 5.1이 설치되었습니다. Vsphere 클라이언트에서 데이터 저장소를 생성하려고 할 때 다음 오류가 발생했습니다.

Call "HostDatastoreSystem.QueryVmfsDatastoreCreateOptions" for object "ha-datastoresystem" on ESXi "192.168.1.65" failed.

실제로는 esxi가 ​​데이터를 인식하고 데이터 저장소를 생성할 수 있도록 데이터 형식을 지정하거나 준비하는 방법을 알 수 없었습니다.

여기 내 fdisk -l이 있습니다.

fdisk -l

  Device Boot      Start         End      Blocks  Id System
/dev/disks/t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653p1   *           1          26      204800  fd Linux raid autodetect
Partition 1 does not end on cylinder boundary
/dev/disks/t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653p2              26         679     5242880  fd Linux raid autodetect
Partition 2 does not end on cylinder boundary
/dev/disks/t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653p3             679        7206    52428800  fd Linux raid autodetect
/dev/disks/t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653p4            7206      121602   918884352   5 Extended
/dev/disks/t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653p5            7206       11122    31457280  fd Linux raid autodetect
/dev/disks/t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653p6           11123      121602   887424000  fd Linux raid autodetect

partedUtil showGuids

 Partition Type       GUID
 vmfs                 AA31E02A400F11DB9590000C2911D1B8
 vmkDiagnostic        9D27538040AD11DBBF97000C2911D1B8
 vsan                 381CFCCC728811E092EE000C2911D0B2
 VMware Reserved      9198EFFC31C011DB8F78000C2911D1B8
 Basic Data           EBD0A0A2B9E5443387C068B6B72699C7
 Linux Swap           0657FD6DA4AB43C484E50933C84B4F4F
 Linux Lvm            E6D6D379F50744C2A23C238F2A3DF928
 Linux Raid           A19D880F05FC4D3BA006743F0F84911E
 Efi System           C12A7328F81F11D2BA4B00A0C93EC93B
 Microsoft Reserved   E3C9E3160B5C4DB8817DF92DF00215AE
 Unused Entry         00000000000000000000000000000000

esxcli 스토리지 코어 경로 목록

usb.vmhba32-usb.0:0-mpx.vmhba32:C0:T0:L0
   UID: usb.vmhba32-usb.0:0-mpx.vmhba32:C0:T0:L0
   Runtime Name: vmhba32:C0:T0:L0
   Device: mpx.vmhba32:C0:T0:L0
   Device Display Name: Local USB Direct-Access (mpx.vmhba32:C0:T0:L0)
   Adapter: vmhba32
   Channel: 0
   Target: 0
   LUN: 0
   Plugin: NMP
   State: active
   Transport: usb
   Adapter Identifier: usb.vmhba32
   Target Identifier: usb.0:0
   Adapter Transport Details: Unavailable or path is unclaimed
   Target Transport Details: Unavailable or path is unclaimed
   Maximum IO Size: 122880

sata.vmhba34-sata.0:0-t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288
   UID: sata.vmhba34-sata.0:0-t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288
   Runtime Name: vmhba34:C0:T0:L0
   Device: t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288
   Device Display Name: Local ATA Disk (t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288)
   Adapter: vmhba34
   Channel: 0
   Target: 0
   LUN: 0
   Plugin: NMP
   State: active
   Transport: sata
   Adapter Identifier: sata.vmhba34
   Target Identifier: sata.0:0
   Adapter Transport Details: Unavailable or path is unclaimed
   Target Transport Details: Unavailable or path is unclaimed
   Maximum IO Size: 33553920

sata.vmhba1-sata.0:0-t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653
   UID: sata.vmhba1-sata.0:0-t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653
   Runtime Name: vmhba1:C0:T0:L0
   Device: t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653
   Device Display Name: Local ATA Disk (t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653)
   Adapter: vmhba1
   Channel: 0
   Target: 0
   LUN: 0
   Plugin: NMP
   State: active
   Transport: sata
   Adapter Identifier: sata.vmhba1
   Target Identifier: sata.0:0
   Adapter Transport Details: Unavailable or path is unclaimed
   Target Transport Details: Unavailable or path is unclaimed
   Maximum IO Size: 33553920

ls -alh /vmfs/장치/디스크

drwxr-xr-x    1 root     root         512 Sep 18 05:38 .
drwxr-xr-x    1 root     root         512 Sep 18 05:38 ..
-rw-------    1 root     root        1.9G Sep 18 05:38 mpx.vmhba32:C0:T0:L0
-rw-------    1 root     root        4.0M Sep 18 05:38 mpx.vmhba32:C0:T0:L0:1
-rw-------    1 root     root      250.0M Sep 18 05:38 mpx.vmhba32:C0:T0:L0:5
-rw-------    1 root     root      250.0M Sep 18 05:38 mpx.vmhba32:C0:T0:L0:6
-rw-------    1 root     root      110.0M Sep 18 05:38 mpx.vmhba32:C0:T0:L0:7
-rw-------    1 root     root      286.0M Sep 18 05:38 mpx.vmhba32:C0:T0:L0:8
-rw-------    1 root     root      931.5G Sep 18 05:38 t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653
-rw-------    1 root     root      200.0M Sep 18 05:38 t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:1
-rw-------    1 root     root        5.0G Sep 18 05:38 t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:2
-rw-------    1 root     root       50.0G Sep 18 05:38 t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:3
-rw-------    1 root     root      876.3G Sep 18 05:38 t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:4
-rw-------    1 root     root       30.0G Sep 18 05:38 t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:5
-rw-------    1 root     root      846.3G Sep 18 05:38 t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:6
-rw-------    1 root     root      931.5G Sep 18 05:38 t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288
-rw-------    1 root     root      200.0M Sep 18 05:38 t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:1
-rw-------    1 root     root        5.0G Sep 18 05:38 t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:2
-rw-------    1 root     root       50.0G Sep 18 05:38 t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:3
-rw-------    1 root     root      876.3G Sep 18 05:38 t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:4
-rw-------    1 root     root       30.0G Sep 18 05:38 t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:5
-rw-------    1 root     root      846.3G Sep 18 05:38 t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:6
lrwxrwxrwx    1 root     root          20 Sep 18 05:38 vml.0000000000766d68626133323a303a30 -> mpx.vmhba32:C0:T0:L0
lrwxrwxrwx    1 root     root          22 Sep 18 05:38 vml.0000000000766d68626133323a303a30:1 -> mpx.vmhba32:C0:T0:L0:1
lrwxrwxrwx    1 root     root          22 Sep 18 05:38 vml.0000000000766d68626133323a303a30:5 -> mpx.vmhba32:C0:T0:L0:5
lrwxrwxrwx    1 root     root          22 Sep 18 05:38 vml.0000000000766d68626133323a303a30:6 -> mpx.vmhba32:C0:T0:L0:6
lrwxrwxrwx    1 root     root          22 Sep 18 05:38 vml.0000000000766d68626133323a303a30:7 -> mpx.vmhba32:C0:T0:L0:7
lrwxrwxrwx    1 root     root          22 Sep 18 05:38 vml.0000000000766d68626133323a303a30:8 -> mpx.vmhba32:C0:T0:L0:8
lrwxrwxrwx    1 root     root          74 Sep 18 05:38 vml.0100000000202020202057442d574341545236353736323838574443205744 -> t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288
lrwxrwxrwx    1 root     root          76 Sep 18 05:38 vml.0100000000202020202057442d574341545236353736323838574443205744:1 -> t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:1
lrwxrwxrwx    1 root     root          76 Sep 18 05:38 vml.0100000000202020202057442d574341545236353736323838574443205744:2 -> t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:2
lrwxrwxrwx    1 root     root          76 Sep 18 05:38 vml.0100000000202020202057442d574341545236353736323838574443205744:3 -> t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:3
lrwxrwxrwx    1 root     root          76 Sep 18 05:38 vml.0100000000202020202057442d574341545236353736323838574443205744:4 -> t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:4
lrwxrwxrwx    1 root     root          76 Sep 18 05:38 vml.0100000000202020202057442d574341545236353736323838574443205744:5 -> t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:5
lrwxrwxrwx    1 root     root          76 Sep 18 05:38 vml.0100000000202020202057442d574341545236353736323838574443205744:6 -> t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:6
lrwxrwxrwx    1 root     root          74 Sep 18 05:38 vml.0100000000202020202057442d574d41545638383631363533574443205744 -> t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653
lrwxrwxrwx    1 root     root          76 Sep 18 05:38 vml.0100000000202020202057442d574d41545638383631363533574443205744:1 -> t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:1
lrwxrwxrwx    1 root     root          76 Sep 18 05:38 vml.0100000000202020202057442d574d41545638383631363533574443205744:2 -> t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:2
lrwxrwxrwx    1 root     root          76 Sep 18 05:38 vml.0100000000202020202057442d574d41545638383631363533574443205744:3 -> t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:3
lrwxrwxrwx    1 root     root          76 Sep 18 05:38 vml.0100000000202020202057442d574d41545638383631363533574443205744:4 -> t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:4
lrwxrwxrwx    1 root     root          76 Sep 18 05:38 vml.0100000000202020202057442d574d41545638383631363533574443205744:5 -> t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:5
lrwxrwxrwx    1 root     root          76 Sep 18 05:38 vml.0100000000202020202057442d574d41545638383631363533574443205744:6 -> t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:6

도와주세요? 뽑을 머리카락이 부족하네요.... :-) 모두들 정말 감사드립니다.

답변1

다음 명령을 사용하여 파티션을 나열합니다.

partedUtil getptbl "/vmfs/devices/disks/DeviceName"

예제 출력:

1 63      2249099   131 128
2 2249100 2474009   252 0
3 2474010 286487144 5   0
5 2474073 286487144 251 0
| |       |         |   |
| |       |         |   \--- attribute
| |       |         \------- type
| |       \----------------- ending sector
| \------------------------- starting sector
\--------------------------- partition number

파티션 유형:

Linux - 0x83 = 131
Linux SWAP - 0x82 = 130
Linux LVM - 0x8e = 142
Linux RAID - 0xfd = 253

파티션 삭제:

partedUtil delete "/vmfs/devices/disks/DeviceName" [partition number]

답변2

msdos 파티션을 생성합니다:

partedUtil setptbl /vmfs/devices/disks/{id} msdos

보다:http://www.vbrain.info/2014/04/23/cannot-format-harddisk-with-vmfs5-after-removing-it-from-raid-array/

답변3

VMware 기술 자료 문서를 살펴보는 것이 좋습니다. vmkfstools -C를 사용하여 수동으로 VMFS 볼륨 생성그리고 필요한 절차를 좀 더 자세히 설명합니다(기본적으로 GioMac이 보낸 내용). 일반적으로 그들의 지식 기반은 매우 가치 있는 정보 소스이며 여러 번 도움이 되었습니다.

답변4

모두.

제가 어떻게 했는지 단계별로 설명하겠습니다. 요즘 유튜브로 할 수 있는 일이 뭐죠? Google에서 직접 검색해도 답을 찾을 수 없는 것 같아서 이 문제에 직면해야 할 모든 사람과 공유하기 위해 여기에 게시했다고 생각했습니다.

http://www.youtube.com/watch?v=IDjzI3OOdOw

ls /dev/디스크

mpx.vmhba32:C0:T0:L0
mpx.vmhba32:C0:T0:L0:1
mpx.vmhba32:C0:T0:L0:5
mpx.vmhba32:C0:T0:L0:6
mpx.vmhba32:C0:T0:L0:7
mpx.vmhba32:C0:T0:L0:8
t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653
t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:1
t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:2
t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:3
t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:4
t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:5
t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:6
t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288
t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:1
t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:2
t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:3
t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:4
t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:5
t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:6
vml.0000000000766d68626133323a303a30
vml.0000000000766d68626133323a303a30:1
vml.0000000000766d68626133323a303a30:5
vml.0000000000766d68626133323a303a30:6
vml.0000000000766d68626133323a303a30:7
vml.0000000000766d68626133323a303a30:8
vml.0100000000202020202057442d574341545236353736323838574443205744
vml.0100000000202020202057442d574341545236353736323838574443205744:1
vml.0100000000202020202057442d574341545236353736323838574443205744:2
vml.0100000000202020202057442d574341545236353736323838574443205744:3
vml.0100000000202020202057442d574341545236353736323838574443205744:4
vml.0100000000202020202057442d574341545236353736323838574443205744:5
vml.0100000000202020202057442d574341545236353736323838574443205744:6
vml.0100000000202020202057442d574d41545638383631363533574443205744
vml.0100000000202020202057442d574d41545638383631363533574443205744:1
vml.0100000000202020202057442d574d41545638383631363533574443205744:2
vml.0100000000202020202057442d574d41545638383631363533574443205744:3
vml.0100000000202020202057442d574d41545638383631363533574443205744:4
vml.0100000000202020202057442d574d41545638383631363533574443205744:5
vml.0100000000202020202057442d574d41545638383631363533574443205744:6

첫 번째 드라이브.

t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653
t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:1
t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:2
t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:3
t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:4
t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:5
t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653:6

partedUtil delete /dev/disks/t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653 1

partedUtil delete /dev/disks/t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653 2

partedUtil delete /dev/disks/t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653 3

partedUtil delete /dev/disks/t10.ATA_____WDC_WD1001FALS2D00E8B0________________________WD2DWMATV8861653 4

무슨 이유인지 5번과 6번은 삭제가 안되는데 어차피 4번 이후에는 없어졌습니다.

두 번째 드라이브.

t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288
t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:1
t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:2
t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:3
t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:4
t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:5
t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288:6

partedUtil delete   /dev/disks/t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288 1
partedUtil delete /dev/disks/t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288 2

partedUtil delete /dev/disks/t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288 3

partedUtil delete /dev/disks/t10.ATA_____WDC_WD10EALX2D009BA0__________________________WD2DWCATR6576288 4

관련 정보