7/29/2019 Mount Image File
1/6
MOUNTIMAGE STEPSFOR
VIRTUALISATION
LAST UPDATE: 5-FEB-10
VERSION: 1.0
STATUS: DRAFT
AUTHOR: KARTHIKMUTHU
7/29/2019 Mount Image File
2/6
UPDATE HISTORY
REVIEW HISTORY
Date Author Changes Made
4-Feb-10 Nelson Provided Steps4-Feb-10 Karthik Created Document
5-Feb-10 Karthik Provided steps for Remounting
Date Reviewer Comment
7/29/2019 Mount Image File
3/6
Table of Contents
1 Introduction.......................................................................................................................42 Mount Image Steps...........................................................................................................53 Remount existing device...................................................................................................6
7/29/2019 Mount Image File
4/6
1 Introduction
This documentation summarizes mount image steps for OnDemand virtualisationrequirements.
7/29/2019 Mount Image File
5/6
2 Mount Image Steps
1. Create empty image file on dom0
dd if=/dev/zero of=/newdisk.img bs=m count=n(n * m is the size of the disk in byte, m can be specified as 1M )
2. Change vm.cfg on dom0 (under /xen// or /OVS/running_pool//)
Add the following to the "disk = " field in vm.cfg on dom0, choose one of thesd[x], where 'x' starts from 'c', the second disk will be 'd' :
'file://newdisk.img,sd[x],w'3. Shutdown the VM in dom0 as follows :
#xm shutdown
4. Create the VM in dom0 using vm.cfg as follows:#xm create /OVS/running_pool//vm.cfg
5. mkfs on the newly created disk on domU#mke2fs /dev/sd[x]
6. Add the mount to /etc/fstab in domU.
7/29/2019 Mount Image File
6/6
3 Remount existing device
This section details out remounting existing device mounted as /u01 to / as aworkaround.
NOTE:
You could remount part of the file hierarchy somewhere else. The call is#mount --bind olddir newdir
After this call the same contents is accessible in two places.
Eg:#mount --bind /u01 /
DB Tier
1. Create / under root directory in domU2. Bring down all the services3. Mount /dev/xvdb1 as /4. Un Mount /u015. Edit _.env in $ORACLE_HOME to have / for Context file
mount in place of /u01 mount6. Source Environment file and Bring up database7. Run Autoconfig to configure new mount
Apps Tier
1. Create / under root directory in domU2. Bring down all the services3. Mount /dev/xvdb1 as /4. Un Mount /u015. Edit _.env in $APPL_TOP to have / for Context file mount in
place of /u01 mount6. Source Environment file and verify environment variable CONTEXT_FILE
For eg : echo $CONTEXT_FILE
/tabcdi/E-BIZ/12.1.1/VIS/inst/apps/VIS_ms3-cust1-v1/appl/admin/VIS_ms3-cust1-v1.xml
7. Edit autocofnig.sh to have new mount point / for context file location8. Run Autoconfig to configure new mount