错误现象:
在VMware vShere/ESXi中创建新的数据仓库datastore时,弹出错误提示!“Fail to create VMFS datastore VMFS xxxx”- cannot change the host configuration."
原因猜测:
该硬盘被其他系统格式化为特定分区;
处理过程:
### 查看指定磁盘:naa.600062b20e7016402f3c77bfba1c2865
[root@ESXi149:~] ls -lha /vmfs/devices/disks/
total 98107748682
drwxr-xr-x 2 root root 512 Feb 12 02:59 .
drwxr-xr-x 16 root root 512 Feb 12 02:59 ..
-rw------- 1 root root 1.7T Feb 12 02:59 naa.5002538b2180d300
-rw------- 1 root root 10.5T Feb 12 02:59 naa.5002538b2180d300:1
-rw------- 1 root root 29.1T Feb 12 02:59 naa.600062b20e7016402f3c77bfba1c2865
-rw------- 1 root root 500.0M Feb 12 02:59 naa.600062b20e7016402f3c77bfba1c2865:1
-rw------- 1 root root 500.0M Feb 12 02:59 naa.600062b20e7016402f3c77bfba1c2865:2
-rw------- 1 root root 29.1T Feb 12 02:59 naa.600062b20e7016402f3c77bfba1c2865:3
### 查看磁盘分区表报错;
[root@ESXi149:~] partedUtil getptbl /vmfs/devices/disks/naa.600062b20e7016402f3c77bfba1c2865
Error: Input/output error during read on /dev/disks/naa.600062b20e7016402f3c77bfba1c2865
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.600062b20e7016402f3c77bfba1c2865) diskSize (62499995648) AlternateLBA (62499999743) LastUsableLBA (62499999710)
Warning: The available space to /dev/disks/naa.600062b20e7016402f3c77bfba1c2865 appears to have shrunk. This may happen if the disk size has reduced. The space has been reduced by (4096 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 (62499995648) AlternateLBA (62499999743) LastUsableLBA (62499999710) NewLastUsableLBA (62499995614)
Error: Can't have a partition outside the disk!
Unable to read partition table for device /vmfs/devices/disks/naa.600062b20e7016402f3c77bfba1c2865
### 执行提示命令错误
[root@ESXi149:~] partedUtil setptbl /vmfs/devices/disks/naa.600062b20e7016402f3c77bfba1c2865
### 执行提示报错,超出磁盘范围;
[root@ESXi149:~] partedUtil setptbl /vmfs/devices/disks/naa.600062b20e7016402f3c77bfba1c2865 gpt
gpt
0 0 0 0
Error: Input/output error during read on /dev/disks/naa.600062b20e7016402f3c77bfba1c2865
### 使用DD清楚磁盘格式
[root@ESXi149:~] dd if=/dev/zero of="/vmfs/devices/disks/naa.600062b20e7016402f3c77bfba1c2865" bs=512 count=34 cOnv=notrunc
34+0 records in
34+0 records out
### 可查看分区情况了;
[root@ESXi149:~] partedUtil getptbl /vmfs/devices/disks/naa.600062b20e7016402f3c77bfba1c2865
unknown
3890444 255 63 62499995648
### 使用图形界面创建datastore成功;
参考:
Using partedUtil command line disk partitioning utility on ESXi
***.***/external/article?legacyId=1036609
Troubleshooting the Add Storage Wizard error: Unable to read partition information from this disk
***.***/external/article?legacyId=1008886
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作