oVirt实用程序

oVirt实用程序

该目录/usr/share/ovirt-engine/setup/dbutils或开发人员设置上的目录$PREFIX/share/ovirt-engine/setup/dbutils包含有用的脚本,可帮助解决各种数据库问题。

fkvalidator

fkvalidaor.sh是必须在升级之前在客户数据库上运行的脚本。该实用程序检查数据库内的所有数据是否一致,并且没有破坏任何FK约束 fkvalidaor.sh列出了发现的问题并可以解决这些问题是-使用f开关

用法

用法:fkvalidator.sh [-h] [-s服务器名[-p端口]] [-d数据库] [-u用户名] [-l日志文件] [-f] [-v]

   -s SERVERNAME - The database servername for the database  (def. localhost)

   -p PORT       - The database port for the database        (def. 5432)

   -d DATABASE   - The database name                         (def. engine)

   -u USERNAME   - The admin username for the database.

   -l LOGFILE    - The logfile for capturing output          (def. fkvalidator.sh.log)

   -f            - Fix the non consistent data by removing it from DB.

   -v            - Turn on verbosity                         (WARNING: lots of output)

   -h            - This help text.

任务清理器

taskcleaner.sh是用于清理异步任务和相关作业步骤/补偿数据的实用程序。该实用程序可以: 显示

   All async tasks

   Only Zombie tasks

删除

   All tasks

   All Zombie tasks

   A task related to a given task id

   A Zombie task related to a given task id

   All tasks related to a given command id

   All Zombie tasks related to a given command id

可以添加标志(-C-J)以指定是否还应清除作业步骤和补偿数据。

用法

   Usage: taskcleaner.sh [-h] [-s server] [-p PORT]] [-d DATABASE] [-u USERNAME] [-l LOGFILE] [-t taskId] [-c commandId]

   [-z] [-R] [-C][-J] [-q] [-v]

   -s SERVERNAME - The database servername for the database (def.localhost)

   -p PORT - The database port for the database (def. 5432)

   -d DATABASE - The database name (def.engine)

   -u USERNAME - The admin username for the database.

   -l LOGFILE - The logfile for capturing output (def.taskcleaner.sh.log)

   -t TASK_ID - Removes a task by its Task ID.

   -c COMMAND_ID - Removes all tasks related to the given Command Id.

   -z - Removes/Displays a Zombie task.

   -R - Removes all Zombie tasks.

   -C - Clear related compensation entries.

   -J - Clear related Job Steps.

   -q - Quite mode, do not prompt for confirmation.

   -v - Turn on verbosity (WARNING: lots of output)

   -h - Help text.

unlock_entity

unlock_entity.sh是用于取消放置VM模板/或其关联磁盘或特定磁盘 VM的实用程序,模板由其名称提供,而特定磁盘由其UUID赋予

用法

   Usage: ./unlock_entity.sh [options] [ENTITIES]

     -h            - This help text.

     -v            - Turn on verbosity                         (WARNING: lots of output)

     -l LOGFILE    - The logfile for capturing output          (def. )

     -s HOST       - The database servername for the database  (def. localhost)

     -p PORT       - The database port for the database        (def. 5432)

     -u USER       - The username for the database             (def. engine)

     -d DATABASE   - The database name                         (def. engine)

     -t TYPE       - The object type {vm | template | disk | snapshot}

     -r            - Recursive, unlocks all disks under the selected vm/template.

     -q            - Query db and display a list of the locked entites.

     ENTITIES      - The list of object names in case of vm/template, UUIDs in case of a disk

     NOTE: This utility access the database and should have the

           corresponding credentals.

           In case that a password is used to access the database PGPASSWORD

           or PGPASSFILE should be set.

     Example:

         $ PGPASSWORD=xxxxxx ./unlock_entity.sh -t disk -q

 

Webadmin!是一个免费的开源框架,用于为Linux系统的快速搭建统一、稳定、易用的Web管理系统。 WebAdmin系统由三部分组成:WEB图形用户接口、WebAdmin守护进程和进程监视程序。Web图形用户接口(WebGUI)是WebAdmin系统的前端部分,为用户提供一个统一、易操作的图形界面。WebAdmin守护进程 (WebAdmind)是WebAdmin系统的后台部分,实时监视WebGUI生成的配置文件,并根据配置文件的变化情况,启动或停止相应的服务进程,WebAdmin进程监视程序(DaemonWatcher)用于实时监视WebAdmind启动的服务进程的运行状况,一旦发现启动的服务进程异常中止,立即重启中止的服务进程,从而确保系统可靠稳定运行。 WebAdmin!提供了一个结构化的WebAdmin开发框架,它的前后台部分均采用插件式的程序开发方法,借助提供的插件开发模板,WebAdmin系统开发者不必关WebAdmin开发框架的具体实现,就可设计出界面统一、操作简单、安全稳定的WebGUI界面。与WebGUI相对应,Webadmind也是采用插件式的程序开发方法。WebAdmind插件与WebGUI插件一一对应完成对界面操作的响应。DaemonWatcher是一个独立的进程监视程序,是为确保WebAdmind启动的进程能够不可间断地提供服务,一旦发现被监视程序发生异常中止,DaemonWatcher将根据进程的启动脚本立即启动被中止进程。 WebAdmin是一个用C语言设计的易用的图形用户接口开发框架,C语言的高可移植性使得WebAdmin可以广泛应用于包括Linux、Unix、Windows及各种嵌入式操作系统中,编译WebAdmin系统除Libxml2库处不需要额外的C函数库支持。WebAdmin提供了丰富的API函数,开发者可以根据自己的需要定制个性化的WebAdmin系统。 WebAdmin系统的界面风格也可以自己定制,对于OEM厂商可以根据需要修改界面风格,满足定制要求。 WebAdmin的开放设计思想,为WebAdmin系统的不断发展普奠定了基础,无数开发者提供了开源插件模块,用户甚至不用写一行代码就可根据自己的需要设计WebAdmin系统。 【简单使用方法】:下载后将压缩文件上传到Linux系统中,用tar xvfz webadmin-devel-1.3.tar.gz解压,解压后进入webadmin-devel目录,执行./configure,make命令后将会在test/webui目录下生成一个webadmin.cgi文件,将此文件拷贝到apache下的WEB根目录下cgi-bin目录下即可,为测试webadmin.cgi,还需将htdocs目录下的文件拷贝到apache的WEB根目录下,将etc目录中的所有文件拷贝到根目录下的etc中,最后用浏览器访问你的apache Web服务器即可看到Linux系统的WEB管理界面。 【说明】:编译此源码需要libxml2库的支持 有技术问题可以访问官方网站:http://www.webadminc.com,联系电话:13311223928
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值