use engine-config config oVirt's properties

使用engine-config可以配置ovirt的配置选择, 参考red hat rhevm的19.3章的内容.

配置修改后, 需要重启ovirt-engine服务使之生效.

[root@176 ~]# engine-config -h
Usage: engine-config <action> [<args>]

AVAILABLE ACTIONS
       -l, --list
           List available configuration keys.

       -a, --all
           Get all available configuration values.

       -g KEY, --get=KEY
           Get the value of the given key for the given version. If a version is not given, the values of all existing versions are returned.

       -s KEY=VALUE, --set KEY=VALUE
           Set the value of the given key for the given version. The version is required for this action only when the version is not 'general'.

       -m KEY=VALUE, --merge KEY=VALUE
           Merge the value of the given key for the given version with the value in the database. The version is required for this action only when the version is not 'general'.

       -h, --help
           Show this help message and exit.

OPTIONS
       --cver=VERSION
           Relevant configuration version to use.

       -p PROP_FILE, --properties=PROP_FILE
           Use the given alternate properties file.

       -c CFG_FILE, --config=CFG_FILE
           Use the given alternate configuration file.

       --log-file=LOG_FILE
           Sets file to write logging into (if not set nothing is logged).

       --log-level=LOG_LEVEL
           Sets log level, one of DEBUG (default), INFO, WARN, ERROR (case insensitive).

       --log4j-config=XML_FILE
           Sets log4j.xml file which logging configuration is loaded from.

SETTING PASSWORDS
       Passwords can be set in interactive mode:

           engine-config -s PasswordEntry=interactive

       or via file with one of the following options:

           engine-config -s PasswordEntry --admin-pass-file=/tmp/mypass
           engine-config -s PasswordEntry=/tmp/mypass

       PasswordEntry varies between the different password options.

NOTE
       In order for your change(s) to take effect, restart the oVirt engine.

列出可配置项的描述 : 

[root@176 ~]# engine-config -l|less
AbortMigrationOnError: "Optionally abort an ongoing migration on any error" (Value Type: Boolean)
AsyncTaskPollingRate: "Async Task Polling Rate (in seconds)" (Value Type: Integer)
AsyncTaskZombieTaskLifeInMinutes: "Zombie tasks life-time in minutes" (Value Type: Integer)
AuditLogAgingThreshold: "Audit Log Aging Threshold (in days)" (Value Type: Integer)
AuditLogCleanupTime: "Audit Log Cleanup Time" (Value Type: String)
AuthenticationMethod: "Authentication Method" (Value Type: String)
BlockMigrationOnSwapUsagePercentage: "Host swap percentage threshold (for scheduling)" (Value Type: Integer)
BootstrapMinimalVdsmVersion: "Minimum VDSM version" (Value Type: String)
CABaseDirectory: "CA Base Directory" (Value Type: String)
CpuOverCommitDurationMinutes: "The duration in minutes of CPU consumption to activate selection algorithm" (Value Type: Integer)
DisableFenceAtStartupInSec: "Disable Fence Operations At oVirt Startup In Seconds" (Value Type: Integer)
ClusterEmulatedMachines: "Supported machine types" (Value Type: String)
WANDisableEffects: "Disabled WAN Effects value to send to the SPICE console" (Value Type: StringMultiple)
WANColorDepth: "WAN Color Depth value to send to the SPICE console" (Value Type: Integer)
EnableSpiceRootCertificateValidation: "Enable Spice Root Certification Validation" (Value Type: String)
EnableUSBAsDefault: "Enable USB devices attachment to the VM by default" (Value Type: String)
EnableVdsLoadBalancing: "Enables Host Load Balancing system." (Value Type: String)
....

列出可配置项的当前值 : 

[root@176 ~]# engine-config -a|less
AbortMigrationOnError: false version: 3.0
AbortMigrationOnError: false version: 3.1
AbortMigrationOnError: false version: 3.2
AbortMigrationOnError: false version: 3.3
AsyncTaskPollingRate: 10 version: general
AsyncTaskZombieTaskLifeInMinutes: 3000 version: general
AuditLogAgingThreshold: 30 version: general
AuditLogCleanupTime: 03:35:35 version: general
AuthenticationMethod: LDAP version: general
BlockMigrationOnSwapUsagePercentage: 0 version: general
BootstrapMinimalVdsmVersion: 4.9 version: general
CpuOverCommitDurationMinutes: 2 version: general
DisableFenceAtStartupInSec: 300 version: general
ClusterEmulatedMachines: rhel6.2.0,pc-1.0 version: 3.0
ClusterEmulatedMachines: rhel6.3.0,pc-1.0 version: 3.1
ClusterEmulatedMachines: rhel6.4.0,pc-1.0 version: 3.2
ClusterEmulatedMachines: rhel6.4.0,pc-1.0,pseries version: 3.3
ClusterEmulatedMachines: rhel6.5.0,pc-1.0,pseries version: 3.4
WANDisableEffects: animation version: general
WANColorDepth: 16 version: general
...

[参考]
1. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html-single/Administration_Guide/index.html

时间: 2024-09-23 05:19:32

use engine-config config oVirt's properties的相关文章

js || 运算符 config = config || {};

今天看到源码里有"config = config || {};",就开始琢磨|| {}是什么运算符,现在终于搞明白了.   问题: js || 运算符 config = config || {};是什么意思. 答案:如果config未定义则初始化,如果已定义则不变 ||是或运算符  

oVirt engine 3.4 installed on CentOS 6.x x64

oVirt是RHEV的上游开源产品, 管理也和RHEV非常相似, 主打KVM的虚拟机管理平台. 相比OpenStack更加轻量化. 本文先介绍一下oVirt engine在CentOS 6.x x64平台下的安装. 除了数据库我们使用自己编译的PostgreSQL 9.3.5, 因为从依赖安装的版本实在太老了. 其他都使用依赖安装. 导入yum源 # wget http://resources.ovirt.org/pub/yum-repo/ovirt-release34.rpm # rpm -i

Weblogic的config.xml文件详解(原创)

config.xml 域的中心配置文件是 /domains/DOMAIN_NAME/config/config.xml 文件.它用于指定域的名称以及域中每个服务器实例.群集.资源和服务的配置参数设置.config.xml文件中包含了一系列xml元素,其中域元素的为最顶层元素,域中所有元素都是域元素的子集.域元素包括服务器.集群.应用等子元素,这些元素可能还有其他自己的子元素.例如:服务器的子元素包含web服务器,SSL和日志等,应用程序的子元素包含EJB组件和Web应用组件等. config.x

tp-link路由器的config键在哪儿

  你知道tplink路由器的config键在哪儿吗? 首先tplink路由器没有config这个按钮,只有一个reset按钮,他的功能是重置路由器. tplink路由器的后面有个小孔,如下图. 路由器通电状态下,按住RESET键5秒以上,观察到指示灯全亮(部分路由器为系统指示灯同时快闪)后,表示复位成功.(RESET小孔要使用回形针等尖状物按住). 什么是config? web容器在初始化时使用一个ServletConfig(即config)对象向JSP页面传递信息,此配置信息包括初始化参数(

Zend的Config机制

Zend的Config类在Zend_Config_Ini 代码 $config = new Zend_Config_Ini("/var/www/html/usvn/config/config.ini", "general"); date_default_timezone_set($config->timezone); USVN_ConsoleUtils::setLocale($config->system->locale); === Config.

基于Zend的Config机制的应用分析_php实例

Zend的Config类在Zend_Config_Ini 代码$config = new Zend_Config_Ini("/var/www/html/usvn/config/config.ini", "general"); date_default_timezone_set($config->timezone); USVN_ConsoleUtils::setLocale($config->system->locale); === Config.i

Filter拦截请求 ServletContext context = this.config.getServletContext();报500错

问题描述 Filter拦截记录用户请求代码如下:publicclassLogfilterimplementsFilter{privateFilterConfigconfig;publicvoiddestroy(){//TODOAuto-generatedmethodstubthis.config=null;}publicvoiddoFilter(ServletRequestrequest,ServletResponseresponse,FilterChainchain)throwsIOExcep

JS 实现了 alert 和 config 的效果

1.注意该案例不支持IE6,最后用支持CSS3 样式的浏览器查看,可以在iframe框架用,可以遮住整个框架 2.alert 弹出框效果图 3.config 弹出框效果图 4.如果用这框架里面,必须在框架里导入3个文件一个jquery里的包,一个是实现效果的Js文件,还有个是样式文件  在框架里的页面需要这样调用 (测试页面为 Test.aspx)    代码如下 复制代码    <title>iframe里的页面</title><script type="text

WinForm中使用XML文件存储用户配置及操作本地Config配置文件

大家都开发winform程序时候会大量用到配置App.config作为保持用户设置的基本信息,比如记住用户名,这样的弊端就是每个人一些个性化的设置每次更新程序的时候会被覆盖. 故将配置文件分两大类: 公用系统配置文件(App.config)和私用配置文件(xml文件). 一.公用系统配置文件(App.config)的读写操作.本文参考:http://www.cnblogs.com/dotnet_way/archive/2010/07/26/config_file.html#2902913 读写.