VMware Cloud Community
ethan20
Contributor
Contributor

not able to delete specific iso file from vmfs5 datastore

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.

0 Kudos
9 Replies
unsichtbare
Expert
Expert

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!

    +The Invisible Admin+ If you find me useful, follow my blog: http://johnborhek.com/
    0 Kudos
    ethan20
    Contributor
    Contributor

    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?

    0 Kudos
    ethan20
    Contributor
    Contributor

    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?

    0 Kudos
    unsichtbare
    Expert
    Expert

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

    +The Invisible Admin+ If you find me useful, follow my blog: http://johnborhek.com/
    0 Kudos
    unsichtbare
    Expert
    Expert

    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

    +The Invisible Admin+ If you find me useful, follow my blog: http://johnborhek.com/
    0 Kudos
    ethan20
    Contributor
    Contributor

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

    0 Kudos
    ethan20
    Contributor
    Contributor

    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?

    0 Kudos
    continuum
    Immortal
    Immortal

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


    ________________________________________________
    Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
    I do not support Workstation 16 at this time ...

    0 Kudos
    a_p_
    Leadership
    Leadership

    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é

    0 Kudos