Showing posts with label VMWare. Show all posts
Showing posts with label VMWare. Show all posts

2012/02/05

VMWare Memory Setting

Just want to keep this for I sufferred from the physical memory not enough error for one day.

In Additional memory part the 3rd option : Allow most virtual machine memory to be swapped.

image

It was the 2nd option : Allow some virtual machine memory to be swapped. And notice that the Reserved memory is 4545 MB.

I got available memory  more than 4GB, VMWare still complaint I do not have enough memory for my 4G VM.

Though this option(3rd option) sacrificed the performance of the guest machine. At least I can have a slow but workable environment.

Valentine's Day 2012 V

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