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;scrgadm –a –t SUNW.LogicalHostname;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
# 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


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


alaler 回复于:2002-11-15 10:30:01
我不用VxFS,只想用ufs,又该如何做呢??