亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
12下一頁
最近訪問板塊 發(fā)新帖
查看: 4389 | 回復: 18
打印 上一主題 下一主題

[討論]SUN CLUSTER 2.2安裝調試[討論] [復制鏈接]

論壇徽章:
1
榮譽版主
日期:2011-11-23 16:44:17
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2002-06-03 10:49 |只看該作者 |倒序瀏覽
終于完成任務了,希望對“三少爺”和其他人有幫助,不過cluster2.2就要停產了。
希望有其他cluster經驗的人也貼貼安裝過程供大家學習。


SUN CLUSTER 2.2 SERVER 端軟件包安裝過程

root@ha-host2 # ./scinstall
Installing: SUNWscins

安裝<SUNWscins>;成功

        Checking on installed package state
................

None of the Sun Cluster software has been installed

        <<ress return to continue>;>;


==== Install/Upgrade Software Selection Menu =======================
Upgrade to the latest Sun Cluster Server packages or select package
sets for installation. The list of package sets depends on the Sun
Cluster packages that are currently installed.

Choose one:
1) Upgrade            Upgrade to Sun Cluster 2.2 Server packages
2) Server             Install the Sun Cluster packages needed on a server
3) Client             Install the admin tools needed on an admin workstation
4) Server and Client  Install both Client and Server packages

5) Close              Exit this Menu
6) Quit               Quit the Program

Enter the number of the package set [6]:  2

What is the path to the CD-ROM image [/cdrom/cdrom0]:  

Installing Server packages

Installing the following packages: SUNWsclb SUNWsc SUNWccd SUNWcmm SUNWff SUNWmond SUNWpnm SUNWscman SUNWsccf SUNWscmgr SUNWffx SUNWsclbx SUNWmondx

            >;>;>;>; Warning <<<<
  The installation process will run several scripts as root.  In
  addition, it may install setUID programs.  If you choose automatic
  mode, the installation of the chosen packages will proceed without
  any user interaction.  If you wish to manually control the install
  process you must choose the manual installation option.

Choices:
   manual     Interactively install each package
   automatic  Install the selected packages with no user interaction.

In addition, the following commands are supported:
   list       Show a list of the packages to be installed
   help       Show this command summary
   close      Return to previous menu
   quit       Quit the program


Install mode [manual automatic] [automatic]:  


Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages

安裝<SUNWsclb>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages
Modifying /etc/rpc

安裝<SUNWsc>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages

安裝<SUNWccd>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages

安裝<SUNWcmm>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages
Modifying /etc/devlink.tab

安裝<SUNWff>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages
Modifying /etc/inet/inetd.conf
Modifying /etc/inet/services

安裝<SUNWmond>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages

安裝<SUNWpnm>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages

安裝<SUNWscman>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages

處理軟件包范例<SUNWsccf>;來自</cdrom/cdrom/Sun_Cluster_2_2/Sol_2.8/Packages>;

Sun Cluster Configuration Database
(sparc) 2.2,REV=2000.03.14.18.21
Copyright 2000 Sun Microsystems, Inc. All rights reserved.
Copyright 2000 Sun Microsystems, Inc. Tous droits r閟erv閟.
使用</>;作為包的基本目錄
## 正在處理軟件包信息.
## 正在處理系統(tǒng)信息.
   4軟件包路徑名已經正確地安裝
## 檢查軟件包的從屬性

安裝Sun Cluster Configuration Database成為<SUNWsccf>;

##正在安裝1部分- 1.
/etc/init.d/rootreserve
/etc/opt/SUNWcluster/conf/TEMPLATE.cdb
/etc/opt/SUNWcluster/conf/ccd.TEMPLATE.init
/etc/opt/SUNWcluster/conf/cdb.filter
/etc/opt/SUNWcluster/conf/dataservices
/etc/opt/SUNWcluster/conf/ha.ccd
/opt/SUNWcluster/bin/dns_sync_wrapper
/opt/SUNWcluster/bin/nshttp_sync_wrapper
/opt/SUNWcluster/bin/nsmail_sync_wrapper
/opt/SUNWcluster/bin/nsnews_sync_wrapper
[ 確認類別<none>; ]
/etc/rc0.d/K60rootreserve <鏈接的路徑名>;
/etc/rc2.d/S27rootreserve <鏈接的路徑名>;
Modifying /etc/group
[ 確認類別<sed>; ]
## 執(zhí)行預安裝正文

安裝<SUNWsccf>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages

安裝<SUNWscmgr>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages

安裝<SUNWffx>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages

安裝<SUNWsclbx>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages

安裝<SUNWmondx>;成功

        Checking on installed package state
................

Volume Manager Selection

Please choose the Volume Manager that will be used
on this node:

1) Cluster Volume Manager (CVM)
2) Sun StorEdge Volume Manager (SSVM)
3) Solstice DiskSuite (SDS)
Choose the Volume Manager: 2

     ---------WARNING---------
The Sun StorEdge Volume Manager (SSVM) will need to be
installed before the cluster can be started.


        <<ress return to continue>;>;


What is the name of the cluster? sc-TEST

How many potential nodes will sc-TEST have [4]? 2

How many of the initially configured nodes will be active [2]? 2

What type of network interface will be used for this configuration (ether|SCI)
[SCI]? ether

What is the hostname of node 0 [node0]? ha-host1

What is ha-host1's first private network interface [hme0]? hme0

What is ha-host1's second private network interface [hme1]? hme1

You will now be prompted for ethernet addresses of
the host. There is only one ethernet address for each host
regardless of the number of interfaces a host has. You can get
this information in one of several ways:

1. use the 'banner' command at the ok prompt,
2. use the 'ifconfig -a' command (need to be root),
3. use ping, arp and grep commands. ('ping exxon; arp -a | grep exxon')

Ethernet addresses are given as six hexadecimal bytes separated
by colons. (ie, 01:23:45:67:89:ab)


What is ha-host1's ethernet address? 8:0:20:**:**:**

What is the hostname of node 1 [node1]? ha-host2

What is ha-host2's first private network interface [hme0]? hme0

What is ha-host2's second private network interface [hme1]? hme1

You will now be prompted for ethernet addresses of
the host. There is only one ethernet address for each host
regardless of the number of interfaces a host has. You can get
this information in one of several ways:

1. use the 'banner' command at the ok prompt,
2. use the 'ifconfig -a' command (need to be root),
3. use ping, arp and grep commands. ('ping exxon; arp -a | grep exxon')

Ethernet addresses are given as six hexadecimal bytes separated
by colons. (ie, 01:23:45:67:89:ab)


What is ha-host2's ethernet address? 8:0:20:**:**:**

Will this cluster support any HA data services (yes/no) [yes]?  no


Performing Quorum Selection


Checking node status...
Checking host ha-host1 ...
ha-host1 is alive

One of the specified hosts is either unreachable or permissions
are not set up or the appropriate software has not been installed
on it. In this situation, it is not possible to determine the set
of devices attached to both the hosts.
Note that both private and shared devices for this host will be
displayed in this node and the administrator must exercise extreme
caution in choosing a suitable quorum device.

Getting device information for host ha-host2
This may take a few seconds to a few minutes...done
Select quorum device for ha-host1 and ha-host2.
Type the number corresponding to the desired selection.
For example: 1
1) DISK:c1t0d0s2:01178LB362
2) DISK:c1t1d0s2:01178N8335
3) DISK:c1t2d0s2:01188NH828
4) DISK:c2t10d0s2:01188LX832
5) DISK:c2t8d0s2:01178KD241
6) DISK:c2t9d0s2:01178KB436
Quorum device: 1
Disk c1t0d0s2 with serial id 01178LB362 has been chosen
as the quorum device.

Finished Quorum Selection



Installing ethernet Network Interface packages.

What is the path to the CD-ROM image [/cdrom/cdrom0]:  

Installing the following packages: SUNWsma SUNWsmax

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages
Modifying /etc/devlink.tab
Modifying /etc/inet/services
Modifying /etc/inet/inetd.conf

  ... SUNWsma: postinstall complete


安裝<SUNWsma>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages

  ... SUNWsmax: postinstall complete

安裝<SUNWsmax>;成功

        Checking on installed package state
................

..........

==== Select Data Services Menu ==========================

Please select which of the following data services
are to be installed onto this cluster. Select singly,
or in a space separated list.
Note: Sun Cluster HA for NFS and Sun Cluster for Informix XPS
are installed automatically with the Server Framework.

You may de-select a data service by selecting it
a second time.

Select DONE when finished selecting the configuration.

        1) Sun Cluster HA for Oracle
        2) Sun Cluster HA for Informix
        3) Sun Cluster HA for Sybase
        4) Sun Cluster HA for Netscape
        5) Sun Cluster HA for Netscape LDAP
        6) Sun Cluster HA for Lotus
        7) Sun Cluster HA for Tivoli
         Sun Cluster HA for SAP
        9) Sun Cluster HA for DNS

INSTALL 10) No Data Services
        11) DONE

Choose a data service: 11

============ Main Menu =================

1) Install/Upgrade - Install or Upgrade Server
             Packages or Install Client Packages.
2) Remove  - Remove Server or Client Packages.
3) Change  - Modify cluster or data service configuration
4) Verify  - Verify installed package sets.
5) List    - List installed package sets.

6) Quit    - Quit this program.
7) Help    - The help screen for this menu.

Please choose one of the menu items: [7]:  6
==== Verify Package Installation ==========================
Installation
    All  of the install      packages have been installed
Framework
    None of the client       packages have been installed
    All  of the server       packages have been installed
Communications
    All  of the SMA          packages have been installed
Data Services
    None of the Sun Cluster HA for Oracle packages have been installed
    None of the Sun Cluster HA for Informix packages have been installed
    None of the Sun Cluster HA for Sybase packages have been installed
    None of the Sun Cluster HA for Netscape packages have been installed
    None of the Sun Cluster HA for Netscape LDAP packages have been installed
    None of the Sun Cluster HA for Lotus packages have been installed
    None of the Sun Cluster HA for Tivoli packages have been installed
    None of the Sun Cluster HA for SAP packages have been installed
    None of the Sun Cluster HA for DNS packages have been installed
    None of the Sun Cluster for Oracle Parallel Server packages have been installed
root@ha-host2 #


==========================================================================================


如果要安裝數(shù)據庫的模塊,請參考以下ORACLE的例子


==== Select Data Services Menu ==========================

Please select which of the following data services
are to be installed onto this cluster. Select singly,
or in a space separated list.
Note: Sun Cluster HA for NFS and Sun Cluster for Informix XPS
are installed automatically with the Server Framework.

You may de-select a data service by selecting it
a second time.

Select DONE when finished selecting the configuration.

        1) Sun Cluster HA for Oracle
        2) Sun Cluster HA for Informix
        3) Sun Cluster HA for Sybase
        4) Sun Cluster HA for Netscape
        5) Sun Cluster HA for Netscape LDAP
        6) Sun Cluster HA for Lotus
        7) Sun Cluster HA for Tivoli
         Sun Cluster HA for SAP
        9) Sun Cluster HA for DNS

INSTALL 10) No Data Services
        11) DONE

Choose a data service: 1


==== Select Data Services Menu ==========================

Please select which of the following data services
are to be installed onto this cluster. Select singly,
or in a space separated list.
Note: Sun Cluster HA for NFS and Sun Cluster for Informix XPS
are installed automatically with the Server Framework.

You may de-select a data service by selecting it
a second time.

Select DONE when finished selecting the configuration.

INSTALL 1) Sun Cluster HA for Oracle
        2) Sun Cluster HA for Informix
        3) Sun Cluster HA for Sybase
        4) Sun Cluster HA for Netscape
        5) Sun Cluster HA for Netscape LDAP
        6) Sun Cluster HA for Lotus
        7) Sun Cluster HA for Tivoli
         Sun Cluster HA for SAP
        9) Sun Cluster HA for DNS

        10) No Data Services
        11) DONE

Choose a data service: 11

What is the path to the CD-ROM image [/cdrom/cdrom0]:  

Installing Data Service packages.

Installing the following packages: SUNWscpro SUNWscds SUNWscsyb

            >;>;>;>; Warning <<<<
  The installation process will run several scripts as root.  In
  addition, it may install setUID programs.  If you choose automatic
  mode, the installation of the chosen packages will proceed without
  any user interaction.  If you wish to manually control the install
  process you must choose the manual installation option.

Choices:
   manual     Interactively install each package
   automatic  Install the selected packages with no user interaction.

In addition, the following commands are supported:
   list       Show a list of the packages to be installed
   help       Show this command summary
   close      Return to previous menu
   quit       Quit the program


Install mode [manual automatic] [automatic]:  


Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages

安裝<SUNWscpro>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages

安裝<SUNWscds>;成功

Package directory: /cdrom/cdrom0/Sun_Cluster_2_2/Sol_2.8/Packages
Purified ccd file written to /etc/opt/SUNWcluster/conf/ccd.database.pure
There were 0 errors found.

安裝<SUNWscora>;成功

        Checking on installed package state
..........................

============ Main Menu =================

1) Install/Upgrade - Install or Upgrade Server
             Packages or Install Client Packages.
2) Remove  - Remove Server or Client Packages.
3) Change  - Modify cluster or data service configuration
4) Verify  - Verify installed package sets.
5) List    - List installed package sets.

6) Quit    - Quit this program.
7) Help    - The help screen for this menu.

Please choose one of the menu items: [7]:  6
==== Verify Package Installation ==========================
Installation
    All  of the install      packages have been installed
Framework
    None of the client       packages have been installed
    All  of the server       packages have been installed
Communications
    All  of the SMA          packages have been installed
Data Services
     All    of the Sun Cluster HA for Oracle packages have been installed
    None of the Sun Cluster HA for Informix packages have been installed
    None of the Sun Cluster HA for Sybase packages have been installed
    None of the Sun Cluster HA for Netscape packages have been installed
    None of the Sun Cluster HA for Netscape LDAP packages have been installed
    None of the Sun Cluster HA for Lotus packages have been installed
    None of the Sun Cluster HA for Tivoli packages have been installed
    None of the Sun Cluster HA for SAP packages have been installed
    None of the Sun Cluster HA for DNS packages have been installed
    None of the Sun Cluster for Oracle Parallel Server packages have been installed
root@ha-host2 #



=====================================================================================


配置NAFO(Network Adapter Fail Over,主備機都要做)

運行以下命令:
root@ha-host2 # /opt/SUNWpnm/bin/pnmset
In the following dialog, you will be prompted to configure public
network management.
do you want to continue ... [y/n]: y
How many NAFO backup groups on the host [1]: 1
Enter backup group number [0]: 0
Please enter all network adapters under nafo0:
hme0
The following test will evaluate the correctness of the customer
NAFO configuration...
name duplication test passed
Check nafo0... < 20 seconds
hme0 is active
remote address = 10.·.·.·
test hme0 wait...
nafo0 test passed

NAFO配置結束。

===========================================================================================


配置邏輯主機 (只在主用機上做一次就可以了)
啟動Cluster
在主用機上運行以下命令,啟動Cluster
ha-host1@root# scadmin startcluster ha-host1 sc-TEST
在備用機上運行以下命令,加入Cluster
ha-host1@root# scadmin startnode
在主用機上運行以下命令,配置邏輯主機及相關信息
ha-host1@root# scconf  sc-TEST  -L ha-TEST  -n  ha-host1,ha-host2 -g datdg -i hme0,hme0,han2000 -m
在主/備用機上運行以下命令,配置文件管理系統(tǒng)
ha-host1@root# scconf sc-TEST -F ha-TEST
在主/備用機上修改雙機共享存儲掛接配置文件:
修改文件/etc/opt/SUNWcluster/conf/hanfs/vfstab.ha-TEST,加入如下行:

/dev/vx/dsk/datadg02/vol-00   /dev/vx/rdsk/datadg02/vol-00/opt/test0 ufs 1 no -
/dev/vx/dsk/datadg02/vol-01   /dev/vx/rdsk/datadg02/vol-01/opt/test1 ufs 1 no -
/dev/vx/dsk/datadg02/vol-02   /dev/vx/rdsk/datadg02/vol-02/opt/test2 ufs 1 no -
/dev/vx/dsk/datadg02/vol-03   /dev/vx/rdsk/datadg02/vol-03/opt/test3 ufs 1 no -


===========================================================================================


oracle 正常安裝 再用TAR 命令備份和恢復到備用機上。



===========================================================================================

為Cluster配置Oracle

以下在主用機上做(Cluster 已經啟動,Oracle已經啟動 )
# su - oracle
$ svrmgrl  (其中省略了系統(tǒng)回應信息)
SVRMGR>;connect internal;
SVRMGR>;grant connect, resource to scott identified by tiger;
SVRMGR>;alter user scott default tablespace system quota 1m on system;
SVRMGR>;grant select on v_$sysstat to scott;
SVRMGR>;grant create session to scott;
SVRMGR>;grant create table to scott;
SVRMGR>;disconnect;
SVRMGR>;exit;
$


2、編輯oracle的2個文件
以下在主用機上做
# su - oracle
$ vi /opt/oracle/home/network/admin/tnsnames.ora
(將文件中的關于HOST = host1 的設置改成HOST = ha-TEST 邏輯主機名)
(并確認其中SID = ora8,SERVICE = ora
$ vi /opt/oracle/home/network/admin/listener.ora
(將文件中的關于HOST = host1 的設置改成HOST = ha-TEST 邏輯主機名)
(并確認其中SID = ora8,SERVICE = ora

3、copy 文件及改屬性
以下在主用機上做,且Cluster已經啟動,/han2000目錄已經掛接
# cp /opt/oracle/home/network/admin/tnsnames.ora /var/opt/oracle/
# cp /opt/oracle/home/network/admin/listener.ora /var/opt/oracle/
# cp /opt/oracle/admin/ora8/pfile/initora8.ora /ha-TEST
# chown oracle /ha-TEST/initora8.ora
# chgrp oinstall /ha-TEST/initora8.ora
# chown oracle /var/opt/oracle/tnsnames.ora
# chgrp oinstall /var/opt/oracle/tnsnames.ora
# chown oracle /var/opt/oracle/listener.ora
# chgrp oinstall /var/opt/oracle/listener.ora

4、復制Oracle的文件到備用機
以下在主用機上做
# cd /opt
# tar cf oracle.tar oracle
# rcp oracle.tar ha-host2:/opt
# cd /var/opt
# tar cf var-oracle.tar oracle
# rcp var-oracle.tar ha-host2:/var/opt
以下在備用機上做
# cd /opt
# tar xf oracle.tar
# cd /var/opt
# tar xf var-oracle.tar

5、在Cluster上注冊Oracle服務
以下在主用機上做,且Cluster已經啟動
# hareg -s -r oracle
# hareg -y oracle
# haoracle insert ora8 ha-TEST 60 10 120 300 scott/tiger \
>; /han2000/initN2000.ora
(60循環(huán)檢測間隔  60秒
10連接檢測間隔  10次
120檢測超時時間 120秒
300重啟延時時間 300秒)
# haoracle start ora8

6、做適當?shù)臋z查,切換,看oracle啟動是否正常
# haoracle list
   onra8:ha-TEST:60:10:120:300:scott:tiger:/ha-TEST/initora8.ora:
# hareg
   oracle on


剩下的就是測試了,還有你的應用如何讓cluster控制切換,那是就事論事的,這里沒有辦法寫。

如果過程中有什么不一致的地方是我修改的問題,請包含和指正。

聲明:此文檔只能用于測試!禁止用于生產系統(tǒng)安裝調試!

論壇徽章:
0
2 [報告]
發(fā)表于 2002-06-03 10:54 |只看該作者

[討論]SUN CLUSTER 2.2安裝調試[討論]

我以為你寫的是3.x的呢,殘念。。。。。。

論壇徽章:
1
榮譽版主
日期:2011-11-23 16:44:17
3 [報告]
發(fā)表于 2002-06-03 10:56 |只看該作者

[討論]SUN CLUSTER 2.2安裝調試[討論]

3.x的我還沒有裝熟怎么寫?再說SUN的3.x還存在很大的變化,再等等。
再過2個月。

論壇徽章:
0
4 [報告]
發(fā)表于 2002-06-03 11:03 |只看該作者

[討論]SUN CLUSTER 2.2安裝調試[討論]

你法的是什么東西?我不懂!不好意思。海

論壇徽章:
1
榮譽版主
日期:2011-11-23 16:44:17
5 [報告]
發(fā)表于 2002-06-03 11:06 |只看該作者

[討論]SUN CLUSTER 2.2安裝調試[討論]

這是大家給我布置的作業(yè):(。

論壇徽章:
0
6 [報告]
發(fā)表于 2002-06-03 11:19 |只看該作者

[討論]SUN CLUSTER 2.2安裝調試[討論]

如果應用不是數(shù)據庫而是郵件系統(tǒng),有什么特別要注意的嗎?

論壇徽章:
1
榮譽版主
日期:2011-11-23 16:44:17
7 [報告]
發(fā)表于 2002-06-03 11:26 |只看該作者

[討論]SUN CLUSTER 2.2安裝調試[討論]

好象支持列表中沒有郵件系統(tǒng)?

論壇徽章:
0
8 [報告]
發(fā)表于 2002-06-03 11:27 |只看該作者

[討論]SUN CLUSTER 2.2安裝調試[討論]

只能選擇VCS了。

論壇徽章:
0
9 [報告]
發(fā)表于 2002-06-03 11:30 |只看該作者

[討論]SUN CLUSTER 2.2安裝調試[討論]

sun的cluster和legato的ha相比,誰更好??

論壇徽章:
0
10 [報告]
發(fā)表于 2002-06-03 13:33 |只看該作者

[討論]SUN CLUSTER 2.2安裝調試[討論]

老大,辛苦了
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP