【Linux】Wmware ESxi 无法创建 VMFS 数据存储 datastore2 - 无法更新 /vmfs/devices/disks/naa.5000c500c05b3276 的磁盘分区。
创始人
2024-12-24 04:03:29
0

一、挂载新盘


新建数据存储

创建新的VMFS数据存储

填写名称

默认下一步

报错如下:

无法创建 VMFS 数据存储 datastore2 - 无法更新 /vmfs/devices/disks/naa.5000c500c05b3276 的磁盘分区。 关闭 

二、解决方式


ESxi 中选择 打开主机“启用 SSH”

然后我们可以直接 远程到主机

列出磁盘命令:

[root@localhost:~] ls -lha /vmfs/devices/disks/ total 21484061513 drwxr-xr-x    2 root     root         512 Jul 12 02:23 . drwxr-xr-x   16 root     root         512 Jul 12 02:23 .. -rw-------    1 root     root        3.6T Jul 12 02:23 naa.5000c500c05b3276 -rw-------    1 root     root       14.6T Jul 12 02:23 naa.5000c500c05b3276:1 -rw-------    1 root     root      930.4G Jul 12 02:23 naa.600508e0000000005357f09dcfa8b606 -rw-------    1 root     root      100.0M Jul 12 02:23 naa.600508e0000000005357f09dcfa8b606:1 -rw-------    1 root     root        4.0G Jul 12 02:23 naa.600508e0000000005357f09dcfa8b606:5 -rw-------    1 root     root        4.0G Jul 12 02:23 naa.600508e0000000005357f09dcfa8b606:6 -rw-------    1 root     root      119.9G Jul 12 02:23 naa.600508e0000000005357f09dcfa8b606:7 -rw-------    1 root     root      802.4G Jul 12 02:23 naa.600508e0000000005357f09dcfa8b606:8 lrwxrwxrwx    1 root     root          20 Jul 12 02:23 vml.02000000005000c500c05b3276535434303030 -> naa.5000c500c05b3276 lrwxrwxrwx    1 root     root          22 Jul 12 02:23 vml.02000000005000c500c05b3276535434303030:1 -> naa.5000c500c05b3276:1 lrwxrwxrwx    1 root     root          36 Jul 12 02:23 vml.0200000000600508e0000000005357f09dcfa8b6064c6f67696361 -> naa.600508e0000000005357f09dcfa8b606 lrwxrwxrwx    1 root     root          38 Jul 12 02:23 vml.0200000000600508e0000000005357f09dcfa8b6064c6f67696361:1 -> naa.600508e0000000005357f09dcfa8b606:1 lrwxrwxrwx    1 root     root          38 Jul 12 02:23 vml.0200000000600508e0000000005357f09dcfa8b6064c6f67696361:5 -> naa.600508e0000000005357f09dcfa8b606:5 lrwxrwxrwx    1 root     root          38 Jul 12 02:23 vml.0200000000600508e0000000005357f09dcfa8b6064c6f67696361:6 -> naa.600508e0000000005357f09dcfa8b606:6 lrwxrwxrwx    1 root     root          38 Jul 12 02:23 vml.0200000000600508e0000000005357f09dcfa8b6064c6f67696361:7 -> naa.600508e0000000005357f09dcfa8b606:7 lrwxrwxrwx    1 root     root          38 Jul 12 02:23 vml.0200000000600508e0000000005357f09dcfa8b6064c6f67696361:8 -> naa.600508e0000000005357f09dcfa8b606:8 

检查磁盘卷是否故障

partedUtil getptbl /vmfs/devices/disks/naa.5000c500c05b3276

输出信心如下:

[root@localhost:~] partedUtil getptbl /vmfs/devices/disks/naa.5000c500c05b3276 Error: Function not implemented during read on /dev/disks/naa.5000c500c05b3276 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.5000c500c05b3276) diskSize (7814037168) AlternateLBA (31251759103) LastUsableLBA (31251759070) Warning: The available space to /dev/disks/naa.5000c500c05b3276 appears to have shrunk. This may happen if the disk size has reduced. The space has been reduced by (23437721936 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 (7814037168) AlternateLBA (31251759103) LastUsableLBA (31251759070) NewLastUsableLBA (7814037134) Error: Can't have a partition outside the disk! Unable to read partition table for device /vmfs/devices/disks/naa.5000c500c05b3276 
[root@localhost:~] partedUtil getptbl /vmfs/devices/disks/naa.5000c500c05b3276 .使用实例 错误:读取/dev/disks/naa.5000c500c05b3276时未实现功能 错误:主GPT表指出备份GPT位于磁盘末端之外。如果磁盘收缩或分区表损坏,可能会发生这种情况。通过在最后写入备份表来修复?这也将修复最后一个可用扇区,根据新的缩小尺寸适当。diskPath (/dev/disks/naa.5000c500c05b3276) diskSize (7814037168) AlternateLBA (31251759103) LastUsableLBA (31251759070) 警告:available space to /dev/disks/naa.5000c500c05b3276似乎缩水了。如果磁盘大小减小,可能会发生这种情况。空间减少了(23437721936块)。您可以修复GPT以更正可用空间还是继续当前设置?如果备份表还没有到最后,这也将把它移动到最后。diskSize (7814037168) AlternateLBA (31251759103) LastUsableLBA (31251759070) NewLastUsableLBA (7814037134) 错误:磁盘外不能有分区! 无法读取设备/vmfs/devices/disks/naa.5000c500c05b3276的分区表

提示错误:主 GPT 表指出备份 GPT 位于磁盘末尾之外。如果磁盘缩小或分区表损坏,则可能会发生这种情况。通过在最后写入备份表来修复


需要重建分区表

partedUtil setptbl /vmfs/devices/disks/naa.5000c500c05b3276 msdos

然后重新创建新盘完成

参考文章:

ESXI 添加利旧的硬盘时提示无法创建 VMFS 数据存储及无法更新磁盘分区的解决办法_无法创建vmfs数据存储,无法更改主机配置-CSDN博客

相关内容

热门资讯

第5小时掌握!微信边锋干瞪辅助... 第5小时掌握!微信边锋干瞪辅助,陕麻圈黑科技(有挂开挂辅助插件);无需打开直接搜索加薇1367043...
玩家必备教程!其乐淮安棋牌开挂... 玩家必备教程!其乐淮安棋牌开挂辅助工具,详细教程(有挂开挂透视工具)您好:其乐淮安棋牌这款游戏可以开...
透视安卓版!we-poker正... 透视安卓版!we-poker正规吗,越乡游义乌透视下载,爆料教程(有挂开挂辅助软件) 了解更多开挂安...
盘点一款!中至鹰潭帮助器,广西... 【亲,广西老友玩插件 这款游戏可以开挂的,确实是有挂的,很多玩家在这款广西老友玩插件中打牌都会发现很...
十刹那熟悉!情怀宜春辅助,雀友... 十刹那熟悉!情怀宜春辅助,雀友圈斗地主辅助器(有挂开挂辅助平台);无需打开直接搜索加(薇:13670...
信息共享!新毛豆大厅开挂辅助下... 信息共享!新毛豆大厅开挂辅助下载,可靠技巧(有挂透视开挂软件);打开点击测试直接进入微信(13670...
透视好友房!aapoker公共... 哈糖大菠萝可以开挂吗开挂教程视频分享装挂详细步骤在当今的网络游戏中,哈糖大菠萝可以开挂吗作为一种经典...
指导大家!凑一桌关春天怎么才能... 您好:这款凑一桌关春天怎么才能开挂游戏是可以开挂的,确实是有挂的,很多玩家在这款凑一桌关春天怎么才能...
第二瞬间体悟!兴义水鱼天下有辅... 第二瞬间体悟!兴义水鱼天下有辅助吗,途游手游辅助(有挂开挂辅助工具);亲,兴义水鱼天下有辅助吗这款游...
最新通报!情怀国粹开挂透视辅助... >>您好:情怀国粹确实是有挂的,很多玩家在这款情怀国粹游戏中打牌都会发现很多用户的牌特别好,总是好牌...