Repair Oracle VM Manager
Issue Summary:
Previously the Oracle VM Manager v3.4 was installed on a Desktop with CentOS as the Operating System.
Due to HDD crash, the OVM Manager system was rendered unoperational hence there was no control about managing & monitoring of the Oracle VMs running on the OVS Hypervisors.
Resolution and recovery:
Logged to one of the OVS Hypervisor Server - myovs4 (172.xx.xx.4) via SSH using root credentials.
Changed to /etc/ovs-agent/db folder & run ovs-agent-db dump_db server
It will output the details as -
[root@myovs4 db]# ovs-agent-db dump_db server
{'cluster_state': 'DLM_Ready',
'clustered': True,
'fs_stat_uuid_list': ['0004fb0000050000c7804237916f0bde'],
'is_master': False,
'manager_event_url':
'https://172.xx.xx.8:7002/ovm/core/wsapi/rest/internal/Server/6c:7b:a9:3d:ff:f2:11:e6:83:eb:00:0a:f7:af:ee:ac/Event',
'manager_ip': '172.xx.xx.8',
'manager_statistic_url':
'https://172.xx.xx.8:7002/ovm/core/wsapi/rest/internal/Server/6c:7b:a9:3d:ff:f2:11:e6:83:eb:00:0a:f7:af:ee:ac/Statistic',
'manager_uuid': '0004fb0073710091523b34b44ccf18c60',
'node_number': 1,
'pool_alias': 'My_OVM_POOL',
'pool_member_ip_list': ['172.xx.xx.1', '172.xx.xx.2', '172.xx.xx.3'],
'pool_uuid': '0004fb0584020972442d8bd135960272',
'poolfs_nfsbase_uuid': '',
'poolfs_target': '/dev/mapper/980050763008082278000000000000001',
'poolfs_type': 'lun',
'poolfs_uuid': '0004fb000005000077785df2d14a43eb',
'registered_hostname': 'myovs4.example.com',
'registered_ip': '172.xx.xx.4',
'roles': set(['utility', 'xen'])}
[root@myovs4 db]#
Noted the field - 'manager_uuid': '0004fb0073710091523b34b44ccf18c60'
Now on a separate VM or Physical system with CentOS as Operating System we will install the OVM Manager-
To install Oracle VM Manager from a hard drive, locate the folder that contains the ISO file. Mount the ISO file to an existing
directory using the following commands:
# mkdir mount-point
# mount -o loop OracleVM-Manager-version.iso mount-point
Where mount-point refers to the directory on which you mount the ISO file. For example:
# mkdir /OVMCD
# mount -o loop OracleVM-Manager-3.0.x.iso /OVMCD
You can find all the mounted files under the directory /OVMCD.
3) To install Oracle VM Manager, enter the mount point you created in for example, /OVMCD and start
the installation with the runInstaller script as the root user:
# cd /OVMCD
# ./createOracle.sh (to create the environment for installation of Oracle VM Manager)
# ./runInstaller.sh --uuid 0004fb000001000023b34b44ccf18c60 (the actual OVM Installer)
4) The installer will install Java, MySQL Database, Oracle Web Logic Server, Oracle VM Manager Application.
It will ask you to set the password for “Admin” user
Once installed, Oracle VM Manager UI can be accessed by the URL - https://ovmanager.example.com:7002/ovm/console
Then we logged into the Admin Console, discovered & added existing OVM Host Servers -
172.xx.xx.1 myovs1.example.com
172.xx.xx.2 myovs2.example.com
172.xx.xx.3 myovs3.example.com
172.xx.xx.4 myovs4.example.com
After that we were able to see all the VM and Repository from the console.
After discovering the OVS Hypervisor Servers, you will see that the VMs are showing as "orphaned".
To mitigate the issue, you need to follow the steps -
1. Right-click on the Oracle VM Server and “Rescan Physical Disks” (If Repositories are on NFS file Server, you may skip this step):
'Servers and VMs'-> Server Pools->Oracle VM server->Perspective(Physical Disks) ->Click 'Rescan Physical Disks'
2. Once it's completed, right-click on the Oracle VM Server and “Rediscover Server”
'Servers and VMs'-> Server Pools->Oracle VM server->Rediscover Servers
3. Once it's completed, go to "Repositories" tab and refresh the repository
'Repositories'->Select the repository which vm running on ->Refresh

Comments
Post a Comment