|
||||||||
|
||||||||
|
|
Công Cụ | Xếp Bài |
15-06-2017, 12:45 AM | #1 |
Guest
Trả Lời: n/a
|
Lỗi add Datastore "Error adding datastores to ESXi resolved using partedUtil"
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. |
05-06-2021, 08:54 AM | #2 |
Guest
Trả Lời: n/a
|
Problem:
partedUtil getptbl /vmfs/devices/disks/naa.600508b1001c2bac8b8d1f8ed64c48d8 Error: Function not implemented during read on /dev/disks/naa.600508b1001c2bac8b8d1f8ed64c48d8 Error: The primary GPT table states that the backup GPT is located beyond the end of disk. This may happen if the disk has shrunk or partition table is corrupted. Fix, by writing backup table at the end? This will also fix the last usable sector appropriately as per the new reduced size. diskPath (/dev/disks/naa.600508b1001c2bac8b8d1f8ed64c48d8) diskSize (3906963632) AlternateLBA (3907029167) LastUsableLBA (3907029134) Warning: The available space to /dev/disks/naa.600508b1001c2bac8b8d1f8ed64c48d8 appears to have shrunk. This may happen if the disk size has reduced. The space has been reduced by (65536 blocks). You can fix the GPT to correct the available space or continue with the current settings ? This will also move the backup table at the end if it is not at the end already. diskSize (3906963632) AlternateLBA (3907029167) LastUsableLBA (3907029134) NewLastUsableLBA (3906963598) gpt 243197 255 63 3906963632 Solution: partedUtil mklabel /vmfs/devices/disks/naa.600508b1001c2bac8b8d1f8ed64c48d8 msdos After fix partedUtil getptbl /vmfs/devices/disks/naa.600508b1001c2bac8b8d1f8ed64c48d8 msdos 243197 255 63 3906963632 |
|
|