Error adding datastores to ESXi resolved using partedUtil
Khi Add datastore vào bị lỗi sau:
Over the Christmas break I finally got some time to upgrade my home lab. One of my tasks was to build a new shared storage server and it was while installing the base ESXi (v5, build 469512) that I ran into an issue. I was
unable to add any of the local disks to my ESXi host as VMFS datastores as I got the error “HostDatastoreSystem.QueryVmfsDatastoreCreateOpt ions” for object ‘ha-datastoresystem’ on ESXi….” as shown below;
The VI client error when adding a new datastore
Cách Fix
B1: SSH vào vmware esxi
B2: fdisk -l để xem đĩa
B3: cd /dev/disks/ và gõ lệnh ls để xem
B4: gõ lệnh sau: partedUtil mklabel /dev/disks/naa.60026b9060fb4a0020d4136106c42e5a msdos
hoặc định dạng disk thế này
partedUtil mklabel /dev/disks/ATA_____Samsung_SSD_850_EVO_500GB_______________S2 1HNXAG857515R_____ msdos
Chú ý: naa.60026b9060fb4a0020d4136106c42e5a là ID của disk tương ứng.
Ngoài ra nếu còn bị lỗi thì bạn tham khảo thêm bài này nhe:
https://serverfault.com/questions/66...uring-write-on
Ở bước này, bạn có thể gõ 1 or 2 để mục đích và xóa partition hoặc bạn vào fdisk để tạo, xóa partition vài lần là ok
# partedUtil delete /dev/disks/naa.600605b009a647b01c5ed73926b7ede1 1
Nếu xóa rồi mà dẫn ko thấy Datastore thì bạn reboot lại server
Chúc bạn thành công.