免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1340 | 回复: 0
打印 上一主题 下一主题

solaris8+vxvm3.0.4+oracle9.2.0.1+vcs35专题:(七)使用VXVM [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-25 00:00 |只看该作者 |倒序浏览
八、说说vxconfigd进程
   我们在使用vxvm的时候,要用到两个很关键的进程,一个是vxconfigd,一个是vxdctl,如果这两个进程没有启动,那么我们便无法通过使用一系列命令来配置共享卷组.
   在此前作vxvm练习的时候忽略了很重要的一点,即vxconfigd与rootdg是相辅相承,缺一不可的.没有vxconfigd进程的启动,便不能创建roogdg;vxconfigd进程启动了,但是没有创建roogdg,即使创建了其他volume信息,重启之后,不仅volume信息会丢失,而且vxconfigd进程不会自启动,必须通过手工启动方式"vxconfigd -m disable"来启动vxconfigd进程,所以必须遵循正确的步骤.
   因为情况特殊,我所使用的为破解版vxvm3.0.4,在创建了rootdg后必须对文件"/etc/vx/reconfig.d/state.d/install-db"进行手工删除,从而避开vxinstall环节,重启的时候vxconfigd进程便会随系统启动.如若不然,vxconfigd进程的启动不会成功.
NOTE:安装完vxvm软件后的第一次重启,vxconfigd进程是没有的,需要手工启动.

九、创建rootdg
[email=root@solarisa]root@solarisa[/email]
# vxlicense –c(正版软件需要这个步骤)
[email=root@solarisa]root@solarisa[/email]
# vxconfigd –m disable(手工启动vxconfigd进程)
[email=root@solarisa]root@solarisa[/email]
# vxdctl init(初始化vxdctl进程,如果上一步不能成功,这里也会宣告失败)
[email=root@solarisa]root@solarisa[/email]
# vxdctl init rootdg(驱动rootdg)
[email=root@solarisa]root@solarisa[/email]
# vxdg init rootdg(初始化rootdg)
[email=root@solarisa]root@solarisa[/email]
# vxdctl add disk c0t0d0s7 type=simple(这里使用到了系统分区)
[email=root@solarisa]root@solarisa[/email]
# vxdisk –f init c0t0d0s7 type=simple
[email=root@solarisa]root@solarisa[/email]
# vxdg adddisk c0t0d0s7(将系统第八分区来创建rootdg)
[email=root@solarisa]root@solarisa[/email]
# vxdctl enable(启动vxdctl进程,启动后可以用vxdctl mode进行确认)
rootdg创建成功后,可以通过命令"vxdg list"进行确认,还可以通过命令"vxdisk list"查看rootdg占用的分区情况.
之后,手工删除文件"/etc/vx/reconfig.d/state.d/install-db",重启,如果连接串口,会在系统启动的时候看到系统自发启动vxvm管理进程,"ps -ef |grep vxconfigd",得到如下信息:
[email=root@solarisa]root@solarisa[/email]
# ps -ef |grep vxconfigd
    root    18     1  0 12:06:59 ?        0:01 vxconfigd -m boot
    root  1654  1606  0 13:52:03 pts/1    0:00 grep vxconfigd
说明vxconfigd进程启动成功,vxdg list,vxdisk list确认rootdg信息还在:
[email=root@solarisa]root@solarisa[/email]
# vxdg list
NAME         STATE           ID
rootdg       enabled  1200477234.1025.rootdg
[email=root@solarisa]root@solarisa[/email]
# vxdisk list
DEVICE       TYPE      DISK         GROUP        STATUS
c0t0d0s2     sliced    -            -            error
c0t0d0s7     simple    c0t0d0s7     rootdg       online
c0t1d0s2     sliced    -            -            error




本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6589/showart_470996.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP