VMware Cloud Community
MrVmware9423
Expert
Expert
Jump to solution

Delete the vmdk content

Dear Team,

How to delete vmdk content before deleting vmdk file from datastore.

so that no one will be able to recover the data from that vmdk.

regards

Mr VMware

Reply
0 Kudos
1 Solution

Accepted Solutions
vThinkBeyondVM
VMware Employee
VMware Employee
Jump to solution

Hi Friend,

Steps to do the same.

1. Create a VM with 1 vmdk ::Keep in mind the datastore on which VM is created.

2. SSH to host on which this VM is created.

3. Goto (cd to) "/vmfs/volumes/<data_store recorded in 1st step>/<VM folder name>

4. You will be in this directory now: "/vmfs/volumes/<data_store recorded in 1st step>/<VM folder name>#

   run below command:

             /vmfs/volumes/<data_store recorded in 1st step>/<VM folder name>#vmkfstools -w <vmdk_file_name.vmdk>

5. Zeroing will start.

6. Once above operation is complete, you can either delete vmdk from datastore by using VI/web client or again you can delete by using "vmkfstools" utility.

Let me know if you need any help.


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

View solution in original post

Reply
0 Kudos
3 Replies
vThinkBeyondVM
VMware Employee
VMware Employee
Jump to solution

Delete VMDK Files Securely

To help prevent sensitive data in VMDK files from being read off the physical disk after it is deleted, write zeros to the entire contents of a VMDK file ("zero out") before you delete it, overwriting the sensitive data. When you zero out a file, it is more difficult for someone to reconstruct the contents.


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

MrVmware9423
Expert
Expert
Jump to solution

Thanks Vicky for prompt response.

Request you to share the complete command where to define the vmdk file name.

regards

Mr VMware

Reply
0 Kudos
vThinkBeyondVM
VMware Employee
VMware Employee
Jump to solution

Hi Friend,

Steps to do the same.

1. Create a VM with 1 vmdk ::Keep in mind the datastore on which VM is created.

2. SSH to host on which this VM is created.

3. Goto (cd to) "/vmfs/volumes/<data_store recorded in 1st step>/<VM folder name>

4. You will be in this directory now: "/vmfs/volumes/<data_store recorded in 1st step>/<VM folder name>#

   run below command:

             /vmfs/volumes/<data_store recorded in 1st step>/<VM folder name>#vmkfstools -w <vmdk_file_name.vmdk>

5. Zeroing will start.

6. Once above operation is complete, you can either delete vmdk from datastore by using VI/web client or again you can delete by using "vmkfstools" utility.

Let me know if you need any help.


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

Reply
0 Kudos