|  | Sun System Handbook - ISO 4.1 October 2012 Internal/Partner Edition | ||
| 
 |  | ||
|  | ||||||||||||
| 
 Solution Type Technical Instruction Sure Solution 1457717.1 : Where to install your Application on the Oracle Database Appliance (ODA) 
 
 Managing space for applications on Oracle Database Appliance. This note will provide a location where application should be installed on the Oracle Database Appliance Applies to:Oracle Database Appliance - Version Not Applicable to Not Applicable [Release N/A]Oracle Appliance Kit - Version 2.1.0.1 and later Linux x86-64 1. Applications should not be installed on the an ODA internal root file System. 2. All applications must be installed in a separate volume, mounted through a file system mount point /myapp1. 2a. The new volume name can be changed to suit your needs, by replacing /myapp1 with your selected name for the file system's mount point. GoalTo create a location on the Oracle Database Appliance where other application can be installed. FixWith the support of applications on ODA, there is a need to separate the application installation from the ODA installation. This note describes how to achieve this on existing ODA installations, by using some free space on the system disk. A volume needs to be created which can then be formatted as an ext3 filesystem for the application installation. Applications are to be installed in the /myapp1 directory, created using a new volume on volgroupsys in the Oracle Database Appliance. To create a new logical volume follow these 4 steps:
 1.) Check space is available. Note: If other applications are installed or the free space has been used for something else; DO NOT install your application if space is not available. # pvscan PV /dev/md1 VG VolGroupSys lvm2 [465.66 GB / 251.66 GB free] Total: 1 [465.66 GB] / in use: 1 [465.66 GB] / in no VG: 0 [0 ] Note: On the Oracle Database Appliance (ODA) the volgroupsys volume has about 250 GB free. 
 2.) Use the vgdisplay command to display attributes of volume groups # vgdisplay In the above output note 8053 is the free number of physical extents for the /dev/VolGroupSys/volgroupapp volume group. This represents 251.66 GB of available space. Each Physical Extent is 32 MB. 
 3.) Use the lvcreate command to Create a Logical Volume # lvcreate -L 250G  -n volgroupapp VolGroupSys Note: The above command creates a logical volume, 250G in size. Looking at the volume that was just created with the lvcreate command: (See Below) # lvdisplay /dev/VolGroupSys/volgroupapp --- Logical volume --- In the above output note that a logical volume size of 250 GB is created. 3.) Create a ext3 journaled filesystem on the logical volumes # mkfs.ext3 /dev/VolGroupSys/volgroupapp mke2fs 1.39 (29-May-2006) Writing inode tables: done This filesystem will be automatically checked every 21 mounts or Note: A journaling file system is a file system that keeps track of the changes that will be made. 
 4.) Mount File Systems Automatically with /etc/fstab Mount the new filesystem and add the entry to fstab to ensure reboots mount the filesystem automatically. # mkdir /myapp1 
 You must modify the /etc/fstab and add the following line to automacally mount the volume when the system is rebooted. /dev/VolGroupSys/volgroupapp /myapp1 ext3 defaults 1 2 After completing the above steps the logical volume is ready for use. 
 
 Addition Steps to Remove, Reduce, or Extend the storageRemoving Storage Volume The process of removing storage from a ODA Enterprise Linux system 
 /dev/VolGroupSys/volgroupapp /myapp1 ext3 defaults 1 2 
 # umount /myapp1 Note: A logical volume must be closed before it can be removed. If you see the following message a user is currently in or using the /myapp1 directory or a process still has a file open. You can use the lsof command to identify the process(es). umount: /myapp1: device is busy 
 Use the UNIX rm command 
 # lvremove /dev/VolGroupSys/volgroupapp 
 To Reduce logical volume sizeLogical volumes may be resized dynamically while preserving the data on the volume. The process of reducing the size of the logical volume involves following 3 steps 
 Warning: You should be careful when reducing a logical volume's size, because data in the reduced part is lost.  It is recommended to backup the file system prior to reducing the logical volume size. 
 # umount /myapp1 Note: This may involve stopping processes, stopping logins or even switching to single-user mode. 
 # e2fsck –f /dev/VolGroupSys/volgroupapp e2fsck 1.39 (29-May-2006) 
 # resize2fs -p /dev/VolGroupSys/volgroupapp 150G resize2fs 1.39 (29-May-2006) 
 # lvreduce -L 150G /dev/VolGroupSys/volgroupapp WARNING: Reducing active logical volume to 150.00 GB # lvdisplay /dev/VolGroupSys/volgroupapp --- Logical volume --- In the above output note that a logical volume size has been reduced to 150 GB. 
 
 # mount -t ext3 /dev/VolGroupSys/volgroupapp /myapp1 
 To Extend logical volume size
 # lvextend –L200G /dev/VolGroupSys/volgroupapp This resizes the logical volume /dev/VolGroupSys/volgroupapp to 200 GB # lvextend –L+50G /dev/VolGroupSys/volgroupapp This will add 50GB to the current size of the logical volume /dev/VolGroupSys/volgroupapp Attachments This solution has no attachment | ||||||||||||
| 
 | ||||||||||||