increase disk size in oracle linux on vmware

Here is video of these procedures

First of all our vmware guest operating system must be in shutdown mode.
we need to add hard disk to our box.
go to settings—>
0-1
click add, then choose hard disk.
check option use an existing virtual disk
0-1.1
then choose file which will expand.
0-1.2
add a new hard disk, go to settings and choose our disk, click utilities–expand and write new size.
0-3
power on virtual machine.

our guest system doesn’t see a new size
1
but fdisk shows  the new size
2

solution :
create new partition on /dev/sda
3
then,

[root@oel6 ~]# pvcreate /dev/sda3
  Writing physical volume data to disk "/dev/sda3"
  Physical volume "/dev/sda3" successfully created
[root@oel6 ~]# vgextend vg_oel6 /dev/sda3
  Volume group "vg_oel6" successfully extended
[root@oel6 ~]# lvextend -L +18G /dev/vg_oel6/lv_root /dev/sda3  
  Extending logical volume lv_root to 43.60 GiB
  Logical volume lv_root successfully resized
[root@oel6 ~]# resize2fs /dev/mapper/vg_oel6-lv_root 43G
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/mapper/vg_oel6-lv_root is mounted on /; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 3
Performing an on-line resize of /dev/mapper/vg_oel6-lv_root to 11272192 (4k) blocks.
The filesystem on /dev/mapper/vg_oel6-lv_root is now 11272192 blocks long.

check size :
4

it’s all, enjoy with new size🙂

One thought on “increase disk size in oracle linux on vmware

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s