noorani92
Contributor
Contributor

Unable to unmount/delete local VMFS datastore

Jump to solution

Hi everyone,

I am unable to delete/unmount local vmfs datastore. There are no vms, sioc is disabled, datastore is not used for heartbeating. The error tells that the filesystem is busy.

Just for information, I am using esxi 6.5U2 on DL380 Gen10 servers and vcenter 6.7. The esxi is installed on SD card.

Unable to figure out the root cause. Any help ??

Can the scratch location be the source of issue. I can see scratch configured location to be in same datastore in .locker directory. Just a guess 

0 Kudos
1 Solution

Accepted Solutions
SureshKumarMuth
Commander
Commander

Can you  check the scratch partition settings

  1. Connect to ESXi host using Host Client.
  2. Click Storage.
  3. Right-click a datastore and click Browse.
  4. Create a uniquely-named directory for this ESXi host.

    For example:

    .locker-ESXHostname
  5. Close the Datastore Browser.
  6. Click the Manage tab
  7. Under System, click Advanced System Settings.

    The setting ScratchConfig.CurrentScratchLocation shows the current location of the scratch partition.

If it is configured with current datastore, try to change it to /tmp and check to unmount the DS again.

Also check "lsof | grep '/vmfs/volumes/'" , it will show the current open files in the filesystem.

Regards, Suresh https://vconnectit.wordpress.com/

View solution in original post

0 Kudos
4 Replies
a_p_
Leadership
Leadership

Yes, in this case you'll need to relocate the .locker directory to another datastore.


André

SureshKumarMuth
Commander
Commander

Can you  check the scratch partition settings

  1. Connect to ESXi host using Host Client.
  2. Click Storage.
  3. Right-click a datastore and click Browse.
  4. Create a uniquely-named directory for this ESXi host.

    For example:

    .locker-ESXHostname
  5. Close the Datastore Browser.
  6. Click the Manage tab
  7. Under System, click Advanced System Settings.

    The setting ScratchConfig.CurrentScratchLocation shows the current location of the scratch partition.

If it is configured with current datastore, try to change it to /tmp and check to unmount the DS again.

Also check "lsof | grep '/vmfs/volumes/'" , it will show the current open files in the filesystem.

Regards, Suresh https://vconnectit.wordpress.com/

View solution in original post

0 Kudos
noorani92
Contributor
Contributor

lsof command didn't return any output. Will try changing the scratch location to tmp lets see if I get any luck.

0 Kudos
noorani92
Contributor
Contributor

Thank you everyone. It worked, scratch configuration was the source. I changed it to /tmp and it worked.

0 Kudos