系統出現 "Virtual machine disks consolidation is needed"
用 SSH 連到主機端, 查看 vmware.log
# vi vmware.log
2015-06-02T09:52:50.430Z| vmx| I120: [msg.nvram.wback1] Could not create '/vmfs/volumes/50eaa6a3-bd303b99-7190-3440b5c68358/PLM/PLM.nvram': Failed to lock the file 2015-06-02T09:52:50.430Z| vmx| I120: ---------------------------------------- 2015-06-02T09:52:50.454Z| vmx| W110: NVRAMMGR: Failed to create default NVRAM file (PLM.nvram)
使用指令 mkfstools -D 查看那台主機 lock ,
# vmkfstools -D PLM.nvram
Lock [type 10c00001 offset 107448320 v 16455, hb offset 3289088
gen 51, mode 1, owner 5480349c-42ed69c6-xxxx-3440b5ca5488 mtime 1279740
num 0 gblnum 0 gblgen 0 gblbrk 0]
Addr <4 105="" 169="">, gen 16414, links 1, type reg, flags 0, uid 0, gid 0, mode 600
len 8684, nb 1 tbz 0, cow 0, newSinceEpoch 1, zla 1, bs 1048576
4>
查到的 3440b5ca5488 即是 MAC 34:40:b5:ca:54:88,
示意圖:
方法一:
確定主機後, 將 host 進入 maintenance mode, 此時 DRS vMotioned all VMs to another host in the cluster , 然後 restarted the hostd service.
SSH 登入主機, 下指令: /etc/init.d/hostd restart
方法二:
若覺得 maintenance mode 要將所有 guest 移到別台 Host 工程太浩大, 那就
將 guest 移到這台Host, 再作 Consolidation 也是可以.
個人是覺得第二個方法最方便. 供參考
Ref :
https://www.vmadmin.co.uk/resources/35-esxserver/411-disk-consolidation-needed-unable-to-access-file-since-it-is-locked
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=10051
沒有留言:
張貼留言