esxi添加磁盘,因为之前这块硬盘使用过,存在NTFS分区,所以添加时报错。提示调用对象 “storageSystem”的“HostStorageSystem.ComputeDiskPartitionInfo” 失败。
解决办法,删除所有磁盘分区。服务器不想再拆硬盘,在ssh下的操作:
login as: root
Using keyboard-interactive authentication.
Password:
Server refused to set environment variables
The time and date of this login have been sent to the system logs.
VMware offers supported, powerful system administration tools. Please
see www.vmware.com/go/sysadmintools for details.
The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
~ # esxcfg-scsidevs -l
t10.ATA_____PLEXTOR_PX2D256M6S_______________________P02430100459________
Device Type: Direct-Access
Size: 244198 MB
Display Name: Local ATA Disk (t10.ATA_____PLEXTOR_PX2D256M6S_______________________P02430100459________)
Multipath Plugin: NMP
Console Device: /vmfs/devices/disks/t10.ATA_____PLEXTOR_PX2D256M6S_______________________P02430100459________
Devfs Path: /vmfs/devices/disks/t10.ATA_____PLEXTOR_PX2D256M6S_______________________P02430100459________
Vendor: ATA Model: PLEXTOR PX-256M6 Revis: 1.03
SCSI Level: 5 Is Pseudo: false Status: on
Is RDM Capable: false Is Removable: false
Is Local: true Is SSD: true
Other Names:
vml.01000000005030323433303130303435392020202020202020504c4558544f
VAAI Status: unknown
t10.ATA_____ST2000DM0012D1CH164__________________________________W1E5ZMS4
Device Type: Direct-Access
Size: 1907729 MB
Display Name: Local ATA Disk (t10.ATA_____ST2000DM0012D1CH164__________________________________W1E5ZMS4)
Multipath Plugin: NMP
Console Device: /vmfs/devices/disks/t10.ATA_____ST2000DM0012D1CH164__________________________________W1E5ZMS4
Devfs Path: /vmfs/devices/disks/t10.ATA_____ST2000DM0012D1CH164__________________________________W1E5ZMS4
Vendor: ATA Model: ST2000DM001-1CH1 Revis: CC27
SCSI Level: 5 Is Pseudo: false Status: on
Is RDM Capable: false Is Removable: false
Is Local: true Is SSD: false
Other Names:
vml.0100000000202020202020202020202020573145355a4d5334535432303030
VAAI Status: unknown
t10.ATA_____WDC_WD5000AAKX2D08ERMA0_______________________WD2DWCC2ER588790
Device Type: Direct-Access
Size: 476940 MB
Display Name: Local ATA Disk (t10.ATA_____WDC_WD5000AAKX2D08ERMA0_______________________WD2DWCC2ER588790)
Multipath Plugin: NMP
Console Device: /vmfs/devices/disks/t10.ATA_____WDC_WD5000AAKX2D08ERMA0_______________________WD2DWCC2ER588790
Devfs Path: /vmfs/devices/disks/t10.ATA_____WDC_WD5000AAKX2D08ERMA0_______________________WD2DWCC2ER588790
Vendor: ATA Model: WDC WD5000AAKX-0 Revis: 19.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.0100000000202020202057442d574343324552353838373930574443205744
VAAI Status: unknown
~ # partedUtil get /dev/disks/t10.ATA_____ST2000DM0012D1CH164__________________________________W1E5ZMS4
243201 255 63 3907029168
1 63 419441084 7 128
2 419441085 3907024064 15 0
5 419441148 3907024064 7 0
~ # partedUtil delete /dev/disks/t10.ATA_____ST2000DM0012D1CH164__________________________________W1E5ZMS4 5
~ # partedUtil delete /dev/disks/t10.ATA_____ST2000DM0012D1CH164__________________________________W1E5ZMS4 2
~ # partedUtil delete /dev/disks/t10.ATA_____ST2000DM0012D1CH164__________________________________W1E5ZMS4 1
~ # partedUtil get /dev/disks/t10.ATA_____ST2000DM0012D1CH164__________________________________W1E5ZMS4
243201 255 63 3907029168
~ #