2012/01/27

Expand existing disk on VM Oracle Linux


VMWare Client Setting

Change the Hard Disk by double click
image
Utilities > Expand

image
Change the Maximum disk size to desired size, and Expand
image

Oracle Linux Setting


Turn on your Oracle Linux, type fdisk /dev/sda
p to see current partion status
n for new partition
give 3 to use next partition number, currently is 2
we use the whole increased space so accept the default cylinder parameter
and w to write the partition table to disk and exit
image
The result message want us to do a reboot, so do it.

image
After reboot still logon as root
pvcreate /dev/sda3
to create a physical volume
image
vgextend VolGroup00 /dev/sda3
to add the physical volume to volume group
image
vgdisplay
to see current Volume Group
image
We have 20G free to add volume group
lvextend -L+20G /dev/VolGroup00/LogVol00
image
resize2fs /dev/VolGroup00/LogVol00
image
Congratulation! You’ve sucessfully increase new space and can be used in your Oracle Linux on VMWare

Reference url
http://www.techotopia.com/index.php/Adding_a_New_Disk_to_an_RHEL_5_Volume_Group_and_Logical_Volume
http://echenh.blogspot.com/2010/04/how-to-extend-lvm-on-vmware-guest-os.html

RPM Usuage

To remove a rpm package
rpm -e <package name>

To install a rpm package
rpm -ivh <package name>

To query a rpm name
rpm -qa  <part of package name> Valentine's Day 2012 V

Oracle Enterprise Manager Cloud Control Installation Precheck(Oracle Linux)

OS Library

For example, if you run the command on a 32-bit system, you should see something similar to the following:
glibc-devel-2.3.4-2.43(i386)
glibc-headers-2.3.4-2.43(i386)
glibc-2.3.4-2.43(i686)
compat-glibc-headers-2.3.2-95.30(i386)
glibc-profile-2.3.4-2.43(i386)
glibc-utils-2.3.4-2.43(i386)
glibc-kernheaders-2.4-9.1.103.EL(i386)
glibc-common-2.3.4-2.43(i386)
compat-glibc-2.3.2-95.30(i386)

For example, if you run the command on a 64-bit system, you should see something similar to the following:
glibc-common-2.3.4-2.43(x86_64)
glibc-devel-2.3.4-2.43(x86_64)
glibc-profile-2.3.4-2.43(x86_64)
glibc-headers-2.3.4-2.43(x86_64)
glibc-utils-2.3.4-2.43(x86_64)
glibc-2.3.4-2.43(x86_64)
 
And sysstat-5.0.5
 

Kernel Parameter Requirements


For installing an OMS or a Management Agent on Unix operating systems (32-bit or 64-bit), set the kernel.shmmax parameter to a value 1 byte less than 4 GB or 4294967295.
Oracle recommends this value to avoid lack of memory issues for other applications and to enable a complete and successful core file generation under any and all circumstances.
To verify the value assigned to kernel.shmmax parameter, run the following command:
cat /proc/sys/kernel/shmmax
To set the value for kernel.shmmax parameter, run the following command:
sysctl -w kernel.shmmax=<new value>
 
Reference from Oracle Document
 

unzip Issue

 
But I could not install it via runInstaller at all.
After some research there is a solution for this
 

EM Cloud Control 12c RunInstaller Command Fails Before Launching Installer GUI With java.lang.NullPointerException In oraInstall_xxx.err File [ID 1369904.1]
The "unzip" binary provided by Oracle is in fact not able to correctly unzip the provided zip files for the Cloud Control installation.
Another release of the unzip should be downloaded from here: https://updates.oracle.com/unzips/unzips.html
The following version is needed:
# LINUX Intel (32bit and 64bit - Large file support)
Once this utility has been downloaded, proceed as described below :
oracle@vmtestoraem12c:/u01/app/software/em12c/ [rdbms1120] gzip -d unzip60_lnx.Z
oracle@vmtestoraem12c:/u01/app/software/em12c/ [rdbms1120] chmod u+x unzip60_lnx
oracle@vmtestoraem12c:/u01/app/software/em12c/ [rdbms1120] ./unzip60_lnx em12_linux64_disk1of2    



Thanks to Yann Neuhaus, he recorded the detail of this.



Other notice


unzip the em12_linux64_disk1of2.zip & em12_linux64_disk2of2.zip into the same folder











2011/10/15

How to change UI Language on Ubuntu 11.10

After using the fancy login and Unity, I found one problem for different language user.
How do I change the UI to different language?
There is no Language option  for me to choose.
Here comes the solution
In the System Settings
User Accounts

Language
And pick the Language you're going to use.
And login again.
Now you're using your language UI. Enjoy...

By the way, if you got better idea of how to change this in an easier way, please kindly let me know.
Thanks.

2011/10/14

Ubuntu 11.10 Released

Upgraded my 11.04 to 11.10.
The new login screen is cool.


And the Unity feature now is supported even on my virtual machine.
Anyone who likes Ubuntu should try this then.