阅 读 文 章

各位老大,请教一下cluster的问题??

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(alaler) | 时间:2007-05-27 | 浏览:人次 ]


cluster和vx都装好了,接下来如果把VX的做好的VOLUME做到cluster里去??
/etc/opt/SUNWcluster/conf/hanfs/vfstab.hz-cluster是怎么操作的??



 byuq 回复于:2002-11-14 17:40:05

#scconf -a -D type=vxvm,name=组名,nodelist=主机1:主机2,preferenced=true,failback=enabled
(以上是命令行方式注册vxvm,也可用字符界面scsetup在cluster中注册vxvm)
Sun Cluster HA for NFS Data Service Configurtion
#pkgadd –d .(安装Sun Cluster HA for NFS软件包,也可以用scinstall安装)
编辑/etc/hosts文件加入逻辑主机名和浮动ip
#scrgadm –a –t SUNW.nfs&#59;scrgadm –a –t SUNW.LogicalHostname&#59;scrgadm –a –t SUNW.SharedAddress(注册资源组类型)
# scrgadm -a -g 资源组名 -y Pathprefix=/global/nfs(建立一个资源组,管理文件在/global/nfs 目录下)
#mkdir -p /global/nfs/SUNW.nfs
编辑/global/nfs/SUNW.nfs/dfstab.nfs文件,注意dfstab.nfs这里的nfs是以后要建立的资源名
share –F nfs –o ro /global/nfs
#scrgadm -a -L -g 资源组名 -l 源逻辑主机名(建立源逻辑主机名到资源组中)
#scrgadm –a –j nfs –g 资源组名 –t SUNW.nfs(建立源nfs到资源组中并定义源类型为SUNW.nfs)
#scswitch –Z –g 资源组名(在cluster中起用资源组)




 alaler 回复于:2002-11-14 18:42:16

不好意思,偶呢cluster是2.2的


 byuq 回复于:2002-11-14 19:54:47

# mkfs /dev/vx/rdsk/diskgroup/diskgroup-stat(用于管理卷)
# mkfs -F vxfs /dev/vx/rdsk/diskgroup/volume(数据卷)
# mkdir /logicalhost
# mount /dev/vx/dsk/diskgroup/diskgroup-stat /logicalhost
# mkdir /logicalhost/volume
在所有节点Create the /etc/opt/SUNWcluster/conf/hanfs directory
Create and edit the /etc/opt/SUNWcluster/conf/hanfs/vfstab.logicalhost file to update the administrative and multihost VxFS file system information
例:
/dev/vx/dsk/dg1/dg1-stat /dev/vx/rdsk/dg1/dg1-stat /hahost1 vxfs - yes -
/dev/vx/dsk/dg1/vol_1 /dev/vx/rdsk/dg1/vol_1 /hahost1/vol_1 vxfs - yes -
/dev/vx/dsk/dg1/vol_2 /dev/vx/rdsk/dg1/vol_2 /hahost1/vol_2 vxfs - yes -

# umount /logicalhost
# vxdg deport diskgroup
# vxdg -t import diskgroup
From a cconsole(1) window, use an editor such as vi to create and edit the /etc/opt/SUNWcluster/conf/hanfs/dfstab.logicalhost file
share  -F nfs  -d "hahost1 fs 1" /hahost1/vol_1 
After setting up and configuring NFS, you must activate Sun Cluster HA for NFS by using the hareg(1M) command to start the Sun Cluster monitor
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: 问题 请教 老大 各位 资源 cluster 主机 建立 回复 vxvm

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.