Recovering a Cluster After Membership Is Mistakenly Modified

18-22 Oracle Fusion Middleware Administrators Guide

18.3.3.1 Recovering a Managed Server to the Same Host

In this scenario, you recover a Managed Server to the same host after the operating system has been reinstalled or to a new host that has the same host name. The Administration Server is running on Host A and the Managed Server is running on Host B. Host B failed for some reason and the Managed Server must be recovered to Host B. To recover a Managed Server to the same host: 1. Start Node Manager on Host B: java weblogic.WLST wls:offline startNodeManager 2. Start the Managed Server. For example: DOMAIN_HOMEbinstartManagedWebLogic.sh managed_server_name admin_url If the Managed Server starts, it connects to the Administration Server and updates its configuration changes. You do not need to take any further steps. 3. If the Managed Server fails to start or if the file system is lost, take the following steps: a. Stop Node Manager: java weblogic.WLST wls:offline stopNodeManager b. Recover the Middleware home to Host B from the backup, if required: tar -xf mw_home_backup_092010.tar c. If the Managed Server contains Oracle Portal, Oracle Reports, Oracle Forms Services, or Oracle Business Intelligence Discoverer, and the Managed Server domain directories reside outside of the Middleware home, restore the domain, in addition to the Middleware home. For example: cd Domain_Home tar -xf domain_home_backup_092010.tar Go to Step e. d. If the Managed Server does not contain the components listed in Step c, take the following steps: – Create a domain template jar file for the Administration Server running in Host A, using the pack utility. For example: pack.sh -domain=MW_HOMEuser_projectsdomainsdomain_name -template=scratchtemp.jar -template_name=test_install -template_author=myname -log=scratchlogsmy.log -managed=true Specifying the -managed=true option packs up only the Managed Servers. If you want to pack the entire domain, omit this option. – Unpack the domain template jar file in Host B, using the unpack utility: unpack.sh -template=scratchaime1ms.jar -domain=MW_HOMEuser_projectsdomainsdomain_name -log=scratchlogsnew.log -log_priority=info Recovering Your Environment 18-23 e. Ensure that the application artifacts are accessible from the Managed Server host. That is, if the application artifacts are not on the same server as the Managed Server, they must be in a location accessible by the Managed Server. f. If Node Manager is not started, start it: java weblogic.WLST wls:offline startNodeManager g. Start the Managed Server. For example: DOMAIN_HOMEbinstartManagedWebLogic.sh managed_server_name admin_url The Managed Server connects to the Administration Server and updates its configuration changes.

18.3.3.2 Recovering a Managed Server to a Different Host

In this scenario, the Administration Server is running on Host A and the Managed Server is running on Host B. Host B failed for some reason and the Managed Server must be recovered to Host C. To recover a Managed Server to a different host: 1. Recover the Middleware home for the Managed Server to Host C. tar -xf mw_home_backup_092010.tar 2. If the Managed Server contains Oracle Portal, Oracle Reports, Oracle Forms Services, or Oracle Business Intelligence Discoverer, and the Managed Server domain directories reside outside of the Middleware home, restore the domain, in addition to the Middleware home. For example: cd Domain_Home tar -xf domain_home_backup_092010.tar Go to Step 4. 3. If the Managed Server does not contain the components listed in Step 2, take the following steps: a. Create a domain template jar file from the Administration Server running in Host A, using the pack utility. For example: Note: ■ For applications that are deployed in nostage and external_stage mode, copy the application artifacts from the Administration Server host directory. ■ For applications that are deployed in stage mode, the Administration server copies the application bits to the staged directories on the Managed Server hosts. See Oracle Fusion Middleware Deploying Applications to Oracle WebLogic Server for information about deploying applications. Important: Recover the Middleware home to the same location as the original.