hosted-engine命令

hosted-engine命令提供了对hosted-engine虚拟机的相关操作(部署,查看,启动,关机,状态等)

启动engine虚拟机

hosted-engine --vm-start 

关闭engine虚拟机

hosted-engine --vm-poweroff 

查看engine虚拟机的状态

hosted-engine --vm-status 

设置engine虚拟机的控制台密码 (通过remoter viewer可以远程连接

hosted-engine --add-console-password --password=1 

engine虚拟机连接存储域

hosted-engine --connect-storage 

engine虚拟机断开存储域

hosted-engine --disconnect-storage 

ovirt-ha-agent进入全局维护模式(启动该模式,hosted-engine虚拟机将不会自动启动)

hosted-engine --set-maintenance --mode=global 

ovirt-ha-agent进入本地维护模式(启动该模式,hosted-engine虚拟机将不会在该主机上启动)

hosted-engine --set-maintenance --mode=local

ovirt-ha-agent退出全局维护模式

hosted-engine --set-maintenance --mode=none 

部署hosted-engine

hosted-engine --deploy 

获取engine相关配置信息

hosted-engine --get-shared-config key [--type=] 

Available keys are: 
he_local : ['bridge', 'ca_cert', 'ca_subject', 'conf', 'conf_image_UUID', 'conf_volume_UUID', 'connectionUUID', 'console', 'domainType', 'fqdn', 'gateway', 'host_id', 'iqn', 'iscsi_paths_blacklist', 'lockspace_image_UUID', 'lockspace_volume_UUID', 'metadata_image_UUID', 'metadata_volume_UUID', 'mnt_options', 'nfs_version', 'password', 'port', 'portal', 'sdUUID', 'spUUID', 'storage', 'user', 'vdsm_use_ssl', 'vm_disk_id', 'vm_disk_vol_id', 'vmid'] 

ha : ['local_maintenance', 'local_maintenance_manual'] broker : ['email.destination-emails', 'email.smtp-port', 'email.smtp-server', 'email.source-email', 'notify.state_transition'] 

he_shared : ['bridge', 'ca_cert', 'ca_subject', 'conf', 'conf_image_UUID', 'conf_volume_UUID', 'connectionUUID', 'console', 'domainType', 'fqdn', 'gateway', 'host_id', 'iqn', 'iscsi_paths_blacklist', 'lockspace_image_UUID', 'lockspace_volume_UUID', 'metadata_image_UUID', 'metadata_volume_UUID', 'mnt_options', 'nfs_version', 'password', 'port', 'portal', 'sdUUID', 'spUUID', 'storage', 'user', 'vdsm_use_ssl', 'vm_disk_id', 'vm_disk_vol_id', 'vmid'] 

[root@host20 ~]# hosted-engine --get-shared-config vm_disk_id --type=he_shared 
vm_disk_id : 5cca6fe7-a260-4ec1-95df-ffe317e97471, type : he_shared 

[root@host20 ~]# hosted-engine --get-shared-config conf_volume_UUID --type=he_local 
conf_volume_UUID : 75c715ea-9909-49a2-b88b-425a021abfe7, type : he_local  
0 条回复 A 作者 M 管理员 E
    所有的伟大,都源于一个勇敢的开始!
欢迎您,新朋友,感谢参与互动!欢迎您 {{author}},您在本站有{{commentsCount}}条评论