ESXi 5.5 マシンにSSDを追加した時のログ

パーティションが認識されれないので、vSphere Clientから追加時にエラーがでた時の対処。
つまるところ、ESXiのパーティションツールを使ってSSDに記憶されているパーティションを事前にクリアする作業をする。（このSSDは、以前別のLinuxマシンに接続していためパーティションテーブルが構成されていた）

まず、SSHでログインしてデバイス確認。

```shell-session
[root@sarah ~]# ssh 192.168.0.12
Password:
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
mpx.vmhba33:C0:T0:L0
   Device Type: Direct-Access
   Size: 1960 MB
   Display Name: Local USB Direct-Access (mpx.vmhba33:C0:T0:L0)
   Multipath Plugin: NMP
   Console Device: /vmfs/devices/disks/mpx.vmhba33:C0:T0:L0
   Devfs Path: /vmfs/devices/disks/mpx.vmhba33:C0:T0:L0
   Vendor: Generic   Model: Flash Disk        Revis: 8.07
   SCSI Level: 2  Is Pseudo: false Status: on
   Is RDM Capable: false Is Removable: true
   Is Local: true  Is SSD: false
   Other Names:
      vml.0000000000766d68626133333a303a30
   VAAI Status: unsupported
mpx.vmhba38:C0:T0:L0
   Device Type: CD-ROM
   Size: 0 MB
   Display Name: Local hp CD-ROM (mpx.vmhba38:C0:T0:L0)
   Multipath Plugin: NMP
   Console Device: /vmfs/devices/cdrom/mpx.vmhba38:C0:T0:L0
   Devfs Path: /vmfs/devices/cdrom/mpx.vmhba38:C0:T0:L0
   Vendor: hp        Model: DVDROM DH41N      Revis: S100
   SCSI Level: 5  Is Pseudo: false Status: on
   Is RDM Capable: false Is Removable: true
   Is Local: true  Is SSD: false
   Other Names:
      vml.0005000000766d68626133383a303a30
   VAAI Status: unsupported
t10.ATA_____ADATA_SSD_S510_120GB____________________02203133500400001048
   Device Type: Direct-Access
   Size: 114473 MB
   Display Name: Local ATA Disk (t10.ATA_____ADATA_SSD_S510_120GB____________________02203133500400001048)
   Multipath Plugin: NMP
   Console Device: /vmfs/devices/disks/t10.ATA_____ADATA_SSD_S510_120GB____________________02203133500400001048
   Devfs Path: /vmfs/devices/disks/t10.ATA_____ADATA_SSD_S510_120GB____________________02203133500400001048
   Vendor: ATA       Model: ADATA SSD S510 1  Revis: 3.3.
   SCSI Level: 5  Is Pseudo: false Status: on
   Is RDM Capable: false Is Removable: false
   Is Local: true  Is SSD: true
   Other Names:
      vml.01000000003032323033313333353030343030303031303438414441544120
   VAAI Status: unknown
t10.ATA_____Samsung_SSD_850_EVO_250GB_______________S21MNSAFC07236J_____
   Device Type: Direct-Access
   Size: 238475 MB
   Display Name: Local ATA Disk (t10.ATA_____Samsung_SSD_850_EVO_250GB_______________S21MNSAFC07236J_____)
   Multipath Plugin: NMP
   Console Device: /vmfs/devices/disks/t10.ATA_____Samsung_SSD_850_EVO_250GB_______________S21MNSAFC07236J_____
   Devfs Path: /vmfs/devices/disks/t10.ATA_____Samsung_SSD_850_EVO_250GB_______________S21MNSAFC07236J_____
   Vendor: ATA       Model: Samsung SSD 850   Revis: EMT0
   SCSI Level: 5  Is Pseudo: false Status: on
   Is RDM Capable: false Is Removable: false
   Is Local: true  Is SSD: true
   Other Names:
      vml.01000000005332314d4e5341464330373233364a202020202053616d73756e
   VAAI Status: unknown
t10.ATA_____VB0250EAVER_____________________________Z3T1VCQ6____________
   Device Type: Direct-Access
   Size: 238475 MB
   Display Name: Local ATA Disk (t10.ATA_____VB0250EAVER_____________________________Z3T1VCQ6____________)
   Multipath Plugin: NMP
   Console Device: /vmfs/devices/disks/t10.ATA_____VB0250EAVER_____________________________Z3T1VCQ6____________
   Devfs Path: /vmfs/devices/disks/t10.ATA_____VB0250EAVER_____________________________Z3T1VCQ6____________
   Vendor: ATA       Model: VB0250EAVER       Revis: HPG7
   SCSI Level: 5  Is Pseudo: false Status: on
   Is RDM Capable: false Is Removable: false
   Is Local: true  Is SSD: false
   Other Names:
      vml.01000000005a33543156435136202020202020202020202020564230323530
   VAAI Status: unknown
~ #
```

**「t10.ATA_____Samsung_SSD_850_EVO_250GB_______________S21MNSAFC07236J_____」** が今回追加したいSSD。

>このマシンは他に、DVD-ROM、Boot用のUSBフラッシュメモリ、1TBのHDD、120GBのSSDはが接続されている。

パーティションを消す。``partedUtil get`` でパーティションが2つあることがわかるので、それぞれ ``partedUtil delete`` していく。

```shell-session
~ # partedUtil get /dev/disks/t10.ATA_____Samsung_SSD_850_EVO_250GB_______________S21MNSAFC07236J_____
30401 255 63 488397168
1 2048 1026047 131 128
2 1026048 488396799 142 0

~ # partedUtil delete /dev/disks/t10.ATA_____Samsung_SSD_850_EVO_250GB_______________S21MNSAFC07236J_____ 1

~ # partedUtil delete /dev/disks/t10.ATA_____Samsung_SSD_850_EVO_250GB_______________S21MNSAFC07236J_____ 2

~ # partedUtil get /dev/disks/t10.ATA_____Samsung_SSD_850_EVO_250GB_______________S21MNSAFC07236J_____
30401 255 63 488397168

~ # Connection to 192.168.0.12 closed.
```