DPA從DPA 10.0.352升級到DPA 11.0.373,10.0.35211.0.373

來源:互聯網
上載者:User

DPA從DPA 10.0.352升級到DPA 11.0.373,10.0.35211.0.373

1: 解壓安裝檔案SolarWinds-DPA-11.0.373-64bit.tar.gz

[root@lnxmonitor tmp]# tar -xzvf SolarWinds-DPA-11.0.373-64bit.tar.gz 
DPAAdministratorGuide_11.0_RC.pdf
dpa_11_0_373_x64_installer/
dpa_11_0_373_x64_installer/dpa_11_0_373_x64_installer.sh
dpa_11_0_373_x64_installer/install.txt
dpa_11_0_373_x64_installer/readme.txt

 

2: 查看解壓目錄下的readme.txt,裡面有升級DPA的處理步驟。

UPGRADE INSTRUCTIONS
---------------------------------------------------------------------------
 
Prerequisite: System has an existing installation.
 
1. Install the new version of SolarWinds DPA on your existing server.
 
2. Disable cron jobs set up for SolarWinds DPA.
 
3. Run the shutdown.sh command from the old installation directory.
 
4. Locate the directory created when you installed the new version:
    /home/dpa_10_1_xxx       <= old installation home (may be ignite_8_x_xxx or dpa_9_x_xxx)
    /home/dpa_10_2_xxx       <= new SolarWinds DPA home
 
5. Copy or move these directories from the old to the new installation directory:
 
    WARNING: Do not copy hotfix files.
 
    cp -fr <OLD_home>/iwc/tomcat/ignite_config/* <NEW_home>/iwc/tomcat/ignite_config/
    cp -fr <OLD_home>/iwc/tomcat/logs/* <NEW_home>/iwc/tomcat/logs/
    mv <OLD_home>/iwc/tomcat/licensing <NEW_home>/iwc/tomcat/
 
6. If you are:
    - using LDAPS,
    - using SSL, or
    - changed the default SolarWinds DPA ports,
 
    then also complete the following tasks:
 
    a. Copy the keystore to the new installation:
 
        cp -fr <OLD_home>/iwc/tomcat/conf/.keystore  <NEW_home>/iwc/tomcat/conf/
 
    b. Edit <NEW_home>/iwc/tomcat/ignite_config/idc/system.properties file as follows:
 
       If the "javax.net.ssl.trustStore" entry is present, make sure it refers
       to a key store file inside the new DPA installation directory structure
       if possible.
 
       If the "com.confio.security.trustStore" entry is present, make sure it
       refers to a trust store file inside the new DPA installation directory
       structure if possible.
       If the referenced trust store file is in the new DPA installation
       directory structure, make sure the path is relative to the
       <NEW_home>/iwc/tomcat directory. For example, the absolute path
       "/home/user/dpa_10_2_xxx/iwc/tomcat/conf/.keystore" should be represented
       as "conf/.keystore" in the "com.confio.security.trustStore" entry.
 
    c. If you changed default port values or if you are using SSL on DPA 9.1.x or
       earlier, open server.xml from the old and the new installation
       directories.
 
    d. Copy over the appropriate values. Make sure that ports on the HTTP and
       HTTPS connector do not conflict. The files are located at:
 
        - <OLD_home>/iwc/tomcat/conf/server.xml
        - <NEW_home>/iwc/tomcat/conf/server.xml
 
7. If you disabled a cron job, update the path in those scripts to the new directory
   name and re-enable the job.
 
8. The upgrade is complete. The next step is to start SolarWinds DPA (see
   the section on Startup Instructions).

 

3:授予dpa_11_0_373_x64_installer.sh執行許可權,並執行指令碼。

#chmod +x dpa_11_0_373_x64_installer.sh
 
#./dpa_11_0_373_x64_installer.sh

 

3: 禁用DPA相關的crontab作業。停止DPA服務(版本為DPA 10.0.352),

[root@lnxmonitor dpa_10_0_352]# ./shutdown.sh 
**************************************************************************
*
*  If this script fails you can manually stop the program by 
*  doing the following steps: 
*
*  1) Set the JAVA_HOME environment variable to your Java installation.
*  2) Add <JAVA_HOME>/bin to your PATH environment variable.
*  3) Go to the <DPA Home>/tomcat/bin directory. 
*  4) Run ./shutdown.sh 
*
*
***************************************************************************
Catalog exists...
Found java 1.6 or 1.7
JAVA HOME IS SET TO /home/solarwinds/dpa_10_0_352/iwc/jre_linux
PATH IS SET TO /home/solarwinds/dpa_10_0_352/iwc/jre_linux/bin:/usr/java/jdk1.7.0_25/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
IBM Jvm Is Set To NO
Setting the -server option for JVM
JAVA_OPTS is  -server -Xss264k -Xms256m -Xmx1024m -XX:MaxPermSize=192m -Dcom.sun.management.jmxremote -Djava.net.preferIPv4Stack=true -Dnet.sf.ehcache.skipUpdateCheck=true
Using CATALINA_BASE:   /home/solarwinds/dpa_10_0_352/iwc/tomcat
Using CATALINA_HOME:   /home/solarwinds/dpa_10_0_352/iwc/tomcat
Using CATALINA_TMPDIR: /home/solarwinds/dpa_10_0_352/iwc/tomcat/temp
Using JRE_HOME:        /home/solarwinds/dpa_10_0_352/iwc/jre_linux
Using CLASSPATH:       /home/solarwinds/dpa_10_0_352/iwc/tomcat/bin/bootstrap.jar:/home/solarwinds/dpa_10_0_352/iwc/tomcat/ignite_config
**************************************************************************
*
*  DPA is shutting down. 
*
***************************************************************************
Exiting script after webserver stopped.

 

4:拷貝相關檔案,例如設定檔、記錄檔、License檔案

 

cp -fr <OLD_home>/iwc/tomcat/ignite_config/* <NEW_home>/iwc/tomcat/ignite_config/

cp -fr <OLD_home>/iwc/tomcat/logs/* <NEW_home>/iwc/tomcat/logs/

mv <OLD_home>/iwc/tomcat/licensing <NEW_home>/iwc/tomcat/

 

 
root@lnxmonitor solarwinds]# cp -fr /home/solarwinds/dpa_10_0_352/iwc/tomcat/ignite_config/* /home/solarwinds/dpa_11_0_373/iwc/tomcat/ignite_config/
[root@lnxmonitor solarwinds]# cp -fr /home/solarwinds/dpa_10_0_352/iwc/tomcat/logs/*  /home/solarwinds/dpa_11_0_373/iwc/tomcat/logs/
[root@lnxmonitor solarwinds]# mv /home/solarwinds/dpa_10_0_352/iwc/tomcat/licensing /home/solarwinds/dpa_11_0_373/iwc/tomcat/
[root@lnxmonitor solarwinds]# ls
dpa_10_0_352  dpa_11_0_373  dpa_9_1_85
[root@lnxmonitor solarwinds]# cd dpa_11_0_373/
[root@lnxmonitor dpa_11_0_373]# ls
iwc  license.txt  shutdown.sh  SolarWindsEula.rtf  startup.sh

 

5:如果你設定了SSL或修改了預設連接埠等,那麼參考上面的第六條說明進行配置。此處由於不需要設定,那麼略過。

 

6:啟動DPA服務,訪問頁面,檢查升級是否成功!

 
[root@lnxmonitor dpa_11_0_373]# ./startup.sh 
**************************************************************************
*
*  If this script fails you can manually start the program by 
*  doing the following steps: 
*
*  1) Set the JAVA_HOME environment variable to your Java installation.
*  2) Add <JAVA_HOME>/bin to your PATH environment variable.
*  3) Go to the <DPA Home>/tomcat/bin directory. 
*  4) Run ./startup.sh 
*  5) Bring up the link (http://machine Name:8123 
*     or http://machine IP:8123) in your browser.
*
*
***************************************************************************
Catalog exists...
Found java 1.8
JAVA HOME IS SET TO /home/solarwinds/dpa_11_0_373/iwc/jre_linux
PATH IS SET TO /home/solarwinds/dpa_11_0_373/iwc/jre_linux/bin:/usr/java/jdk1.7.0_25/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
The server port is 8127
The HTTP port is 8123
The HTTPS port is 8124
DPA is not running.
The port 8123 is open
The port 8124 is open
The port 8127 is open
Starting DPA
STACK_SIZE OVERRIDE = 
MIN_HEAP_MEMORY OVERRIDE = 
MAX_HEAP_MEMORY OVERRIDE = 
ADDITIONAL_JVM_OPTION = 
IBM Jvm Is Set To NO
Setting the -server option for JVM
JAVA_OPTS is  -server -Xss300k -Xms256m -Xmx1024m -Djava.net.preferIPv4Stack=true -Dnet.sf.ehcache.skipUpdateCheck=true
Tomcat started.
 
Waiting on initialization...please be patient
 
**************************************************************************
*
*  DPA has been launched, wait one minute then bring up 
*  one of the following links in your browser:
*
*  http://<Machine Name>:8123 or http://<Machine IP>:8123
*  https://<Machine Name>:8124 or https://<Machine IP>:8124
*
*  If the link does not work, check <iwc_dir>/tomcat/logs
*  and make sure a firewall is not running on this machine.
*
***************************************************************************
Exiting script after webserver launched.

 

如果監控了較多的資料庫伺服器,則開啟DPA時有可能需要等待一小段時間,如下所示。另外,如果一個License Key被拆分到兩個DPA伺服器,則啟動DPA的時候,需要啟用License,如果你伺服器可以訪問外網,那麼就可以線上啟用License,如果不能訪問外網,只能使用離線啟用方式。如果不啟用License,則Upgrade則會受阻,無法繼續進行!

 

參考資料:

https://support.solarwinds.com/Success_Center/Database_Performance_Analyzer_(DPA)/DPA_Admin_Guide/060_Upgrade_DPA/020_Upgrade_DPA_on_Linux

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.