How to Delete ESXi 6.5 datastore with .locker ScratchLocation
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
Reference
Author And Source
この問題について(How to Delete ESXi 6.5 datastore with .locker ScratchLocation), 我々は、より多くの情報をここで見つけました https://qiita.com/tkprof/items/72d61ab0be5fd90bb090著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .