HPE Storage Users Group
https://3parug.com/

zerod binary vmware
https://3parug.com/viewtopic.php?f=18&t=2620
Page 1 of 1

Author:  fernandojosepenna [ Thu Aug 17, 2017 9:59 am ]
Post subject:  zerod binary vmware

Hi Guys,

My Scenario: HP 3PAR P10000 InServ V400
Capacity: 43.680.000 Gb
Allocated: 41.151.000 Gb
Free: 2.527.000 Gb

I have servers HP-UX and VMware.
In My server HP-UX, a send zero binary to Free space in File System and recover the area to storage.

My problem is in the vmware esx servers 6
how to send zero binary to free space?

i need a document from HP telling me how to do it; because is someone else going to run on vmare servers.

I NEED TO FREE SPACE.

Wait

Author:  bajorgensen [ Thu Aug 17, 2017 2:01 pm ]
Post subject:  Re: zerod binary vmware

esxcli storage vmfs unmap

https://kb.vmware.com/kb/2057513

Author:  ailean [ Fri Aug 18, 2017 5:19 am ]
Post subject:  Re: zerod binary vmware

unmap will work with freeing space after VMDKs have been moved/deleted but to free space from within the VMDK files you need to run tools within the VM Guest OS itself to write zeros.

Author:  bajorgensen [ Sat Aug 19, 2017 2:56 am ]
Post subject:  Re: zerod binary vmware

Fernando, do you mean from guest OS? In wich case specify OS and 3PAR SW version.

Author:  aberus [ Sat Aug 19, 2017 10:11 am ]
Post subject:  Re: zerod binary vmware

Here is the procedure that I follow (hopefully no one is still running 5.1)

sDelete
Inside of each Windows guest run sdelete.exe against each drive

Sdelete.exe -s -z <drvltr>:


Manually Run UNMAP
VMware 5.1:
1. SSH into the esxi host
2. Change into the /vmfs/volumes/<datastore>
3. Run UNMAP as follows: vmkfstools -y 99

To run this against ALL of the volumes, assuming the volume name contains 3PAR, issue the following command:

for i in `ls /vmfs/volumes |grep 3PAR`; do cd /vmfs/volumes/$i && vmkfstools -y 90; done

This will run one volume at a time so it will be slow but is the best way to minimize I/O impact.

VMware 5.5/6.x:
1. SSH into the esxi host
2. Change to /vmfs/volumes/
3. Run ls to get a listing of the datastores that are present
4. Run UNMAP as follows: esxcli storage vmfs unmap -l <volume_label>

You can also run this against the uuid using the following command: esxcli storage vmfs unmap -u <volume_uuid>

On the 3PAR run compactcpg

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/