18.08.2013 Views

vSphere Storage - ESXi 5.1 - Documentation - VMware

vSphere Storage - ESXi 5.1 - Documentation - VMware

vSphere Storage - ESXi 5.1 - Documentation - VMware

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>vSphere</strong> <strong>Storage</strong><br />

The following thin provisioning status indicates that the storage device is thin-provisioned.<br />

# esxcli --server=server_name storage core device list -d naa.XXXXXXXXXXXX4c<br />

naa.XXXXXXXXXXXX4c<br />

Display Name: XXXX Fibre Channel Disk(naa.XXXXXXXXXXXX4c)<br />

Size: 20480<br />

Device Type: Direct-Access<br />

Multipath Plugin: NMP<br />

---------------------<br />

Thin Provisioning Status: yes<br />

Attached Filters: VAAI_FILTER<br />

VAAI Status: supported<br />

---------------------<br />

An unknown status indicates that a storage device is thick.<br />

NOTE Some storage systems present all devices as thin-provisioned no matter whether the devices are thin or<br />

thick. Their thin provisioning status is always yes. For details, check with your storage vendor.<br />

Disable Space Reclamation<br />

Use the esxcli command to disable space reclamation on a thin-provisioned LUN.<br />

When you delete virtual machine files from a VMFS datastore, or migrate them through <strong>Storage</strong> vMotion, the<br />

datastore frees blocks of space and informs the storage array, so that the blocks can be reclaimed. If you do not<br />

need thin provisioned LUNs to reclaim the freed space, you can disable space reclamation on the host.<br />

NOTE As with any advanced settings, before disabling the space reclamation, consult with the <strong>VMware</strong> support<br />

team.<br />

In the procedure, --server=server_name specifies the target server. The specified target server prompts you<br />

for a user name and password. Other connection options, such as a configuration file or session file, are<br />

supported. For a list of connection options, see Getting Started with <strong>vSphere</strong> Command-Line Interfaces.<br />

Prerequisites<br />

Install vCLI or deploy the <strong>vSphere</strong> Management Assistant (vMA) virtual machine. See Getting Started with<br />

<strong>vSphere</strong> Command-Line Interfaces. For troubleshooting , run esxcli commands in the <strong>ESXi</strong> Shell.<br />

Procedure<br />

u Run the following command:<br />

esxcli --server=server_name system settings advanced set --int-value 0 -option<br />

/VMFS3/EnableBlockDelete.<br />

Reclaim Accumulated <strong>Storage</strong> Space<br />

When VMFS datastores reside on thin-provisioned LUNs, you can use the vmkfstools -y to reclaim storage<br />

blocks resulting from deleting or moving files from the VMFS datastores.<br />

IMPORTANT You can use this command only if your storage vendor has tested this option with storage arrays<br />

and supports it. For information on how to verify whether the array supports this command, see the <strong>VMware</strong><br />

knowledge base article at http://kb.vmware.com/kb/2014849.<br />

Prerequisites<br />

n Upgrade your host to <strong>ESXi</strong> <strong>5.1</strong>.<br />

n Upgrade a datastore deployed on the thin-provisioned device to VMFS5.<br />

232 <strong>VMware</strong>, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!