免费注册 查看新帖 |

Chinaunix

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

各位老大,请教一下cluster的问题?? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-11-14 17:01 |只看该作者 |倒序浏览
cluster和vx都装好了,接下来如果把VX的做好的VOLUME做到cluster里去??
/etc/opt/SUNWcluster/conf/hanfs/vfstab.hz-cluster是怎么操作的??

论坛徽章:
1
狮子座
日期:2013-09-02 12:10:41
2 [报告]
发表于 2002-11-14 17:40 |只看该作者

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

#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中起用资源组)

论坛徽章:
0
3 [报告]
发表于 2002-11-14 18:42 |只看该作者

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

不好意思,偶呢cluster是2.2的

论坛徽章:
1
狮子座
日期:2013-09-02 12:10:41
4 [报告]
发表于 2002-11-14 19:54 |只看该作者

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

# 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
# hareg -s -r nfs -h hahost1,hahost2
# hareg -y nfs
# haswitch -r
Remove the existing logical host entry from the configuration files by running the following command on all nodes
# scconf clustername -L logicalhost -r
Create a new logical host entry, which uses the same logical host name but with the new IP address, by running the following command on all cluster nodes
# scconf clustername -L logicalhost -n nodelist -g diskgroup -i interfaces_and_IP
Register the data service, Register the Sun Cluster data service(s) associated with the logical host(s).
# hareg -s -r dataservice [-h logicalhost]
Start the data service
# hareg -y dataservice
Stop the data service on all logical hosts
# hareg -n dataservice
Unregister the data service
# hareg -u dataservice
(Optional) Remove the logical hosts from the cluster configuration, You can remove a logical host from the cluster configuration only if all data services are disassociated from it, Use one of the following methods to remove a logical host, Run this scconf(1M) command on one node that is a cluster member.
# scconf clustername -L logicalhost -r
#haswitch -r


只能做为参考,是我写的,还没来得急实验呢!不好意思!

论坛徽章:
0
5 [报告]
发表于 2002-11-15 10:30 |只看该作者

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

我不用VxFS,只想用ufs,又该如何做呢??
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP