vdsm(1)安装

来源:互联网 发布:微商和淘宝哪个东西贵 编辑:程序博客网 时间:2024/05/21 10:13

1)使用yum install vdsm安装

注意:目前ovirt3.5的repo暂不可用,还是要用3.4的repo。这样的话必须用centos6.5,因为centos7上的库和ovirt3.4的很多库版本不匹配。


2)目录结构

/etc/vdsm:VDSM的配置文件

[cg@cg ~]$ ll /etc/vdsm/
总用量 28
-rw-r--r--. 1 root root 1648 7月  23 05:46 logger.conf
-rw-r--r--. 1 root root 2847 7月  23 05:46 mom.conf
drwxr-xr-x. 2 root root 4096 7月  29 2014 mom.d
-rw-r--r--. 1 root root  599 7月  23 05:46 svdsm.logger.conf
-rw-r--r--. 1 root root  464 7月  23 05:46 upgrade.logger.conf
-rw-r--r--. 1 root root 7408 7月  23 05:46 vdsm.conf


/usr/libexec/vdsm:一些可执行脚本
[cg@cg ~]$ ll /usr/libexec/vdsm/
总用量 80
-rwxr-xr-x.  1 root root  4406 7月  23 05:46 curl-img-wrap
drwxr-xr-x. 47 root root  4096 7月  29 2014 hooks
-rwxr-xr-x.  1 root root 11982 7月  23 05:46 libvirt_configure.sh
-rwxr-xr-x.  1 root root   629 7月  23 05:46 ovirt_functions.sh
-rwxr-xr-x.  1 root root   479 7月  23 05:46 persist-vdsm-hooks
-rwxr-xr-x.  1 root root 19168 7月  23 05:46 safelease
-rwxr-xr-x.  1 root root  6812 7月  23 05:46 spmprotect.sh
-rwxr-xr-x.  1 root root  1963 7月  23 05:46 spmstop.sh
-rwxr-xr-x.  1 root root   696 7月  23 05:46 unpersist-vdsm-hook
-rwxr-xr-x.  1 root root  6285 7月  23 05:46 vdsmd_init_common.sh
-rwxr-xr-x.  1 root root  2424 7月  23 05:46 vdsm-gencerts.sh

/usr/share/vdsm:vdsm的主代码目录,以及编译好的python文件

[cg@cg ~]$ ll /usr/share/vdsm/
总用量 1684
-rwxr-xr-x. 1 root root   1017 7月  23 05:46 addNetwork
-rw-r--r--. 1 root root   2757 7月  23 05:46 alignmentScan.py
-rw-r--r--. 2 root root   1785 7月  23 05:46 alignmentScan.pyc
-rw-r--r--. 2 root root   1785 7月  23 05:46 alignmentScan.pyo
-rw-r--r--. 1 root root  60644 7月  23 05:46 API.py
-rw-r--r--. 2 root root  60347 7月  23 05:46 API.pyc
-rw-r--r--. 2 root root  60347 7月  23 05:46 API.pyo
-rw-r--r--. 1 root root  43178 7月  23 05:46 BindingXMLRPC.py
-rw-r--r--. 1 root root  46258 7月  23 05:46 BindingXMLRPC.pyc

。。。下略


其他

/usr/lib64/python2.6/site-packages/vdsm:VDSM用到的python库

/etc/pki/vdsm:vdsm相关的密钥和CA文件

/etc/rc.d/init.d/vdsmd:启动脚本
/etc/rc.d/init.d/supervdsmd:启动脚本

/var/log/vdsm:日志

/var/run/vdsm:运行时文件

/var/lib/vdsm:使用到的一些库文件


3)这个时候可用的相关命令只有一个,vdsm-tool

4)在目录/usr/lib64/python2.6/site-packages/vdsm中有vdscli.py文件,但并不适合直接调用,这个文件提供的是库函数,可以通过

import vdscli引用该模块。使用案例参见http://www.ovirt.org/Vdsm_Standalone

5)yum install vdsm-cli后,可以使用vdsClient命令了,它调用的是/usr/share/vdsm/vdsClient.py(通过vdsm-cli安装的,原来没有)

0 0
原创粉丝点击