继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

Configuring Oracle Solaris Cluster 4.0 On Solaris 11

PIPIONE
关注TA
已关注
手记 1096
粉丝 147
获赞 702


This article described how to install and configure a two-node cluster with Oracle Solaris Cluster 4.0 on Oracle Solaris 11.Following figures is my virtual machine's configuration:

p_w_picpathp_w_picpath

Oracle Solaris Cluster 4.0  software Installation:

Before installation,download osc4.0-repo-full.iso file from  here and use it to setup a publisher.

p_w_picpath

The following table lists the primary group packages for the Oracle Solaris Cluster 4.0 software and the principal features that each group package contains. You must install at least the ha-cluster-framework-minimal group package.

p_w_picpath

I installed ha-cluster-full group package on both of nodes.

p_w_picpath

Ensure that the rpcbind local_only property set to 'false' on both of nodes.

p_w_picpath

Oracle Solaris Cluster 4.0 Configuration:

Ensure you have enough privilege to use scinstall command.After do that,select ‘1’go next screen.

p_w_picpath

In below screen,select ‘Create a new cluster’ .

p_w_picpath

Answer the question and enter.

If you can't set rpcbind local_only property to “false”you should get some error information in this screen.

p_w_picpath

Choose which mode you want to use.

p_w_picpath

Define a Cluster Name.

p_w_picpath

Define how many nodes belong to this cluster.

p_w_picpath

Disable DES authentication.

.p_w_picpath

Ensure this cluster use at least two private networks.

p_w_picpath

Selecting the Transport Adapters.

p_w_picpath

Accept the default network address and netmask.

p_w_picpath

Set global fencing by default.

p_w_picpath

Enable automatic quorum device selection.

p_w_picpath

After enter,go ahead…

p_w_picpath

After creation,check cluster configuration.

check quorum and cluster node:

p_w_picpath

check quorum device type:

p_w_picpath

check IPMP:

p_w_picpath

When the scinstall utility finishes, the installation and configuration of the basic Oracle Solaris Cluster software is complete.Now,thr cluster is ready for you to configure highly available applications.

Configuring Data Service

1.Configuring HA for zfs.

Here i creare a mypool by /dev/did/dsk/d4s2 device.

p_w_picpath

Following command will be create resource group、register resource type、create reource and bring them online.Ensure that the mypool-lh wrote into /etc/hosts file.

p_w_picpath

Checking resource group status.

p_w_picpath

Switching resource group  to another node.

p_w_picpath

2.Configuring HA for Solaris Containers:

Creating resource group and zonefs pool.

p_w_picpath

Checking Resource Group status.

p_w_picpath

Following figture shows zone01's configuration.Setup ip-type is shared,don't enable autoboot.

p_w_picpath

After created ,check zone information by zoneadm command on both nodes that status is configured.

p_w_picpath

p_w_picpath

Before installion, ensure that the Package Repositories was correct on global zone.

p_w_picpath

Boot zone01 and setup it by console on osc01.After configuration,shutdown it and switch resource group to osc02.You can't boot zone01 on osc02 directly.Before you boot it on osc02,detach zone01 on osc01 and bring uuid into correspondence with osc02.

p_w_picpath

Unique identifier for a zone, as assigned by libuuid(3LIB).  If  this option is present and the argument is a non-empty string, then the zone  matching  the UUID  is  selected  instead  of  the one named by the –z option, if such a zone is present.If you want,you can use zfs subcommand to check org.opensolaris.libbe:uuid property. 

p_w_picpath

Use beadm with H option to check root filesystem's uuid.I installed zone01 on osc01,so i must change uuid on osc02.

p_w_picpath

p_w_picpath

If you don't change the uuid,you should get following error when you attach zone01 and boot it on osc02:

p_w_picpath

So,you must keep the uuid was consistent on both of nodes.Following figture show you how to change uuid and attach zone01 on osc02:

p_w_picpath

After changed,boot zone01 on osc02.

p_w_picpath

Check status on osc02 and detach it then you can configure solaris containers HA service.

p_w_picpath

I've already installed date service on both of nodes when i install oracle solaris cluster.Enter /opt/SUNWsczone/sczbt/util directory,do following change:

p_w_picpath

Using sczbt_register script to register zone01-rs resource to zone-rg resource group.

p_w_picpath

Checking resouce status by scstat with g option.

p_w_picpath

If you setup correctly,you can switch zone-rg service to osc01.

p_w_picpath

Documentation:

1.Oracle Solaris Cluster Product Documentation

2.Oracle Solaris Cluster How-To Guides

©著作权归作者所有:来自51CTO博客作者candon123的原创作品,谢绝转载,否则将追究法律责任

OracletargetmachineSolaris


打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP