Search This Blog

Showing posts with label OracleVirtualization. Show all posts
Showing posts with label OracleVirtualization. Show all posts

Thursday, March 13, 2014

OVM 3 not able to detect local disk.

Sometime it is possible that You may not able create local repositories as Local disks are not shown in OVM manager .
This is possible mainly due to following reasons
 i) Server Pool in non clustered mode.
 ii) Multipathing is disabled on server.(I know it sound little stupid but that's how its build. )

 #service multipathd status
 # to start the service
 #service multipathd start  
 #moreover allow the service to start after system reboot
 #chkconfig multipathd on  
 
For more information please refer below link.
https://community.oracle.com/thread/2369991

Thursday, January 23, 2014

Oracle VM 3 How to find the VM Server version.

Yes that old /etc/issue file will help you find the Server version details in below format.

#cat /etc/issue
Oracle VM server release 3.2.2
Hypervisor running in 64 bit mode with Hardware Virtualization support.

Network :
IF : bond0      MAC :  IP :
IF : eth0       MAC :
IF : eth1       MAC :
IF : eth2       MAC :
IF : eth3       MAC :
IF : eth4       MAC :
IF : eth5       MAC :
IF : eth6       MAC :
IF : eth7       MAC :

CPU :
cpu family      :
model           :
model name      :

Monday, November 21, 2011

OVS repositories are not mounted after server reboot.

repositories are not getting initialized after server reboot.

It has been observed in OVM 2.2.1 that after the server reboot repositories are not getting initialized.

After checking the log files i came to know that Network was unreachable during the initial ovs-agent startup.

So we have made some manual changes to make sure first the server should be in network and then the ovs-agent should be started.

Created a script called ovs-repo and saved it in /etc/init.d

# cat /etc/init.d/ovs-repo
#!/bin/sh
# chkconfig: 2345 99 02
# description: restart ovs agent
#

echo "Waiting for 30 sec's for ovs repository initialization"
sleep 60
service ovs-agent stop
service ovs-agent start

Later created soft link in /etc/rc3.d/
#ln -s /etc/init.d/ovs-repo /etc/rc3.d/S99ovs-repo

added the service in chkconfig
#chkconfig --add ovs-repo

Wednesday, November 9, 2011

Difference between HVM and PVM

A very good article explaining the difference between Hardware virtualized machine and Paravirtual machine is given below.

The article helped me understand how PV machines are faster than HV machines?

http://serverfault.com/questions/222010/difference-between-xen-pv-xen-kvm-and-hvm

Tuesday, August 16, 2011

Oracle VM manager on Oracle 11g

How to install ORACLE VM manager using Oracle 11g as database?

By default ORACLE VM manager is using oracle express edition as a database.
But it has been observed that oracle 11g is a better alternative to XE. So here is the detailed steps of installing ORACLE VM Manager on top of ORACLE 11g.

Database Version:
Oracle Database 11g software, version 11.1.0.6.0

Step 1: Backup and Uninstall existing OVM (Oracle vm manager)

First you will need to take backup of existing OVM using script stored @ sh /opt/ovs-manager-2.2/bin/backup.sh

Next you will need to uninstall the existing OVM(Oracle vm manager) using runInstaller.sh script .

#sh runInstaller.sh
Welcome to Oracle VM Manager 2.2

Please enter the choice: [1|2|3]
1. Install Oracle VM Manager
2. Uninstall Oracle VM Manager
3. Upgrade Oracle VM Manager
2

Are you sure you want to uninstall Oracle VM Manager? [y|N] (default=N) : y
Uninstalling Oracle VM Manager.

The ovs-manager package (rpm) was not previously installed.

Removing the oc4j package(rpm) ...Done

Removing the oracle-xe-univ package(rpm) ...Done
Oracle VM Manager was removed.



Remove all existing database directories and files This is necessary to avoid any error during oracle 11g installation.

# rm -rf /etc/ora*
# rm -rf /opt/oracle/OraInventory/
#rm -rf /home/oracle/oraInventory

remove ORACLE_HOME entry from oracle user bash_profile


Step 2: Install ORACLE 11g.

export display for getting GUI for installation.

oracle@export DISPLAY=:0.0

login using oracle user .run runInstaller.sh of Oracle 11g.
oracle@sh runInstaller.sh






At this stage you will need to change some kernel parameters using root login.

#vi /etc/sysctl.conf
edit according to error
and then fire sysctl -p to commit changes.

click back and next on installation screen.
You should get output as below.








You will need to run the script mentioned in above diagram using root credentials.

# sh /home/oracle/oraInventory/orainstRoot.sh
Changing permissions of /home/oracle/oraInventory to 770.
Changing groupname of /home/oracle/oraInventory to oinstall.
The execution of the script is complete
You have new mail in /var/spool/mail/root


# sh /home/oracle/app/db_1/root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /home/oracle/app/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.


Now login using oracle user.
edit bash profile file according to following entries.

export ORACLE_HOME=/home/oracle/app/db_1
export ORACLE_SID=XE
PATH=/usr/sbin:$ORACLE_HOME/bin:$PATH:$HOME/bin; export PATH

Edit listener file according to below entries.
$ cat /home/oracle/app/db_1/network/admin/listener.ora
# listener.ora Network Configuration File: /home/oracle/app/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = XE)
(ORACLE_HOME = /home/oracle/app/db_1)
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
(ADDRESS = (PROTOCOL = TCP)(HOST = IPOFTHEMACHINE)(PORT = 1522))
)
)

Now start the listener
$ lsnrctl start

LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 16-AUG-2011 13:32:06

Copyright (c) 1991, 2007, Oracle. All rights reserved.

Starting /home/oracle/app/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.1.0.6.0 - Production
System parameter file is /home/oracle/app/db_1/network/admin/listener.ora
Log messages written to /home/oracle/app/db_1/log/diag/tnslsnr/HOSTNAME/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1522)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=IPADDRESS)(PORT=1522)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.1.0.6.0 - Production
Start Date 16-AUG-2011 13:32:07
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/app/db_1/network/admin/listener.ora
Listener Log File /home/oracle/app/db_1/log/diag/tnslsnr/HOSTNAME/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1522)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=IPADDRESS)(PORT=1522)))
Services Summary...
Service "XE" has 1 instance(s).
Instance "XE", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

Now check the status of database it should be in READ WRITE mode otherwise you will have to make it up.

[oracle@~]$ sqlplus /nolog

SQL*Plus: Release 11.1.0.6.0 - Production on Tue Aug 16 13:32:19 2011

Copyright (c) 1982, 2007, Oracle. All rights reserved.

SQL> connect sys as sysdba
Enter password:
Connected.
SQL> select open_mode from v$database;

OPEN_MODE
----------
READ WRITE



Step 3: Install OVM.

# sh runInstaller.sh
Welcome to Oracle VM Manager 2.2

Please enter the choice: [1|2|3]
1. Install Oracle VM Manager
2. Uninstall Oracle VM Manager
3. Upgrade Oracle VM Manager
1

Starting Oracle VM Manager 2.2 installation ...

Do you want to install a new database or use an existing one? [1|2]
1. Install a new Oracle XE database on localhost
2. Use an existing Oracle database in my network
2
Please enter the database hostname or ip address(Default: HOSTNAME):IPADDRESS
Specify a port that will be used for the database listener [1521]:1522
Please specify the database SID(Default: orcl):XE

Please enter the password for database account 'SYS':

Provisioning Oracle instant client ...

Checking the availability of the database ...

Set default database schema to 'OVS'.
Please enter the password for account 'OVS':
Confirm the password:

Please enter the default tablespace for user OVS(DEFAULT: USERS):
Checking the availability of the tablespace USERS ...

Creating the Oracle VM Manager database schema ...Done

Installing the ovs-manager package (rpm) ...
Done

Installing the oc4j package (rpm) ...
Done

Please enter the password for account 'oc4jadmin':
Confirm the password:

Starting OC4J ... Done.
To access the OC4J Home Page and change the password go to http://127.0.0.1:8888
/em

Deploying Oracle VM Manager application to OC4J container.
Creating connection pool ... Done
Creating data source ... Done
Deploying application help ... Done
Deploying application ... Done

Please enter the keystore password for the Web Service:
Confirm the password:

Setting keystore password for Web Service ... Done
Do you want to use HTTPS access for Oracle VM Manager (Y|n)?n

Configuring OC4J to use HTTP ... Done
Stopping OC4J ... Done
Starting OC4J ... Done

Please enter the password for the default account 'admin':
Confirm the password:

Configuring SMTP server ...
Please enter the outgoing SMTP mail server(e.g. - mail.abc.com, mail.abc.com:25): mailserver.domain.com
Mail server checking, may need some time, please wait ...
Setting the SMTP server to mailserver.domain.com ...
Done

Please enter an e-mail address for account 'admin': abc@domain.com
Confirm the e-mail address : abc@domain.com
Unable to send an email to 'abc@domain.com', would you like to change the email address(Y|n)?n
Updating e-mail address for account 'admin' to 'abc@domain.com' ...
Done

The console feature is not enabled by default.
For detailed setup, refer to Oracle VM Manager User's Guide

Installation of Oracle VM Manager completed successfully.

To access the Oracle VM Manager 2.2 home page go to:
http://IPADDRESS:8888/OVS

To access the Oracle VM Manager web services WSDL page go to:
http://IPADDRESS:8888/OVSWS/LifecycleService.wsdl
http://IPADDRESS:8888/OVSWS/ResourceService.wsdl
http://IPADDRESS:8888/OVSWS/PluginService.wsdl
http://IPADDRESS:8888/OVSWS/ServerPoolService.wsdl
http://IPADDRESS:8888/OVSWS/VirtualMachineService.wsdl
http://IPADDRESS:8888/OVSWS/AdminService.wsdl

To access the Oracle VM Manager help page go to:
http://IPADDRESS:8888/help/help

Tuesday, May 24, 2011

How to find VM guests having Network issue.

This has helped me for finding machines having network issues.

Such machines can then be tracked and further analyzed to find the root cause behind the network issue.

First You will need to login to your VM server.
Issue following command.
watch -n 1 -d netstat -i
Now observe Parameters in Bold.
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
If you find any of above (In bold only ) parameter value to be non 0 and continuously increasing Then this might be an indication of network problem in your vm guest.
Below is typical example of vm machine having network problem.
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
vif22.0 1500 0 0 0 0 0 0 0 39072827 0 BMRU
vif122.0 1500 0 0 0 0 0 0 0 37392429 0 BMRU
vif276.0 1500 0 0 0 0 0 0 0 22717649 0 BMRU

As you can observe Packet are getting dropped while transmitting. So all you need to do is
find the associated vm guests to that virtual interface.
This can be done using following command.

ps -ef | grep tap122.0 (Notice here vif is replaced with tap).
output will contain the name of vm guest having network issue.


You may use following script to find the vm guests.

#!/bin/bash

FIND=`netstat -i | grep vif* | awk '{ if ($10 > 100) print $1":"$10}'`

if [ -z "$FIND" ]
then
echo "No Packet drop (More than 100)"
exit
fi

for I in $FIND
do
Search=`echo $I |awk -F ":" '{print $1}' |awk -F "vif" '{print "tap"$2}'`
if [ -z "$FIND" ]
then
echo "No Interface Found"
exit
fi
ps -ef | grep $Search | grep -v grep | awk '{print $12}'
done

Monday, May 9, 2011

How to find VNC port for Guest machines running on Oracle VM.

Use below script for finding VNC port of all Guest Machines running on the Oracle VM server.

xm list > temp
y=`xm list | wc -l`

z=`expr $y - 2`

while [ $y -gt 1 ]
do
x=`awk -F" " '{print $1}' temp | sed -n "${y}p"`
echo -e '\E[32m'
y=`expr $y - 1`
xm list $x -l |grep 0.0:|awk -v Host=$x -F[:\)] '{print "Vnc Port for " Host " :" $2 }'
echo -e '\E[37m'
done

Monday, April 18, 2011

How to find Old powered off machines in oracle vm .

With VM environment consisting of more than 500 virtual machines,You may find this helpful .

It might not be possible to observe each and every virtual machines to find instances of powered off machines since long time .

A little bit of scripting will help you find such machines.

Create a file called VM_Shutdown_Count.sh
Should be run specifying number of days.
For example.
#VM_Shutdown_Count.sh 30
Will list all the vm machines powered off since 30 days.i.e 1 Month.

Arg=$1

if [ -z $Arg ]
then
echo "Please Enter Argument"
exit
fi



cat `find /var/ovs/mount/ -name vm.cfg` | grep "disk" | awk -F ":" '{print $2}'| awk -F "," '{print $1}' |grep running_pool| grep -v "^$" > /tmp/file1.txt

find /var/ovs/mount/ -name *.img -mtime +$Arg > /tmp/file2.txt

rm -rf /tmp/final.txt
while read line
do
cat /tmp/file2.txt | grep $line >> /tmp/final.txt
done < /tmp/file1.txt

while read line
do
ls -ltrh $line
done < /tmp/final.txt

Thursday, April 7, 2011

How to find crashed,blue dumped machines in Oracle VM.

With VM environment consisting of more than 500 virtual machines,You may find this helpful .

It might not be possible to observe each and every virtual machines to find instances of crashed machines (Such as Hanged,Blue dumped Machines).

Well with little bit of observation you can find such machines .
Below script helped me find out more than 10-15 crashed machines.
The trick is simple : You need to get the number of running machines and then compare their harddisk's modified date (System.img file specified in vm.cfg file) against Current date.
If you found any machines having Harddisk not modified on current date and still its running You are pretty sure it has some problem.

Executed below script on each VM machine and observed the output.


First of List all the running machines and store it in file called machine

#!/bin/bash

xm list | awk '{print $1}' > machine

while read line
do
#ls -ltr `find /var/ovs/mount/ -name $line` >> log
#find /var/ovs/mount/ -type f -name $line | sed "s#^.#$(pwd)#" > log
find `find /var/ovs/mount/ -name $line -type d` -name *.img -type f >> log
done < machine


while read line
do
ls -ltr $line
done < log

Monday, March 14, 2011

How to reduce size of Virtual image (.img) In OVM?

I had created a template of win2k3 machine having size of 80 GB (C drive=30GB,D drive =50GB).

But To cater a request for new VM Machine having size of 1 TB (C drive=30GB, D= 1 TB-30GB)
I had to come up with something .
So i created a machine from template of win2k3(above mentioned one).
Then i deleted d drive partition of 50 GB using Disk management.

Then i shutdown the machine.
Logged in to Server hosting VM guests.

Ran following command
#dd if=/OVS/running_pool/vm_machine_name/System.img of=/OVS/running_pool/vm_machine_name/System1.img bs=1024 count=31457280

Which has reduced the size of System.img to 30 gb.
Modified vm.cfg to include System1.img Instead of System.img.

Started the VM machine.
(Note:It is not advised to do as most of the time you end up getting blue dump for window machines.Not checked on linux machine.)

Wednesday, February 9, 2011

How to change memory for ORACLE VM Server?

Recommended memory size :512 MB.
You can change it by modifying dom0_mem kernel parameter in

/boot/grub/menu.lst

Sunday, October 17, 2010

How Create link for additional local hard drives

This is applicable where you have a server with more than 1 hard disk.

The default /OVS is created using manager.
Now its time you have to create link for /OVS1 and /OVS2 (Considering you are having 3 local hard disks and you have created /OVS /OVS1 /OVS2 partitions with o2fs file system during installation).


First check the repositories.
# /opt/ovs-agent-latest/utils/repos.py -l
[ ] 1302f1d0-0617-45f1-b214-513594cd11f1 => /dev/sdc1
[ * ] a7d5463b-288f-4c14-b28a-5e999c987a29 => /dev/sda5
[ ] 0c6e6bf5-406e-4775-92bd-d2e8b3ce2af5 => /dev/sdb1

(Dont proceed if you are not getting your repositories listed
Please reffer following post for more details. How to add a new repository to Oracle Virtual Server.
)

In above output its clear that the root repository is
a7d5463b-288f-4c14-b28a-5e999c987a29 => /dev/sda5
If this get full then the others will be utilized.


Then run df -h command to validate them.
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 39G 948M 36G 3% /
/dev/sda1 99M 45M 49M 48% /boot
tmpfs 277M 0 277M 0% /dev/shm
/dev/sda5 888G 84G 804G 10% /var/ovs/mount/A7D5463B288F4C14B28A5E999C987A29
/dev/sdc1 932G 299M 932G 1% /var/ovs/mount/1302F1D0061745F1B214513594CD11F1
/dev/sdb1 932G 299M 932G 1% /var/ovs/mount/0C6E6BF5406E477592BDD2E8B3CE2AF5

As you can see the current utilized one is
/dev/sda5 888G 84G 804G 10% /var/ovs/mount/A7D5463B288F4C14B28A5E999C987A29

Just go to / and type
# ls -ltr | grep ^l
lrwxrwxrwx 1 root root 47 Oct 15 14:51 OVS -> /var/ovs/mount/A7D5463B288F4C14B28A5E999C987A29

Only one file will be returned.

Make sure there is no /OVS1 and /OVS2 folders (if exists then delete them).
Now make a link for /OVS1 and /OVS2

#ln -s /var/ovs/mount/1302F1D0061745F1B214513594CD11F1 /OVS1
# ln -s /var/ovs/mount/0C6E6BF5406E477592BDD2E8B3CE2AF5 /OVS2

Now you should be able to see 3 softlinks in / directory.
# ls -ltr | grep ^l
lrwxrwxrwx 1 root root 47 Oct 15 14:51 OVS -> /var/ovs/mount/A7D5463B288F4C14B28A5E999C987A29
lrwxrwxrwx 1 root root 47 Oct 18 10:04 OVS1 -> /var/ovs/mount/1302F1D0061745F1B214513594CD11F1
lrwxrwxrwx 1 root root 47 Oct 18 10:11 OVS2 -> /var/ovs/mount/0C6E6BF5406E477592BDD2E8B3CE2AF5

Monday, July 12, 2010

Script to monitor performance of Oracle VM Server.

Most of the time the load average of VM server indicates the future disaster that might occur in the vm environment.

Its always recommended to implement precautionary major to avoid such situation.

xentop - display real-time information about an xVM system and domains
SYNOPSIS
xentop [-h] [-V] [-d=seconds] [-n] [-r] [-v] [-b] [-i=iterations]
DESCRIPTION
The xentop command displays information about the Solaris xVM system
and domains in a continually-updating way. It is analogous to the BSD
UNIX top command.
OPTIONS
The following options are supported:
. . .
-b, --batch
Output data to stdout in batch mode.
-i, --iterations=iterations
Maximum number of iterations xentop should display before terminat-ing.

Executing
xentop --batch --iteration=1
giving me 0% cpu utilization.

There fore executing following command which somehow giving me acceptable values for cpu utilization.
xentop -d=10 --batch --iteration=4


I m thinking of getting 3 4 entries in such a way and calculate the average.
One more issue is Hostname is displayed only 10 character long.

any way i will post the end result in some time.




Script:

#!/bin/bash

fn_main()
{
rm -rf /tmp/Load_Average_Check.log > /dev/null 2>&1
echo "Target Name = $1" >> /tmp/Load_Average_Check.log
echo "Occurred At = `date` " >> /tmp/Load_Average_Check.log
echo "Message = Load Average on $1 is $2 & has crossed the Critical threshold " >> /tmp/Load_Average_Check.log
echo "Metric = Load Average on $1 " >> /tmp/Load_Average_Check.log
echo "Metric value = $2 " >> /tmp/Load_Average_Check.log
echo "Severity = Critical " >> /tmp/Load_Average_Check.log
echo "Acknowledged = No " >> /tmp/Load_Average_Check.log
echo >> /tmp/Load_Average_Check.log

echo "*******************************************************" >> /tmp/Load_Average_Check.log
################################################################################################################
echo "High Cpu Utilisation (%)in $1" >> /tmp/Load_Average_Check.log
#ITERATION indicates the number of time vm servers are checked for cpu utilization.
ITERATION=4
ssh -Tqn root@$1 xentop -b -d 2 -i $ITERATION > xentopresult.txt
#generate hostname file to be concatenated with monitoring log.
while [ $ITERATION -gt 0 ]
do
ssh -Tqn root@$1 xm list | awk '{print $1}' >> mno.txt
ITERATION=`expr $ITERATION - 1`
done

#merge hostname file to output.
paste mno.txt xentopresult.txt > final.txt
#To print Top 10 instances of maximum cpu utilization.
cat final.txt |grep -vE "NAME"| awk '{print $1,$5}'| sort -nr -k 2 | head -13 >> /tmp/Load_Average_Check.log
cat final.txt |grep -vE "NAME|Domain-0"| awk '{print $1,$5}'| sort -nr -k 2 | head -10 > vmwithguest.txt
#echo "Content of vmwithguest."
#cat vmwithguest.txt
echo "*******************************************************" >> /tmp/Load_Average_Check.log

cat vmwithguest.txt | awk '{print $1}'| sort -u > check.txt
#echo "Content after sorting vmwithguest"
#cat check.txt

while read line
do
MACHINENAME1=`echo $line | awk '{print $1}'`
match=0
CPU=0
CPUTOTAL=0
CPUAVERAGE=0
while read line
do
MACHINENAME2=`echo $line | awk '{print $1}'`
if [ "$MACHINENAME1" == "$MACHINENAME2" ]
then
match=`expr $match + 1`
CPU=`echo $line | awk '{print $2}' |awk -F "." '{print $1}'`
CPUTOTAL=`expr $CPU + $CPUTOTAL`
fi
done < cpuaverage="`expr">> /tmp/Load_Average_Check.log
echo " " >> /tmp/Load_Average_Check.log
fi
done <>> /tmp/Load_Average_Check.log
echo "NOTE: Make sure Load Average is always below 4% for better Performance" >> /tmp/Load_Average_Check.log

mail -s "Load Average on $1 is $2" Username@xyz.com < /tmp/Load_Average_Check.log
mail -s "Load Average on $1 is $2" Username2@xyz.com < /tmp/Load_Average_Check.log
mail -s "Load Average on $1 is $2" Username3@xyz.com < /tmp/Load_Average_Check.log
}


while read line
do
#Calculate Load on remote machine.
LOAD=`ssh -T -q -n $line w | grep average | awk -F "e:" '{print $2}' | awk -F "," '{print $1}' | awk -F "." '{print $1}'`
if [ $LOAD -gt 7 ]
then
fn_main "$line" "$LOAD"
fi
done < SERVERNAMES

Monday, June 21, 2010

How to add a new repository to Oracle Virtual Server.

Mounting NFS Share as repository.
To make sure which repository is currently exist in the server .
run
#/opt/ovs-agent-latest/utils/repos.py -l
typically for the first run it won't list anything.

Create a share on storage then add the share as repository.
#/opt/ovs-agent-latest/utils/repos.py -n 10.180.36.110:/export/LAB

You should get something like this.
#/opt/ovs-agent-latest/utils/repos.py -l
c9a30a22-f0c5-435f-8f31-376e95f54107 => 10.180.36.110:/export/LAB

To make the repository as root .
run
#/opt/ovs-agent-latest/utils/repos.py -r 86bacbb6-99a4-48e6-b2f9-89598943e16e
[ * ] c9a30a22-f0c5-435f-8f31-376e95f54107 => 10.180.36.110:/export/LAB

(here [ * ] indicates its a root )

For more detailed information on different options available with repos.py
run
#/opt/ovs-agent-latest/utils/repos.py

Mounting Local shares as repositories.

#/opt/ovs-agent-2.3/utils/repos.py -n /dev/sda5
#/opt/ovs-agent-2.3/utils/repos.py -n /dev/sdb1
#/opt/ovs-agent-2.3/utils/repos.py -n /dev/sdc1
List the repositories.
#/opt/ovs-agent-2.3/utils/repos.py -l
Make one as root repository.
#/opt/ovs-agent-2.3/utils/repos.py -r a7d5463b-288f-4c14-b28a-5e999c987a29
More on this coming soon.