好文档就是一把金锄头!
欢迎来到金锄头文库![会员中心]
电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

VMwarevSphere常见问题汇总(17).doc

15页
  • 卖家[上传人]:hs****ma
  • 文档编号:442559664
  • 上传时间:2023-04-06
  • 文档格式:DOC
  • 文档大小:290KB
  • / 15 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • VMware vSphere 常见问题汇总 (十七 )170. Vmdk 的重做日志已损坏解题思路[vmware-] 环境:,故障问题:执行 storage vmotion 之后,虚拟机出现了报错报错信息: is off the virtual machine. If the problem still persists, discard the redo log.解提思路:【故障原因】由于快照之间的关系出现异常,导致vm启动失败::2013-01-14t08:36:| vmx| disklib-chain :"/vmfs/volumes/50f13506-075ed29b-86b5-5ef3fd359eab/ è3 184/" : failed to open (the parentvirtual disk has been modified :2013-01-14t08:36:| vmx| disklib-lib : failed to open'/vmfs/volumes/50f13506-075ed29b-86b5-5ef3fd359eab/ è3 184/' with flags 0xa the parentvirtual disk has been modified since the child was created. The content id of the parent virtual disk does not match the corresponding parent content id in the child (18).:2013-01-14t08:36:| vmx| disk: cannot open disk"/vmfs/volumes/50f13506-075ed29b-86b5-5ef3fd359eab/ è3 184/": the parent virtual disk has been modified since the child was created. The content id of the parent virtual disk does not match the corresponding parent content id in the child (18).:2013-01-14t08:36:| vmx| msg_post: error:2013-01-14t08:36:| vmx| [ cannot open the disk'/vmfs/volumes/50f13506-075ed29b-86b5-5ef3fd359eab/ è3 184/' or one of the snapshot disks itdepends on.:2013-01-14t08:36:| vmx| [ reason: the parent virtual disk has been modified since the child was created. The content id of the parent virtual disk does not match the corresponding parent content id in the child.:2013-01-14t08:36:| vmx| module diskearly power on failed.【快照之间的联系】正常情况下,原始磁盘与快照是通过 parent content id 来关联,父快照与子快照之间也是通过 parent content id ,但是现在我们查看原始磁盘与快照磁盘之间的关系,发现它们的 cid和 parentcid 是混乱的,信息如下::cid=ba60eb23:parentcid=ffffffff:cid=27f8a456:parentcid=ba60eb23:cid=11ed1dac:parentcid=27f8a456:cid=2583a010:parentcid=2583a010:cid=2583a010:parentcid=11ed1dac:cid=4d38fabf:parentcid=2583a010:cid=9402bf1a:parentcid=a30d0e91可以看到这个磁盘关系从磁盘到之间的关系都是没有问题的。

      问题出在之后的快照磁盘关联是混乱的通过如下记录,我们可以知道这几个磁盘之间的正确关系::parentfilenamehint="":parentfilenamehint="":parentfilenamehint="":parentfilenamehint="":parentfilenamehint="":parentfilenamehint=""磁盘之间的数据关系应该是:à à à à à à【解决方案】第一部分、确认上述的这个数据关系是正确的:1. 使用 vsphere client 连接 vcenter server 或 esxi server2. 关闭虚拟机如果虚拟机状态是关闭,请进入 esxi server 命令行再次确认进程是否已经不存在A. 进入 esxi server 命令行,查看 tech support mode for emergency support (1003677) or using tech support mode in esxi and esxi (1017910) .B. 输入“ esxtop ”C. 按下“ c”,按下“ f”,按下“ c”选中“ c: lwid = leader world id (world group id) ”,按下回车B. 在这个面板中会列出“ lwid ”,找到这台 vm ,并记录“ lwid ”的号码 (如果在这个面板中已经没有显示这台 vm,则不需要执行步骤 e,这说明 vm 进程已经结束)E. 按下“ k”,输入虚拟机的 lwid 号码3.进入虚拟机目录,命令如下:#cd vmfs/volumes/50f13506-075ed29b-86b5-5ef3fd359eab/注:由于该目录使用中文名称,所以显示是乱码,请复制这段乱码,然后加上双引号” ”就可以进入虚拟机目录4. 输入如下命令:# vi找到这一行信息“ scsi0: = ""”按下“ i”进入编辑模式,将这一行信息更改为“ scsi0: = "" ”,按下“ esc 键”退出编辑模式,按下“ :wq! ”保存退出。

      5. 在 vsphere client 上,找到虚拟机,右键点击“从清单中移除”通过浏览虚拟机所在的数据存储,找到虚拟机的文件,右键点击“添加到清单”,启动虚拟机第二部分、更正各个快照磁盘之间的关系:确认磁盘的关系以后,我们需要做的是修改快照磁盘中的 cid 和 parentcid 方法如下:注意:请执行以下操作之前, 对 vm 所有文件进行备份 建议您可以拷贝这些虚拟机文件后,对复制出来的文件进行操作1. 进入 esxi server 命令行 ,通过 ssh tools 或 dcui 界面的方法登录2. 进入虚拟机目录,命令如下:#cd vmfs/volumes/50f13506-075ed29b-86b5-5ef3fd359eab/注:由于该目录使用中文名称,所以显示是乱码,请复制这段乱码,然后加上双引号” ”就可以进入虚拟机目录3. 修改快照磁盘之间的 cid 和 parentcid.A. # vi输出类似如下,按“ i”进入编辑模式,按“ esc 键”退出编辑模式,按“ :wq! ”保存退出:# disk descriptorfile Version=3 Encoding="utf-8"Cid=2583a010 à将这个参数修改成” 1234b123 ”B. #vi输出类似如下,按“ i”进入编辑模式,按“ esc 键”退出编辑模式,按“ :wq! ”保存退出:# disk descriptorfileVersion=2Encoding="utf-8"Cid=4d38fabfParentcid=2583a010 à将这个参数改成” 1234b123 ”C. #vi输出类似如下,按“ i”进入编辑模式,按“ esc 键”退出编辑模式,按“ :wq! ”保存退出:# disk descriptorfileVersion=3Encoding="utf-8"Cid=9402bf1aParentcid=a30d0e91 à 将这个参数改成“ 4d38fabf ”4. 以上步骤完成以后,修改文件的磁盘指向:A. #viB. 找到 scsi0: = ""这一行,将“”改成“”5. 将虚拟机从清单中移除。

      然后通过浏览数据存储,找到虚拟机的文件,右键点击“添加到清单”,启动虚拟机171. 如何把中文的 vCenter 界面改成英文看惯了英文界面的 vCenter,再来看中文是否觉得有点变扭,其实修改很简单右键属性打开 vSphere Client,我们这里 Client 的默认安装位置为 D:\Program Files(x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher ,如下图:在“目标”的白框内加入“ -locale en_US”如( "D:\Program Files(x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\" -locale en_US") 即可172. 关于 Storage vMotion 无法重命名虚拟机文件的问题如果要更改虚拟机的文件夹名称, 光改 Inventory。

      点击阅读更多内容
      关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
      手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
      ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.