无法使用 OpenVZ 启动、停止、进入 VE
我正在使用 Debian Unstable 内核 2.6.32-5-openvz-amd64 (但我不认为这是一个问题)。 安装并运行我们的 VE 几个月后,我们的硬盘几乎已满,我们添加了 3 个硬盘来制作新的 RAID 5 阵列,将其格式化为 ext4,然后使用位置 /openvz 挂载
我有一个 ID 为 112 的 VE,我希望更改其配置以使私有区域从 /var/lib/vz/private/112 (1) 更改为 /openvz/112 (2) 将所有数据从 (1) 同步到 (2) 后,我无法启动 VE 112。我将配置恢复为原始状态,但是,当我使用 vzctl status 112: 时,它显示:
# vzctl status 112
VEID 112 exist mounted running
并且无法输入 ve:
# vzctl enter 112
enter into VE 112 failed
无法停止或重新启动错误:操作超时。 我尝试了很多方法:尝试umount,挂载私有区域,或者使用MAKEDEV来制作tty或pty,使用vzctl chkpnt 112 --kill但它不起作用。
我不想重新启动该服务器,它包含另外 2 个运行良好且没有问题的 VE。如果有人遇到同样的问题,请告诉我您的解决方案。
非常感谢,
--洪
I'm using Debian Unstable kernel 2.6.32-5-openvz-amd64 (But I don't think it's a problem).
After install and run our VEs for several month, our hard disk is nearly full and we add 3 more hard drives to make new RAID 5 Array, format it as ext4 then mount with location /openvz
I have a VE with ID 112, I desire to change its configuration to make private area from /var/lib/vz/private/112 (1) to /openvz/112 (2)
After syncing all data from (1) to (2), I cannot start VE 112. I revert configuration back to original, but, when I use vzctl status 112:, it shows:
# vzctl status 112
VEID 112 exist mounted running
and cannot enter the ve:
# vzctl enter 112
enter into VE 112 failed
cannot stop or restart with error: Operation time out.
I've tried many ways: try to umount, mount the private area, or use MAKEDEV to make tty or pty, using vzctl chkpnt 112 --kill but it does not work.
I dont want to reboot this server, it contains 2 others VEs that are running well without problem. If someone did face with same problem, please let me know your solutions.
Thank you very much,
--hung
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以使用“vzctl exec”在 CT 中执行命令吗?
如果可能,请尝试
检查 CT 中正在运行的内容。
Are you able to exec commands within your CT using 'vzctl exec'?
If it is possible try
to check what is running within your CT.
如果由于缺少 /dev/pts 而无法登录 CT,您可以使用“vzctl exec”挂载它:
If you cannot login to your CT because of missing /dev/pts you may mount it with 'vzctl exec':
我的问题的答案是:我用 ext3 重新格式化新分区并重新同步数据。一切正常:)
The answer for my question is: I reformat new partition with ext3 and re-sync data. everything worked as normal :)
您是否尝试过以详细模式启动 VPS?您可以通过执行以下操作来做到这一点:
Have you tried starting the VPS up in verbose mode? You can do this by doing: