Reese Knowledgebase

How to reformat local datastore ESXi 5.5

View Kristian Reese's profile on LinkedIn


If you like this article, please +1 or Recommend via FB with the provided buttons above:

Article ID: 165
by: Reese K.
Posted: 27 Mar, 2015
Last updated: 27 Mar, 2015
Views: 6611

How to reformat a local datastore VMware ESXi 5.5

  1. Enable ESXi shell [kb.vmware.com/kb/2004746]
  2. Storage vMotion off any VMs you wish to keep from the local datastore(s)
  3. ssh into the host containing the local storage that needs reformating
  4. list the devices using the following command --> esxcfg-scsidevs -m
  5. Run vmkfstools against each device needing reformating:
    1. vmkfstools -C vmfs5 -b 1m -S SSDstore01 /vmfs/devices/disks/t10.ATA__Patriot_Torch__DD307421EE008773164:1
  6. Rescan the storage
    1. esxcli storage core adapter rescan -a


Working Example

~ # esxcfg-scsidevs  -m
t10.ATA_____Patriot_Torch___________________________DDC3074A03EE00853890:3 /vmfs/devices/disks/t10.ATA_____Patriot_Torch___________________________DDC3074A03EE00853890:3 549206aa-b1bd3c5e-c06c-4439c454f97d  0  datastore1
t10.ATA_____Patriot_Torch___________________________DB0A074B10EE01003727:1 /vmfs/devices/disks/t10.ATA_____Patriot_Torch___________________________DB0A074B10EE01003727:1 54999065-70aaeb02-442f-4439c454f97d  0  LocalSSD01
~ # 
~ # 
~ # 
~ # 
~ # uname -a
VMkernel ts140 5.5.0 #1 SMP Release build-2456374 Jan 21 2015 16:29:15 x86_64 GNU/Linux
~ # 
~ # vmkfstools -C vmfs5 -b 1m -S SSDstore01 /vmfs/devices/disks/t10.ATA_____Patriot_Torch___________________________DDC3074A03EE00853890:3 
create fs deviceName:'/vmfs/devices/disks/t10.ATA_____Patriot_Torch___________________________DDC3074A03EE00853890:3', fsShortName:'vmfs5', fsName:'SSDstore01'
deviceFullPath:/dev/disks/t10.ATA_____Patriot_Torch___________________________DDC3074A03EE00853890:3 deviceFile:t10.ATA_____Patriot_Torch___________________________DDC3074A03EE00853890:3
Checking if remote hosts are using this device as a valid file system. This may take a few seconds...
Creating vmfs5 file system on "t10.ATA_____Patriot_Torch___________________________DDC3074A03EE00853890:3" with blockSize 1048576 and volume label "SSDstore01".
Successfully created new volume: 5515a8dd-80ad5be0-5cbf-4439c454f97d
~ # 
~ # 
~ # vmkfstools -C vmfs5 -b 1m -S SSDstore02 /vmfs/devices/disks/t10.ATA_____Patriot_Torch___________________________DB0A074B10EE01003727:1 
create fs deviceName:'/vmfs/devices/disks/t10.ATA_____Patriot_Torch___________________________DB0A074B10EE01003727:1', fsShortName:'vmfs5', fsName:'SSDstore02'
deviceFullPath:/dev/disks/t10.ATA_____Patriot_Torch___________________________DB0A074B10EE01003727:1 deviceFile:t10.ATA_____Patriot_Torch___________________________DB0A074B10EE01003727:1
Checking if remote hosts are using this device as a valid file system. This may take a few seconds...
Creating vmfs5 file system on "t10.ATA_____Patriot_Torch___________________________DB0A074B10EE01003727:1" with blockSize 1048576 and volume label "SSDstore02".
Successfully created new volume: 5515a911-e7a9cfa4-aa7e-4439c454f97d
~ # 
~ # 
~ # esxcli storage core adapter rescan -a
~ # 
~ # esxcfg-scsidevs  -m
t10.ATA_____Patriot_Torch___________________________DDC3074A03EE00853890:3 /vmfs/devices/disks/t10.ATA_____Patriot_Torch___________________________DDC3074A03EE00853890:3 5515a8dd-80ad5be0-5cbf-4439c454f97d  0  SSDstore01
t10.ATA_____Patriot_Torch___________________________DB0A074B10EE01003727:1 /vmfs/devices/disks/t10.ATA_____Patriot_Torch___________________________DB0A074B10EE01003727:1 5515a911-e7a9cfa4-aa7e-4439c454f97d  0  SSDstore02

END

This article was:   Helpful | Not Helpful
Prev   Next
Exporting OVF Template via vSphere Client Times Out     SQL

RSS