You are here

Oracle VM Manager Restore Roadmap

Oracle VM Manager Restore Roadmap

Reset the Oracle VM Manager Database Repository (Oracle VM Releases 3.3 and above)

1) Oracle VM Manager Hosts: As root, access the Oracle VM Manager host, and stop the ovmm and ovmcli services:
# service ovmm stop
# service ovmcli stop
2) Oracle VM Manager host: Reset the Oracle VM Manager Database Repository. As root, access the Oracle VM Manager host, and drop the Oracle VM Manager Database Repository:
# cd /u01/app/oracle/ovm-manager-3/bin/
# sh ./ovm_upgrade.sh --deletedb --dbuser=ovs --dbpass=PASSWORD --dbhost=localhost --dbport=49500 --dbsid=ovs
Note: Substitute PASSWORD with the admin password. 
3) Oracle VM Manager Hosts: As root, access the Oracle VM Manager host, and start the ovmm and ovmcli services:
# service ovmm start
Starting Oracle VM Manager [ OK ]
# service ovmcli start
Starting Oracle VM Manager CLI [ OK ]
4)  Oracle VM Manager Hosts: As root, access the Oracle VM Manager host, and regenerate the client certificates:
# /u01/app/oracle/ovm-manager-3/bin/configure_client_cert_login.sh
Note: You will be prompted for the Oracle VM Manager admin user password.
5) Oracle VM Manager GUI: From the Oracle VM Manager Servers and VMs page, discover "one" Oracle VM Server. 
6) Oracle VM Manager GUI: From the Oracle VM Manager Repositories page, refresh each storage repositoriy, i.e. right click each repository, and click refresh.
7) Oracle VM Manager GUI: From the Servers and VMs page, rediscover each Oracle VM Server.

Reset the Oracle VM Manager Database Repository (Up to Oracle VM Releases 3.2):

1) Oracle VM Manager host: Reset the Oracle VM Manager Database Repository. As root, access the Oracle VM Manager host, and drop the Oracle VM Manager Database Repository:
MySQL:
# /u01/app/oracle/ovm-manager-3/bin/ovm_upgrade.sh --deletedb --dbhost=localhost --dbtype=MySQL --dbport=49500 --dbsid=ovs --dbuser=ovs --dbpass=PASSWORD
Note: Substitute PASSWORD with the admin password. 
SE or EE Database:
# /u01/app/oracle/ovm-manager-3/bin/ovm_upgrade.sh --dbhost=localhost --dbport=1521 --dbsid=MYSID --dbuser=ovs --dbpass=PASSWORD --deletedb
Note: Substitute localhost with the hostname, i.e. localhost or the host name of the DB server, MYSID with the Database SID, PASSWORD with the Database SYS password.
2) Oracle VM Manager Hosts: As root, access the Oracle VM Manager host, and stop and start the ovmm service:
# service ovmm stop && service ovmm start
3) Oracle VM Manager GUI: From the Oracle VM Manager Servers and VMs page, discover the Oracle VM Servers. 
Note: Up to Oracle VM Release 3.2.7 discover all the Oracle VM Servers. Oracle VM Release 3.2.8 only discover one Oracle VM Server.
4) Oracle VM Manager GUI: From the Oracle VM Manager Repositories page, refresh each storage repositoriy, i.e. right click each repository, and click refresh.
5) Oracle VM Manager GUI: From the Servers and VMs page, rediscover each Oracle VM Server.
6) Oracle VM Manager GUI: From the Networking => Virtual NIC page, create new MAC addresses. Only the MAC addresses in use will be rediscovered. 

Install Oracle VM Manager using the UUID restore switch (Up to Oracle VM Relese 3.3):

  1. Oracle VM Manager host, or an Oracle VM Server pool member: Get the Oracle VM manager UUID. 
The Oracle VM Manager UUID is listed in the following three files:
  • On the Oracle VM Manager host, the “.config ” file in the Oracle VM Manager home /u01/app/oracle/ovm-manager-3/
  • On the Oracle VM Manager host, the /etc/sysconfig/ovmm file
  • The .ovspoolfs file in the pool file system (in the quorum disk), i.e. /poolfsmnt/UUID/.ovspoolfs
The next example shows the content of the .config file on the Oracle VM Manager host. The the Oracle VM Manager UUID in bold.
# cat /u01/app/oracle/ovm-manager-3/.config  
DBHOST=localhost
SID=orcl
LSNR=1521
APEX=None
OVSSCHEMA=ovs
WLSADMIN=weblogic
OVSADMIN=admin
COREPORT=54321
UUID=0004fb00000100009edfaa0f93184f44
BUILDID=3.0.3.126
 
The next example shows the content of the ovmm file with the Oracle VM Manager UUID in bold.
# cat /etc/sysconfig/ovmm
RUN_OVMM=YES
JVM_MEMORY_MAX=4096m
JVM_MAX_PERM=512m
DBBACKUP=/u01/app/oracle/mysql/dbbackup
DBBACKUP_CMD=/opt/mysql/meb-3.8/bin/mysqlbackup
UUID=0004fb00000100009edfaa0f93184f44
 
The next example shows the content of the .ovspoolfs file with the Oracle VM Manager UUID in bold.
# cat .ovspoolfs
OVS_REPO_UUID=0004fb0000030000554308a6997a6b2f
OVS_REPO_MGR_UUID=0004fb00000100009edfaa0f93184f44
OVS_REPO_VERSION=3.0
  1. Oracle VM Manager host: Mount the Oracle VM Manager ISO file. 
  2. Oracle VM Manager host: If Oracle VM Manager is allready installed, completely uninstall each Oracle VM Manager componient using the runInstaller script.
  3. Oracle VM Manager host: Install Oracle VM Manager using the runInstaller script with the UUID restore switch. For example, as root ./runInstaller.sh -u UUID (replace with UUID with your Oracle VM manager UUID)
  4. Oracle VM Manager GUI: From the Oracle VM Manager Servers and VMs page, discover each Oracle VM Server. 
  5. Oracle VM Manager GUI: From the Oracle VM Manager Repositories page, refresh each storage repositoriy, i.e. right click each repository, and click refresh.
  6. Oracle VM Manager GUI: From the Servers and VMs page, rediscover each Oracle VM Server.
  7. Oracle VM Manager GUI: From the Networking => Virtual NIC page, create new MAC addresses. Only the MAC addresses in use will be rediscovered. 
 

Uninstall and Reinstall Oracle VM Manager:

1) Oracle VM Manager Hosts: As root, access the Oracle VM Manager host, and stop the ovmm service, and with Oracle VM Release 3.3 and above, also stop the ovmcli service:
# service ovmm stop
# service ovmcli stop (Oracle VM Release 3.3 and above)
 
*The step is ONLY for Production and Custom Installations
Oracle Database host: Remove the Oracle VM Manager database repository schema (Only with Production and Custom Installations).
The first step is to stop Oracle VM Manager, i.e. the ovmm service. As root type "service ovmm stop" to stop Oracle VM Manager. Next drop the OVS user from the Oracle VM Manager database repository. The next example shows the steps to drop the OVS user from the Oracle VM Manager database repository using sqlplus. The following sqlplus example uses the "oracle" user account with the environment variables set in the ~/.bash_profile file. If the account you are using does not have the environment variables set, and your unable to run sqlplus, please engage your DBA for assistance.
# sqlplus / AS SYSDBA
SQL> drop user ovs cascade;

User dropped.

SQL> 
Note: Only for Oracle VM 3.2.x and above, it is also necessary to delete the OVMM_PROFILE. Fro example, with the OVMM_PROFILE the Oracle VM installer throws the "ORA-02379: profile OVMM_PROFILE already exists" error and prompty fails. The next example shows how to drop the OVMM_PROFILE.

SQL> drop profile OVMM_PROFILE cascade;

Profile dropped.

SQL>
2) Oracle VM Manager host: Mount the Oracle VM Manager ISO file. 
3) Oracle VM Manager host: Uninstall all of the Oracle VM Manager componients.
4) Oracle VM Manager host: Install Oracle VM Manager. 
5) Each Oracle VM Server: Clean the previously used Oracle VM Server's cluster data.
# service ovs-agent stop
# rm -fr /etc/ovs-agent/db/*
# rm -fr /etc/ocfs2/cluster.*
# rm -fr /etc/sysconfig/o2cb
# service ovs-agent start
# /etc/init.d/iscsi stop # iscsi only
# rm -fr /var/lib/iscsi  # iscsi only
# reboot
6) Oracle VM Manager GUI: Login to OracleVM Manager and create a server pool by completing the following tasks:
  • Discover the Oracle VM Servers
  • Setup the Oracle VM Server's networking
  • Setup the Networking for the server pool 
  • Setup NTP
  • Setup a YUM server
  • Create Tags (optional)
  • Register a file server or a storage array
  • Create a storage repository to host virtual machine resources
  • Create a server pool
Download PDF Now!