Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 17-04-2020, 12:24 AM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
VMware ESXi – Cannot delete file from datastore "vmdk': Device or resource busy"
VMware ESXi – Cannot delete file from datastore




Khi xóa file disk của máy ảo vmware thì bị lỗi:

can't remove 'AD-flat.vmdk': Device or resource busy

Cách fix: di chuyển hết vps trong datastore đó qua datastore khác, rồi unmount, sau đó mount lại datastore đó rồi ssh vào xóa








VMware ESXi – Cannot delete file from datastore




When you try and delete an orphaned VM or your old VM you get the error:
/vmfs/volumes/57b321fa-349912dc-bc05-90b11c3dbf06/AD_replica # rm AD-flat.vmdk rm: can't remove 'AD-flat.vmdk': Device or resource busy


/vmfs/volumes/57b321fa-349912dc-bc05-90b11c3dbf06/AD_replica # rm AD-flat.vmdk


rm: can't remove 'AD-flat.vmdk': Device or resource busy


so let’s try to delete from command line (from ESXi host) but got the error message:“can’t remove ‚AD-flat.vmdk‘: Device or resource busy“ because the file is still locked by ESX


# vmkfstools -L release /vmfs/volumes/IFT_Replica/AD_replica/AD-flat.vmdk



Command release failed Error: Inappropriate ioctl for device


# vmkfstools -L release /vmfs/volumes/IFT_Replica/AD_replica/AD-flat.vmdk


Command release failed


Error: Inappropriate ioctl for device



you can use the „vmkfstools“ for release locked file… but in my case its not possible „release failed
Migrate off the VMs from the host and place it into maintenance mode and reboot it. After reboot try delete file, that was locked by ESXi host. For delete whole folder i used rm -rf command on the ESXi host.




http://tomaskalabis.com/wordpress/vm...t-delete-file/
  Trả lời ngay kèm theo trích dẫn này
Gửi trả lời


Công Cụ
Xếp Bài

Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 02:12 PM. Giờ GMT +7



Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.