- 论坛徽章:
- 1
|
各位老大,请教一下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
只能做为参考,是我写的,还没来得急实验呢!不好意思!
|
|