Você está na página 1de 6

MOUNT IMAGE STEPS FOR VIRTUALISATION

LAST UPDATE: 5-FEB-10 VERSION: 1.0 STATUS: DRAFT AUTHOR: KARTHIK MUTHU

UPDATE HISTORY
Date 4-Feb-10 4-Feb-10 5-Feb-10 Author Nelson Karthik Karthik Changes Made Provided Steps Created Document Provided steps for Remounting

REVIEW HISTORY

Date

Reviewer

Comment

Table of Contents 1 Introduction.......................................................................................................................4 2 Mount Image Steps...........................................................................................................5 3 Remount existing device...................................................................................................6

1 Introduction
This documentation summarizes mount image steps for OnDemand virtualisation requirements.

2 Mount Image Steps


1. Create empty image file on dom0 dd if=/dev/zero of=<PATH>/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/<vm>/ or /OVS/running_pool/<vm>/) Add the following to the "disk = " field in vm.cfg on dom0, choose one of the sd[x], where 'x' starts from 'c', the second disk will be 'd' : 'file:/<PATH>/newdisk.img,sd[x],w' 3. Shutdown the VM in dom0 as follows : #xm shutdown <VM name> 4. Create the VM in dom0 using vm.cfg as follows: #xm create /OVS/running_pool/<VM Name>/vm.cfg 5. mkfs on the newly created disk on domU #mke2fs /dev/sd[x] 6. Add the mount to /etc/fstab in domU.

3 Remount existing device


This section details out remounting existing device mounted as /u01 to /<sid> as a workaround. 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 /<sid> DB Tier 1. 2. 3. 4. 5. Create /<sid> under root directory in domU Bring down all the services Mount /dev/xvdb1 as /<sid> Un Mount /u01 Edit <SID>_<host>.env in $ORACLE_HOME to have /<sid> for Context file mount in place of /u01 mount 6. Source Environment file and Bring up database 7. Run Autoconfig to configure new mount Apps Tier 1. 2. 3. 4. 5. Create /<sid> under root directory in domU Bring down all the services Mount /dev/xvdb1 as /<sid> Un Mount /u01 Edit <SID>_<host>.env in $APPL_TOP to have /<sid> for Context file mount in place of /u01 mount 6. 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_ms3cust1-v1.xml 7. Edit autocofnig.sh to have new mount point /<sid> for context file location 8. Run Autoconfig to configure new mount

Você também pode gostar