VMware vSphere

 View Only
  • 1.  not able to delete specific iso file from vmfs5 datastore

    Posted Oct 24, 2012 02:35 AM

    Everytime i tried move the iso folder from one of the vmfs to another vmfs i received the error message saying that i don't have the access.

    I tried to delete also not able to delete. I tried to download into my pc also failed. The image i tried to move is vmi setup 5.1 iso file.

    Please can someone advice me what should i do in order to move that iso file or delete it.



  • 2.  RE: not able to delete specific iso file from vmfs5 datastore

    Posted Oct 24, 2012 03:01 AM

    you can enable ssh or shell, then do this: cd/vmfs/volumes/yourdatastorename

    ls

    rm -rf yourvmname

    be careful, this commad can delete entire darastores!



  • 3.  RE: not able to delete specific iso file from vmfs5 datastore

    Posted Oct 24, 2012 03:15 AM

    i browsed to the specific folder and tried to delete. it said the device or folder is busy. please can you tell me how to check this file is attached to which vm?



  • 4.  RE: not able to delete specific iso file from vmfs5 datastore

    Posted Oct 24, 2012 03:31 AM

    i've attached the screenshot of the output of vmkfstools -D filename.

    Please can someone give me advice about what should i do in order to move or delete that image?



  • 5.  RE: not able to delete specific iso file from vmfs5 datastore

    Posted Oct 24, 2012 03:41 AM

    Look at the. *.vmx, that file is the key.Also, you can try: grep-r foldername stringsearch



  • 6.  RE: not able to delete specific iso file from vmfs5 datastore

    Posted Oct 24, 2012 03:45 AM

    BTW: the obvious answer is that one of yourVMs is mounting the ISO, like in a VMware Tools install.Look at all of your VMs and



  • 7.  RE: not able to delete specific iso file from vmfs5 datastore

    Posted Oct 24, 2012 04:21 AM

    i already checked all my VMs and it's not mounted inside any of the VMs.



  • 8.  RE: not able to delete specific iso file from vmfs5 datastore

    Posted Oct 24, 2012 05:16 AM

    after i checked through i found out my iso file which has the owner is all 0 means it's lock and it's mode 2 so it's read-only lock.

    So please can someone tell me how can i move or delete the file with read-only lock?



  • 9.  RE: not able to delete specific iso file from vmfs5 datastore

    Posted Oct 24, 2012 08:13 AM

    did you try to delete the file via WinSCP as user root ?



  • 10.  RE: not able to delete specific iso file from vmfs5 datastore

    Posted Oct 24, 2012 05:47 PM

    Does any of the VMs have active snapshots? It may be possible that the ISO has been attached to one of the VMs at the time a snapshot was created. In this case the lock should be released after deleting the snapshot.

    Btw. RVTools (http://www.robware.net/) gives you a great overview, including attached ISO files.

    André