解决了

如何在Prism中创建计划的任务

  • 2020年7月7日
  • 3个答复
  • 1751年的观点

徽章
  • 冒险家
  • 3个答复

有人知道是否可以在AHV中创建计划的任务以将VM迁移到AHV群集中的另一个主机?

图标

最好的答案谢尔盖·伊万诺夫(Sergei Ivanov)2020年7月7日,14:42

If you don\u2019t put any target host, it will randomly select the target from the available hosts, like this:
\u00a0<\/p>
acli vm.migrate <vm_name><\/code><\/pre>  

Regarding the cron job, it is enough to put it on one of the CVMs and it will execute the command on the time that you specify. Do not make it on every CVM.\u00a0<\/p>

BTW, if you do an AOS upgrade, all non-default cron jobs will disappear.<\/p>","className":"post__content__best_answer"}">

查看原件

该主题已关闭以供评论

3个答复

UserLevel 4
徽章 +5

嗨,Geob,

从棱镜中,它不能完成,但是如果您通过用户“ nutanix”登录到CVM,您可以创建一个crontab行以运行该命令以在您所需的时间迁移VM:

acli vm.移民主机= 

徽章

谢谢您的帮助。是否可以随机选择目标主机,并且该cron作业是否可以从一个主机运行,然后在群集中的所有主机上执行?

谢谢,

Geob

UserLevel 4
徽章 +5

如果您不放置任何目标主机,它将从可用主机中随机选择目标,例如:

ACLI vm.移民

关于CRON作业,将其放在CVM之一上是足够的,它将在您指定的时间执行命令。不要在每个CVM上做到。

顺便说一句,如果您进行AOS升级,则所有非默认CRON作业都将消失。

Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu