0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

How to Delete ESXi 6.5 datastore with .locker ScratchLocation

Last updated at Posted at 2018-02-02

Error

When deleting the datastore with .locker directory = ScratchConfigDir, it cannot be deleted - busy

How to fix

vim-cmd hostsvc/advopt/update UserVars.SuppressShellWarning long 1
vim-cmd hostsvc/advopt/view ScratchConfig.ConfiguredScratchLocation

(vim.option.OptionValue) [
   (vim.option.OptionValue) {
      key = "ScratchConfig.ConfiguredScratchLocation", 
      value = "/vmfs/volumes/5a5d8564-a4e94afa-2926-901b0e6e4600/.locker"
   }
]
  • Now change ScratchConfig.ConfiguredScratchLocation -> /tmp
vim-cmd hostsvc/advopt/update ScratchConfig.ConfiguredScratchLocation string /tmp

cat /etc/vmware/locker.conf
/tmp/.scratch 0
  • Remove .locker
rm -rf /vmfs/volumes/5a5d8564-a4e94afa-2926-901b0e6e4600/.locker
  • Reboot
    2018-02-02_141712.jpg

  • Remove the datastore - Done :relieved:

Reference

cf. http://adis.ca/entry/2016/partition-esxi-disks-cli/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?