ESXI6.7 使用笔记

一,删除以前装过系统或进行过分区的硬盘的所有分区,以便分配给VMFS使用或直通给虚拟机

1,查看当前系统中的存储设备的列表

# esxcfg-scsidevs -l

t10.ATA_____WDC_WD3200AAJS2D08L7A0________________________WD2DWCAPD4768401
   Device Type: Direct-Access 
   Size: 305245 MB
   Display Name: Local ATA Disk (t10.ATA_____WDC_WD3200AAJS2D08L7A0________________________WD2DWCAPD4768401)
   Multipath Plugin: NMP
   Console Device: /vmfs/devices/disks/t10.ATA_____WDC_WD3200AAJS2D08L7A0________________________WD2DWCAPD4768401
   Devfs Path: /vmfs/devices/disks/t10.ATA_____WDC_WD3200AAJS2D08L7A0________________________WD2DWCAPD4768401
   Vendor: ATA       Model: WDC WD3200AAJS-0  Revis: 0M22 
   SCSI Level: 5  Is Pseudo: false Status: on        
   Is RDM Capable: false Is Removable: false 
   Is Local: true  Is SSD: false 
   Other Names: 
      vml.0100000000202020202057442d574341504434373638343031574443205744
   VAAI Status: unsupported

2,获取指定存储设备的信息

# partedUtil get /vmfs/devices/disks/t10.ATA_____WDC_WD3200AAJS2D08L7A0________________________WD2DWCAPD4768401

3,删除分区

# partedUtil delete /vmfs/devices/disks/t10.ATA_____WDC_WD3200AAJS2D08L7A0________________________WD2DWCAPD4768401 1

4,直通给虚拟机

# vmkfstools -z /vmfs/devices/disks/t10.ATA_____WDC_WD3200AAJS2D08L7A0________________________WD2DWCAPD4768401  /vmfs/volumes/VM_OS/RDMStore/WDC_WD3200AAJS2D08L7A0.vmdk

**附:ESXI常用的存储空间管理命令

  1. esxcli storage vmfs extent list //列出系统当前已经启用的VMFS存储空间
  2. ls -lha /vmfs/devices/disks/

**

二,

你可能感兴趣的:(ESXI,VMware,vSphere,虚拟化,VMFS,Linux)