Oracle VM VirtualBox Manager - Red Hat Linux - Increase Hard Disk Drive

Hi,

  I have a Red Hat Virtual Machine running on Oracle Virtual Box.    I want to be able to use all the available space in my hard drive.

  Please help to configure Linux to use all the current space available in the hard drive.

  At the beginning i had a smaller hard drive, i then made a cloning of it to a larger hard drive.  I used VboxManage Clonehd  --existing.., then i was able to reboot the machine with the new hard drive.  But i haven't been able to take advantage of the current space available.  Do not know how to do it in Linux.

 
[root@ocpocm11g ~]# fdisk -l

Disk /dev/sda: 241.6 GB, 241591910400 bytes
255 heads, 63 sectors/track, 29371 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009e761

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64        3917    30944256   8e  Linux LVM

Disk /dev/mapper/vg_ocpocm11g-lv_root: 27.5 GB, 27523022848 bytes
255 heads, 63 sectors/track, 3346 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_ocpocm11g-lv_swap: 4160 MB, 4160749568 bytes
255 heads, 63 sectors/track, 505 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@ocpocm11g ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_ocpocm11g-lv_root
                       26G   24G   14M 100% /
tmpfs                 2.0G  260K  2.0G   1% /dev/shm
/dev/sda1             485M   55M  405M  12% /boot
[root@ocpocm11g ~]# uname -a
Linux ocpocm11g 2.6.39-200.24.1.el6uek.x86_64 #1 SMP Sat Jun 23 02:39:07 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

Open in new window

VirtualBox.jpg
LVL 1
joe_echavarriaDatabase AdministratorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

joe_echavarriaDatabase AdministratorAuthor Commented:
Thanks for your help and time.

I followed the instructions in this link : https://blog.jyore.com/2013/06/virtualbox-increase-size-of-rhelfedoracentosscientificos-guest-file-system/


Thank you.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
joolsSenior Systems AdministratorCommented:
you most likely need to extend lvm.

Post the output to
pvs
vgs
lvs

it may just mean extending the lv using lvextend.
0
joe_echavarriaDatabase AdministratorAuthor Commented:
I was able to figure it out.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.